Angular-cli在窗口7中安装错误 [英] Angular-cli install in window 7 Error

查看:71
本文介绍了Angular-cli在窗口7中安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图在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

推荐答案

您可以按照以下步骤安装角度cli

You can flow these steps for install angular cli

  1. 安装节点v8.x.x
  2. npm安装Windows-build-tools -g
  3. npm install @ angular-devkit/core -g
  4. npm install @ angular/cli -g

快乐的编码

这篇关于Angular-cli在窗口7中安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆