When running npm update -g
, the following error occurs:
npm ERR! code E404
npm ERR! 404 Not found : default-html-example
npm ERR! 404
npm ERR! 404 'default-html-example' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/me/.npm/_logs/2018-10-25T22_24_12_353Z-debug.log
This error seems to appear after running any command now. For instance, when running ./node_modules/.bin/eslin .
in any project, the linter results are displayed but with the same error message at the end of the output.
--- UPDATE ---
Upon further investigation, it has been discovered that:
- There is something named
/usr/local/lib/node_modules/default-html-example
- This appears to be a tutorial example worked on previously and linked improperly to the system.
- Investigating further reveals that it is a symlink to a tutorial located at:
default-html-example -> /Users/me/learning/lynda_com_JavaScript_Essential_Training/MY_Ex_Files_JavaScript_EssT/Exercise_Files/default
The origin of how this ended up there remains a mystery.