Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated .npmrc isn't valid for npm 9 (with node 18) #860

Closed
sjd78 opened this issue May 31, 2023 · 1 comment
Closed

Generated .npmrc isn't valid for npm 9 (with node 18) #860

sjd78 opened this issue May 31, 2023 · 1 comment

Comments

@sjd78
Copy link

sjd78 commented May 31, 2023

The .npmrc that comes along in configuration-files.json uses an unscoped _auth config item. Unscoped _auth is not allowed by npm 9 and will cause an npm install or npm clean-install to fail.

There is a workaround. Adding npm config fix will scope the _auth tag to a single repository listed in the .npmrc.

But without the npm config fix, anyone using node 18 / npm 9 will fail on install. It can be quite confusing when running the build in a container sourced from cachito request to see the build fail that way.

References:

@chmeliik chmeliik mentioned this issue Jun 1, 2023
4 tasks
@chmeliik
Copy link
Contributor

chmeliik commented Jun 9, 2023

Will be fixed in the next release (by #857)

@chmeliik chmeliik closed this as completed Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants