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