【问题标题】:Error when installing node.js on Windows 8.1在 Windows 8.1 上安装 node.js 时出错
【发布时间】:2016-04-18 03:30:56
【问题描述】:

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

【问题讨论】:

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


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-08-10
      • 2014-12-27
      • 2015-01-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多