'NPM stuck on idealTree: timing idealTree
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
Solution 1:[1]
This has happened to me a few times before and all I had to do was kill my dev server before running npm install.
Hope that helps as well!
Solution 2:[2]
I also faced this problem and the solution was simple by stopping all the "nodejs terminals" that are working outside. When you stop nodeJS Terminals running in the background, it will complete the current installation process. enter image description here
Solution 3:[3]
When you want to add package on your project it is better to stop server before adding new package. I had same problem but after doing this it is solved.
Solution 4:[4]
When i opened my package.json i saw '~2.2.1' in front of react-native-gesture-handler which probably means that it was notinstalled properly Just close all terminals and then open task manager and kill all the processes corresponding to NodeJS. Then install it again. Hopefully it will resolve.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | soygreg |
| Solution 2 | Abdullah Abboud |
| Solution 3 | arman amirkamali |
| Solution 4 | royam |
