We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a070fce commit 8784732Copy full SHA for 8784732
src/registries/npm.js
@@ -48,6 +48,11 @@ export default class NpmRegistry extends Registry {
48
path.join(userHome, ".npmrc"),
49
path.join(this.cwd, ".npmrc"),
50
];
51
+ let foldersFromRootToCwd = this.cwd.split(path.sep);
52
+ while (foldersFromRootToCwd.length > 1) {
53
+ possibles.push(path.join(foldersFromRootToCwd.join(path.sep), ".npmrc"));
54
+ foldersFromRootToCwd.pop();
55
+ }
56
57
this.mergeEnv("npm_config_");
58
0 commit comments