Skip to content

Instantly share code, notes, and snippets.

@apprentice1988
Last active February 15, 2017 03:42
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save apprentice1988/5c443e50d496c66a910e to your computer and use it in GitHub Desktop.
Save apprentice1988/5c443e50d496c66a910e to your computer and use it in GitHub Desktop.
升级 npm 和 node 版本
sudo npm update npm -g
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
@cat-kun
Copy link

cat-kun commented Dec 23, 2015

照着你的命令,报错了 😂

@GemVinci
Copy link

照着你的命令,报错了 😂

@githubhwen
Copy link

it should be sudo npm update -g.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment