We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 522a3b1 commit dfb9466Copy full SHA for dfb9466
src/lib/libnpmconfig/index.js
@@ -24,14 +24,14 @@ const NpmConfig = figgyPudding(
24
)
25
26
const ConfigOpts = figgyPudding({
27
- cache: { default: path.join(os.homedir(), '.npm') },
+ cache: { default: path.join(process.env.HOME || os.homedir(), '.npm') },
28
configNames: { default: ['npmrc', '.npmrc'] },
29
envPrefix: { default: /^npm_config_/i },
30
cwd: { default: () => process.cwd() },
31
globalconfig: {
32
default: () => path.join(getGlobalPrefix(), 'etc', 'npmrc'),
33
},
34
- userconfig: { default: path.join(os.homedir(), '.npmrc') },
+ userconfig: { default: path.join(process.env.HOME || os.homedir(), '.npmrc') },
35
})
36
37
module.exports.read = getNpmConfig
0 commit comments