angular - fsevents@1.2.4:、Angular 4 及更高版本不支持的平台
问题描述
我的 npm 版本是 5.6.0,我正在尝试使用命令创建 angular 4/6 项目(angular-cli)ng new
。但是,我得到了错误The term 'ng' is not recognized
。
所以,我尝试angular-cli
使用npm install -g @angular/cli
.
日志
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\@angular\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ @angular/cli@7.1.1
updated 1 package in 18.954s
但是,我仍然得到错误 => The term 'ng' is not recognized
。我不确定,可能与event-steam 的后门有关
解决方案
推荐阅读
- modelsim - 如何在脚本窗口中在 ModelSim 和 VSIM 之间切换?
- visual-studio-2015 - 如何在 Visual Studio 2015 中运行 MSTest V2 测试?
- javascript - docker mongoose错误无效的数据库名称
- google-chrome - 如何解决谷歌浏览器中请求的资源上没有“Access-Control-Allow-Origin”标头?
- angular - AWS Amplify Authentication 在 Ionic / Angular 中使用预构建的 UI 组件导致更改检测问题
- python - 不明白熊猫系列中这个 KeyError 的原因
- reactjs - 如何使用汇总反应正确捆绑和导入 css - 无法从 node_modules 中导入全局 CSS
- javascript - 从列表中选择的对象读取 [object Object]
- excel - 第二次运行相同的 VBAcode 时出现错误消息 462
- javascript - 如何从外部样式表中选择带有 jquery 的 css 类