-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Change NVM_NODEJS_ORG_MIRROR to NODEJS_ORG_MIRROR to solve npm install error #942
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
What exactly are you reporting? Does something not work? |
npm reports that NVM_NODEJS_ORG_MIRROR is deprecated. Occurrences of this variable need to be changed to NODEJS_ORG_MIRROR |
You've got it the wrong way around, it's node-gyp that prints the warning. You have NVM_NODEJS_ORG_MIRROR set in your environment and that will stop working in the next major release. Closing, not a bug. |
I see - thanks for the clarification. I don't use node-gyp directly, but It transpires that So, it seems like If this is the case, is there anything that can be done to make it easier for those people? Do you think 'nvm' should set up the new variable in its script, or is there something |
It should, and - in newer releases - it will. We discussed it with the maintainer of nvm before putting in that change. |
OK, that's good to hear. nvm doesn't set up the variable yet, but hopefully it will come shortly. |
I'm still seeing this under node 7.2.1. Which configuration files are likely to be out of date on my setup? |
same here @w@ |
In my case, I solved this when reverting to 6.9.1 LTS. I haven't tried upgrading to v7 again. |
If you don't need to override the mirror, you can add this to your unset NVM_NODEJS_ORG_MIRROR NVM_IOJS_ORG_MIRROR I just opened nvm-sh/nvm#1429 to fix this in |
@bnoordhuis I think you may have misunderstood #787 (comment) - |
Upgrading to the last NVM version solved the issue for me. |
Hi Geeks, [root@INCARNUS_SERVER nodejs-nan]# node-gyp build |
The text was updated successfully, but these errors were encountered: