我们可以从nodejs下载.msi
文件并像普通 Windows 应用程序一样安装。这将在系统中安装 node.exe
和 npm
。
在开发环境中,我希望在我的机器上安装各种版本的node
和npm
。
我知道如何从 nodejs 手动下载并安装 node.exe
。但我找不到手动下载 Windows 版 npm
并将其解压到我想要的文件夹中的方法。
最佳答案
You can download a zip file from https://github.com/npm/npm/releases, and unpack it in the
node_modules\npm\
folder inside node's installation folder.To upgrade to
npm 2
, follow the Windows upgrade instructions in the npm Troubleshooting Guide:https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows
关于node.js - 如何在 Windows 中手动安装 npm?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36031281/