-
Notifications
You must be signed in to change notification settings - Fork 291
from version nodejs 15 I get an error: Error: double-loading config .. .npmrc" as "user", previously loaded as "project" #4193
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
Comments
You seem to be having a configuration conflict with the npmrc file, we're also using node 18 currently so i'd advice you upgrade to node 18, sometimes old versions causes these issues, if all these still doesn't work, use Good luck. |
Gloriouspete, thanks for your quick reply. Thanks |
You're welcome, I'd be expecting feedback |
I changed my setting NPM_CONFIG_USERCONFIG to NODE_CONFIG_DIR |
@kad-meedel If your issue is solved, would you mind closing the issue |
Use But the issue is caused because you have the same npmrc file in both user and project |
I got this kind of error but instead of <<as "user", previously loaded as "project">> I was trying to run the binary for the Firebase CLI in order to list my Firebase projects but when I enter any command under npm it flashes the error stated above. |
@joemdjossou have you tried |
I'm using the node veersion 18.17.1 This was the answer But still getting under binary for the Firebase CLI |
Try verifying your installation steps . An easy way would be to uninstall firebase-cli Use |
Ok I will try to uninstall every npm packages node.js and firebase-cli and then |
I updated the nodejs to the last version (18.17.1) and the firebase-tools |
It is finally working guys |
removing the version of firebase cli that I installed with curl did the trick |
Details
When I want to use nodejs version 15 or higher I get the following error when trying to do a npm install xxx or even a npm config list.
The error I get is:
Error: double-loading config "/var/jenkins_data/workspace/test-scripts_test-nodejs-19/.npmrc" as "user", previously loaded as "project"
My 'default' .npmrc file is in the home dir of the user.
So I overwrite some settings within the project npmrc
Node.js version
The problem shows up from nodejs 15 and higher
Example code
No response
Operating system
jenkins environment within linux server
Scope
install packages
Module and version
From nodejs 15 and higher
The text was updated successfully, but these errors were encountered: