Searched refs:globalPrefix (Results 1 – 12 of 12) sorted by relevance
/third_party/node/deps/npm/lib/ |
D | npm.js | 377 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/ |
D | update.js | 77 const { ctor, globalPrefix } = await mockUpdate(t, { 81 t.match(ctor.path, globalPrefix) 82 t.ok(ctor.path.startsWith(globalPrefix))
|
D | rebuild.js | 181 const { npm, globalPrefix, joinedOutput } = await setupMockNpm(t, { 200 t.ok(() => fs.statSync(resolve(globalPrefix, 'lib/node_modules/.bin/a')))
|
D | exec.js | 78 npm.globalPrefix = npm.localPrefix
|
D | doctor.js | 53 const globals = ({ globalPrefix }) => { field 56 'env.PATH': `${globalPrefix}:${path.join(globalPrefix, 'bin')}`,
|
D | install.js | 141 { global: true, path: npm.globalPrefix }
|
/third_party/node/deps/npm/node_modules/@npmcli/config/lib/ |
D | index.js | 126 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)
|
D | set-envs.js | 93 env.npm_config_global_prefix = config.globalPrefix
|
/third_party/node/deps/npm/test/lib/ |
D | npm.js | 76 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/ |
D | README.md | 45 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/ |
D | mock-npm.js | 200 globalPrefix: path.join(dir, 'global'), property 238 'process.env.PREFIX': dirs.globalPrefix,
|
/third_party/node/deps/npm/lib/commands/ |
D | exec.js | 66 if (this.npm.localPrefix !== this.npm.globalPrefix) {
|