Recently, node has been extremely slow when starting my express app. It usually takes ~1 sec to start the development environment, now it's taking ~10 sec.So I uninstalled node 10.7.0 and npm 6.1, downloaded node 10.8.0 and installed that. The installation took fooooooorever during the "Copying files" stage.I deleted the node_modules folder in my project directory and did an npm install --verbose, it scanned my entire C:/nodejs/node_modules/npm/node_modules directory, which took about ~15 sec. npm install was never like this. Before, once I execute the install, it goes straight to extracting the packages.Also, when I start my project using node index.js it scans again. Each time I start up my express app and go to http://localhost it takes ~15 sec before my app loads. After that, it loads fairly quick. It's always the first load after starting my app that takes this long.WTH is going on? The only thing I recall doing before this happened was install nodemon globally, but this was in another project directory.
Submitted August 15, 2018 at 04:59AM by eggtart_prince
No comments:
Post a Comment