Home
last modified time | relevance | path

Searched refs:globalPrefix (Results 1 – 12 of 12) sorted by relevance

/third_party/node/deps/npm/lib/
Dnpm.js377 get globalPrefix () { getter in Npm
378 return this.config.globalPrefix
381 set globalPrefix (r) { setter in Npm
382 this.config.globalPrefix = r
399 ? resolve(this.globalPrefix, 'lib', 'node_modules')
400 : resolve(this.globalPrefix, 'node_modules')
412 const b = this.globalPrefix
425 return this.global ? this.globalPrefix : this.localPrefix
/third_party/node/deps/npm/test/lib/commands/
Dupdate.js77 const { ctor, globalPrefix } = await mockUpdate(t, {
81 t.match(ctor.path, globalPrefix)
82 t.ok(ctor.path.startsWith(globalPrefix))
Drebuild.js181 const { npm, globalPrefix, joinedOutput } = await setupMockNpm(t, {
200 t.ok(() => fs.statSync(resolve(globalPrefix, 'lib/node_modules/.bin/a')))
Dexec.js78 npm.globalPrefix = npm.localPrefix
Ddoctor.js53 const globals = ({ globalPrefix }) => { field
56 'env.PATH': `${globalPrefix}:${path.join(globalPrefix, 'bin')}`,
Dinstall.js141 { global: true, path: npm.globalPrefix }
/third_party/node/deps/npm/node_modules/@npmcli/config/lib/
Dindex.js126 this.globalPrefix = null
164 return this.#get('global') ? this.globalPrefix : this.localPrefix
295 this.globalPrefix = this.get('prefix')
310 prefix: this.globalPrefix,
341 if (this.globalPrefix) {
346 this.globalPrefix = this.env.PREFIX
349 this.globalPrefix = dirname(this.execPath)
352 this.globalPrefix = dirname(dirname(this.execPath))
356 this.globalPrefix = join(this.env.DESTDIR, this.globalPrefix)
Dset-envs.js93 env.npm_config_global_prefix = config.globalPrefix
/third_party/node/deps/npm/test/lib/
Dnpm.js76 t.not(npm.prefix, npm.globalPrefix, 'prefix is not global prefix')
77 npm.globalPrefix = npm.prefix
78 t.equal(npm.prefix, npm.globalPrefix, 'globalPrefix setter')
81 t.not(npm.prefix, npm.globalPrefix, 'prefix is not global prefix after localPrefix setter')
85 t.not(npm.prefix, npm.globalPrefix, 'prefix is not global prefix after prefix setter')
92 t.equal(npm.prefix, npm.globalPrefix, 'prefix is global prefix after setting global')
100 t.equal(npm.prefix, npm.globalPrefix, 'prefix is global prefix after prefix setter')
/third_party/node/deps/npm/node_modules/@npmcli/config/
DREADME.md45 the `globalPrefix` folder, which is inferred by looking at the location
127 the `globalPrefix` from the `execPath`, since this is done diferently on
130 `globalPrefix`.
140 - `config.globalPrefix` The prefix for `global` operations. Set by the
170 - `globalPrefix` The effective `globalPrefix`
172 - `prefix` If `config.get('global')` is true, then `globalPrefix`,
/third_party/node/deps/npm/test/fixtures/
Dmock-npm.js200 globalPrefix: path.join(dir, 'global'), property
238 'process.env.PREFIX': dirs.globalPrefix,
/third_party/node/deps/npm/lib/commands/
Dexec.js66 if (this.npm.localPrefix !== this.npm.globalPrefix) {