3

I've been trying to solve this over the last two days, or so, with no effect:

enter image description here

Solution that I have attempted include:

  • Deleting the package-lock.json file
  • Coordinating with the other dev on the project to align the Node.js version and reinstalling the whole framework
  • Using --verbose as part of the "ndm i" command
  • Editing environmental variables to add NPM to them
  • Deleting the "node_modules" folder
  • Disabling, then re-enabling SSH
  • Trying with and without VPN being active
  • Clearing the cache via the command line, i.e. the node_modules step above

This is a link to another topic on the same issue on SO that also seems to be outstanding: Link

I've reviewed the range of discussions on SO about the problem, to no particular avail, and I think I'm out of options. Any insight is appreciated

epicUsername
  • 232
  • 3
  • 17

1 Answers1

3

The issue was the connection to registry.npmjs.org, after the installation attempt finally processed.

enter image description here

The solution is that when you go to run "npm install", you have to add "registry.npmjs.org" at the end of it, and it sums up to:

npm i registry.npmjs.org

Make sure to run this from the folder of your NodeJS project.

Other useful links to consult:

NPM stuck on idealTree: timing idealTree

npm install hangs

stop "npm install" at [..................] | idealTree:regal: sill idealTree buildDeps

Error : getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 --this one is for Angular, but still relevant.

As a final curiosity, going to registry.npmjs.org leads to this site: enter image description here

where as https://www.npmjs.com/package/registry.npmjs.org leads to

enter image description here

You will note the command I used in this solution on the right side of that last screenshot.

Finally: enter image description here

There is a typo in the error output: error refers to "registry.nPJMs.org", whereas the address has to be "registry.nPMJs.org". I don't know if this should be brought to the attention of NodeJS devs, but there you go.

epicUsername
  • 232
  • 3
  • 17