Issue
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
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:
- Kill the npm install process with
ctrl+c
. - 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 deletenode_modules
- Clean cache and reinstall node_modules with
npm cache clean --force && npm i
Answered By - PhantomSpooks
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.