【问题标题】:windows npm err while installing yo angular-fullstack安装 yo angular-fullstack 时 Windows npm 错误
【发布时间】:2016-02-27 03:33:47
【问题描述】:

我正在尝试安装 yo angular fullstack,使用这些版本:

  • 节点 v5.7.0
  • npm 3.7.3
  • 哟1.6.0
  • 鲍尔 1.7.7

我收到了一些 npm err

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Sahar\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v5.7.0
npm ERR! npm  v3.7.3
npm ERR! code ELIFECYCLE

npm ERR! v8-debug@0.4.6 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-debug@0.4.6 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the v8-debug package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs v8-debug
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls v8-debug
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Sahar\Desktop\Clones\npm-debug.log

【问题讨论】:

  • 您是否以管理员权限运行命令提示符?
  • 这是 Windows 上的 PITA。我建议你安装一种 linux 并收工。
  • 您的npm 安装已过期。您是否尝试按照日志建议升级nodejsnpm?抓住nodejs msi,它包括npm。或者,upgrade npm by hand 如果最新的 npm 未包含在 nodejs 安装程序中。
  • 我正在以管理员权限运行 cmd,并再次安装 nodeJS 和 NPM..

标签: angularjs node.js windows npm yo


【解决方案1】:

这可能是寡妇问题。强烈建议在 Linux 上使用 node。使用单个“vagrant up”命令在 Windows 主机上获取虚拟机和 vagrant 并启动 Linux 虚拟机

我也强烈推荐 docker。在你的虚拟机中为自己获取一个 docker 节点映像,然后你就笑了。

这就是虚拟机的全部吸引力,你可以杀死它们并在几秒/分钟内创建另一个,你可以避免所有这些愚蠢的浪费时间的设置问题

希望这会有所帮助

【讨论】:

  • 这不能回答 OP 的问题。作为对原始问题的评论,也许这会更好。
猜你喜欢
  • 2016-04-17
  • 1970-01-01
  • 1970-01-01
  • 2017-11-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-29
  • 2017-08-01
相关资源
最近更新 更多