AndyJarrett

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