npm install hangs on loadIdealTree:loadAllDepsIntoIdealTree: sill install loadIdealTree

Had the same issue, and this comment here fixed it for me:

Try to remove 'package-lock.json' file from directory where 'package.json' locate.


Even after removing package-lock.json, npm i didn't worked for us. Instead, it got stuck on another message - still removeObsoleteDep removing fs-extra from the tree as its been replaced by a newer version.

Problem was, we used yarn occasionally. Installing using yarn will resolve the issue if it is the case.


You might not have package-lock.json so instead of this file you need to remove the npm-shrinkwrap.json file and try to execute npm install again.

About npm-shrinkwrap.json:

npm-shrinkwrap.json is a file created by npm-shrinkwrap. It is identical to package-lock.json , with one major caveat: Unlike package-lock.json , npm-shrinkwrap.json may be included when publishing a package.

Tags:

Node.Js

Npm