【问题标题】:Can't install node packages无法安装节点包
【发布时间】:2018-06-14 10:10:32
【问题描述】:

我正在尝试使用 'npm install' 安装节点包,但我每次安装时只会收到错误消息?

Error Codes Herehttps://pastebin.com/39mC3nPm

Log Herehttps://pastebin.com/7PtCPdpX

希望有人能帮忙,谢谢!

【问题讨论】:

  • 请在您的问题中包含错误消息和相关日志条目。
  • 尝试npm rebuild node-sass,然后再次尝试npm install
  • 试过@Rick,不幸的是它没有用。

标签: node.js npm npm-install node-modules


【解决方案1】:

错误状态:

找不到 Python 可执行文件“python”,您可以设置 PYTHON 环境变量。

所以我猜你必须安装 Python 2.7 才能让它工作。

如果您仍然遇到错误,我知道您使用的是 Windows,存在已知的 node-sass 缺少 Windows 版本的问题,例如,请参阅 this GitHub issueits issue tracker 了解更多信息。

【讨论】:

  • 我尝试安装 python,是的,它已经修复了很多错误,但仍有一些错误,我仍然得到这个:'Build Failed:'pastebin.com/wSc28xKP
  • MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Fram ework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere.
猜你喜欢
  • 2019-10-17
  • 2016-10-15
  • 2022-01-08
  • 2017-07-03
  • 1970-01-01
  • 1970-01-01
  • 2015-10-19
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多