npm ERR! Darwin 17.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "npm"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'realize-package-specifier'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
When I try to update npm this the error I receive. I get similar errors while performing any npm install/update operation.
Any idea how to resolve this issue?
Reinstall node via brew ( brew uninstall node
& brew install node
). npm ships with Node so you should be good to go. These errors might occur after updating npm, AFAIK this is the safest workaround.
I installed node
using nvm
and my issue was resolved. This is what I followed to do so.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.