node.js - 在Windows 8.1上安装node.js时出错

标签 node.js npm ionic-framework windows-8.1 npm-install

我已在 Windows 8.1 PC 中安装了 node-v5.4.0-x64。安装过程中出现以下错误,但安装完成。

Warning 1909. Could Not Create Shortcut Node.js command prompt.lnk. Verify that the destination folder exists and that you can access it.

尝试 npm 命令时出现以下错误。

'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command,
operable program or batch file.

我尝试按照一些文章中的建议重新安装node.js,但没有成功。 我已经搜索过此错误,但尚未找到任何合适的解决方案。有人可以帮我吗?

最佳答案

我可以通过在 AppData 目录中创建 npm 文件夹并重新安装 node.js 来解决该问题。

我已按照此处给出的说明进行操作。

https://github.com/nodejs/node-v0.x-archive/issues/8141

关于node.js - 在Windows 8.1上安装node.js时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34761931/

相关文章:

javascript - Mongoose 似乎不支持 $max 字段更新运算符,有什么建议吗?

node.js - Node 上的非阻塞 STDIN 检查?

node.js - 尝试构建 "Error: self signed certificate in certificate chain"时堆栈 'node-gyp configure'

reactjs - 如何修复 gyp ERR!使用 npm 构建错误?

java - Ionic 构建 Android 失败解析错误

javascript - NodeJs中的和成对整除?

node.js - 相当于 Google 的 Node.JS JIB?

node.js - 终端进度条未显示在 Docker 控制台中。

angularjs - 如何将 GET 变量传递给 Angular 应用程序

android - 显示下载进度条 ionic