javascript - 在 Windows 10 上安装 Angular-CLI

标签 javascript node.js angular windows-10

我在 Windows 10 系统上安装 angular-cli 时遇到问题。 这些错误与 Python 依赖项和 node-gyp 有关。如下所示:

>execSync@1.0.2 install C:\Users\UserName\AppData\Roaming\npm\node_modules\angular-cli\node_modules\execSync
node install.js
[execsync v1.0.2] Attempting to compile native extensions.
{ Error: spawn node-gyp ENOENT
at exports._errnoException (util.js:1007:11)

最佳答案

更新

这似乎在较新的版本中已修复,不再需要此解决方案。


mukesh51最终解决了这个问题。

安装似乎按以下步骤进行:

  1. npm install -g node-gyp
  2. npm install -g windows-build-tools
  3. npm install -g @angular/cli

我从 here 采取了这些步骤.

关于javascript - 在 Windows 10 上安装 Angular-CLI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39743890/

相关文章:

javascript - 使用 [] 语法的绑定(bind)与不使用 [] 语法的绑定(bind)之间的区别

javascript - jQuery 格式化时间以删除秒并添加 AM 或 PM

node.js - 我可以使用 http2 将响应流式传输回浏览器吗?

angular - 使用 angular-oauth2-oidc 登录时保留 URL 状态

javascript - 意外的结束标签 | Angular 2.5 |自定义标签

html - typescript 和 html toggleswitch 值

javascript - 如何在 React.CreateClass 中为对象属性提供流类型提示

javascript - 我应该将仅在一页上需要的 JavaScript 例程放在哪里?

node.js - TS : Module augmentation, <Type> 仅指类型,但在此处用作值

html - Web 音频 API 服务器端?