How do I update npm on Windows?

后端 未结 12 831
时光说笑
时光说笑 2020-12-04 09:37

When I install node 0.10.33 from the msi ( http://nodejs.org/download/ ), I get an old version of npm (1.4.28). How can I upgrade npm on Windows?

npm install

12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 10:18

    To upgrade NPM on windows 10

    1. Uninstall Node.js
    2. Restart your system
    3. on command prompt type where npm
    4. delete if npm and npm-cache folder exists in AppData/Roaming
    5. Install Node.js (https://nodejs.org/en/)

提交回复
热议问题