Thursday, 1 June 2017

npm update failed in docker

I can't update npm package xxx in docker by

npm update -g 

or

npm install -g xxx

After update, I can't execute xxx, and throw

Error: Cannot find module 'semver'

So I have to

npm uninstall -g xxx 
npm install -g xxx

to reinstall every time I want to update package. How can I update npm package?



via Sword

No comments:

Post a Comment