Last active
July 12, 2017 20:11
-
-
Save jackboberg/d6a0b967bb880a00eac5d78ffbfb7591 to your computer and use it in GitHub Desktop.
Update global npm inside a node docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /tmp && \ | |
npm install npm && \ | |
rm -rf /usr/local/lib/node_modules && \ | |
mv /tmp/node_modules /usr/local/lib/ && \ | |
cd && \ | |
npm install npm -g # update bin path for npx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment