我已在 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 来解决该问题。
我已按照此处给出的说明进行操作。
关于node.js - 在Windows 8.1上安装node.js时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34761931/