在窗口 7 中安装 Angular-cli 错误 [英] Angular-cli install in window 7 Error
本文介绍了在窗口 7 中安装 Angular-cli 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
想在 Windows 7 中安装 angular-cli,但出现以下错误;请帮忙做同样的事情.
Tying to install angular-cli in Windows 7,but giving below error; Please help what needs to be done for the same.
C:\Users\admin>npm i -g @angular/cli
C:\Users\admin\AppData\Roaming\npm\ng -> C:\Users\admin\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng
> @angular/cli@6.0.8 postinstall C:\Users\admin\AppData\Roaming\npm\node_modules\@angular\cli
> node ./bin/ng-update-message.js
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"})
npm ERR! file C:\Windows\system32\cmd.exe;C:\Windows\System32\cmd.exe
npm ERR! path C:\Windows\system32\cmd.exe;C:\Windows\System32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\Windows\system32\cmd.exe;C:\Windows\System32\cmd.exe
npm ERR! @angular/cli@6.0.8 postinstall: `node ./bin/ng-update-message.js`
npm ERR! spawn C:\Windows\system32\cmd.exe;C:\Windows\System32\cmd.exe ENOENT
npm ERR!
npm ERR! Failed at the @angular/cli@6.0.8 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache\_logs\2018-07-23T06_21_58_799Z-debug.log
节点版本:
v8.11.3
Npm 版本:
6.2.0
推荐答案
你可以按照这些步骤来安装 angular cli
You can flow these steps for install angular cli
- 安装 Node v8.x.x
- npm install windows-build-tools -g
- npm install @angular-devkit/core -g
- npm install @angular/cli -g
快乐编码
这篇关于在窗口 7 中安装 Angular-cli 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文