1

我已经在我的 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,但没有成功。我已经搜索过这个错误,但我还没有找到任何合适的解决方案。有人能帮助我吗。

4

1 回答 1

0

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

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

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

于 2016-01-13T10:28:52.657 回答