question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change NVM_NODEJS_ORG_MIRROR to NODEJS_ORG_MIRROR to solve npm install error

See original GitHub issue
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

12reactions
superclarkkcommented, May 25, 2016

I see - thanks for the clarification. I don’t use node-gyp directly, but node-gyp rebuild is run automatically when node.bcrypt.js is installed, which is when this warning is generated.

It transpires that nvm sets the NVM_NODEJS_ORG_MIRROR variable in the latest version of nvm.sh and, indeed, NODEJS_ORG_MIRROR is not set.

So, it seems like bcrypt isn’t going to install correctly when NVM_NODEJS_ORG_MIRROR is removed, and end-users will have to explicitly configure NODEJS_ORG_MIRROR. It seems like a potentially unnecessary configuration step for a lot of people.

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 bcrypt can do?

8reactions
bnoordhuiscommented, May 25, 2016

Do you think ‘nvm’ should set up the new variable in its script

It should, and - in newer releases - it will. We discussed it with the maintainer of nvm before putting in that change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NVM_NODEJS_ORG_MIRROR is deprecated, please use ...
I have nvm setup and when my npm pointer was on older node v4.4.0 I got the message warning ".... is deprecated, please...
Read more >
Common errors | npm Docs
You are trying to install on a drive that either has no space, or has no permission to write. Free some disk space...
Read more >
Resolving EACCES permissions errors when installing ...
Resolving EACCES permissions errors when installing packages globally · Reinstall npm with a node version manager · Manually change npm's default directory.
Read more >
n - npm
If you already have Node.js installed, an easy way to install n is using npm : ... If the active node version does...
Read more >
npm-install - npm Docs
Install a package. ... npm install (in a package directory, no arguments): ... does not exist in the registry data for that package,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found