'Lerna bootstrap auth fails in subdirectories
I have imported a newer repo into an older repo's subdirectory to form a mono-repo using lerna import. (Don't ask me why.) Now I am trying to get the subdirectory's package.json to install. When running lerna bootstrap (or just npm postinstall), the install is throwing "This request requires auth credentials. Run npm login and repeat the request." even though this does not happen with the root package.json. Is there something in the .npmrc file that needs to be added to make the subdirectory work? my current config is like
_authToken=blah-blah-blah
always-auth=true
registry=https://path/to/private/repository/
- OS: MacOS 11.6.2
- Node: 12.18.1 (because it's an old project)
- NPM: 6.14.5
- Webpack (root): 4.40.2
- Webpack (imported): 5.8.0
- Lerna: 4.0.0
My .npmrc file is located at /Users/username
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
