Home > Mobile >  NPM stuck on idealTree: timing idealTree
NPM stuck on idealTree: timing idealTree

Time:09-17

Today i decided to start react native cli project. Everything works great since i want to add new lib of course using npm . So i ran npm install ... . And this command always stuck on Image

idealTree: timing idealTree Completed in 3440ms

And nothing happened. So i tried to ran

npm install --verbose

And again stuck on the same place. Also clear cache npm cache clear --force and nothing happened again. I don'n know how to fix this

CodePudding user response:

I have had npm install freeze on me numerous times, lately. I'm not sure of the cause. When that happens I follow these steps:

  1. Kill the npm install process with ctrl c.
  2. Delete node_modules. If there are files that you cannot delete because they are currently in use, that may mean that the npm install process was not successfully stopped. Try opening Task Manager and ending all nodejs and terminal processes. If this fails, restart your pc and then delete node_modules
  3. Clean cache and reinstall node_modules with npm cache clean --force && npm i
  • Related