Skip to main content

npm_isolation_args

Function npm_isolation_args 

Source
pub fn npm_isolation_args(dir: &Path) -> Result<Vec<String>>
Expand description

The flags that keep an install from the person’s own npm setup: the public registry, and an empty file each in place of their ~/.npmrc and npm’s global config (npm refuses one file loaded as both). Their registry, scope routing (a @agentmuxai:registry=https://npm.pkg.github.com line made the muxcode install 404), proxy and script policy then cannot change what is installed, or from where. A proxy in the environment (HTTPS_PROXY) still applies. The empty files are made in dir, the install folder, which is created if need be.