MCPcopy Create free account
hub / github.com/npm/cli / npmLocal

Function npmLocal

smoke-tests/test/fixtures/setup.js:222–233  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

220 }
221
222 const npmLocal = async (...args) => {
223 const [{ force = false }] = getOpts(...args)
224 if (SMOKE_PUBLISH_TARBALL && !force) {
225 throw new Error('npmLocal cannot be called during smoke-publish')
226 }
227 return baseNpm({
228 cwd: CLI_ROOT,
229 cmd: process.execPath,
230 argv: ['.'],
231 proxy: false,
232 }, ...args)
233 }
234
235 const npmPath = async (...args) => baseNpm({
236 cwd: paths.project,

Callers 4

index.jsFile · 0.85
setup.jsFile · 0.85

Calls 2

getOptsFunction · 0.85
baseNpmFunction · 0.85

Tested by

no test coverage detected