Javascript Windows下升级node

阅读(2615)

https://zh.wikipedia.org/wiki/Windows_PowerShell

  1. 先以管理员身份启动 PowerShell。(PowerShell为系统自带,开始菜单输入即可查找到。PowerShell是个好东西,ls可以走遍天下了)。
  2. 执行以下指令

    Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
    npm install -g npm-windows-upgrade
    npm-windows-upgrade

Refer:

  1. PowerShell https://zh.wikipedia.org/wiki/Windows_PowerShell
  2. http://stackoverflow.com/questions/18412129/how-do-i-update-node-and-npm-on-windows