Andy Jarrett // Code. Develop. Manage.

Error- ENOENT open with NPM install

I started seeing the following error when installing/updating packages after an update to Node.js

npm ERR! Error: ENOENT, open '/usr/local/lib/node_modules/express/node_modules/connect/package.json'npm ERR! You may report this log at:npm ERR! npm ERR! or email it to:npm ERR!

After some digging around I cleared the NPM cache via the following command and got back on track:

$ npm cache clean
I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee.
Your support keeps this site running and the coffee brewing! ☕️