我导航到此文件夹:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External
并使用此命令以管理员身份打开命令提示符
npm install npm@latest -g
然后我发出了这个命令:
npm -v
结果: 1.4.9
不应该是3.10.8吗?
这是我的输出:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External>npm -v
1.4.9
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External>npm install npm@latest -g
npm http GET https://registry.npmjs.org/npm
npm http 304 https://registry.npmjs.org/npm
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\node\npm -> C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\node\node_modules\npm\bin\npm-cli.js
npm@3.10.8 C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\node\node_modules\npm
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External>npm -v
1.4.9
我基本上想要升级,因为我有problems with some references in tinymce
答案 0 :(得分:1)
尝试以下步骤 -
npm install -g npm
npm -v
此外,你可以运行“where”来查看安装npm的位置(以及数量) - where npm
看看这是否有帮助。