angular CLI 安装出错
Getting error on angular CLI isntallation
我正在尝试在我的 windows10 64 位机器上安装 angular/cli,但出现以下错误:
npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t ssh://git@github.com/angular/cli.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs19-03-19T08_13_51_165Z-debug.log
我正在尝试执行以下命令:
npm install -g angular/cli
规格如下:
node --version
v10.15.1
npm --version
6.4.1
按照不同帖子和论坛中的建议,到目前为止尝试过的事情:
- 尝试以管理员身份运行命令提示符
- 设置网络设置(设置 https-proxy 和 proxy)。
- npm 缓存清理 --force
我的机器上没有安装 git,但它是必需的和强制的吗?
我之前也安装了angular(Angular 4),但当时一切都很好。
需要帮助。
你应该安装@angular/cli(注意@)
npm i @angular/cli
这个不需要 git 安装。
不得不承认这个命名有点迷惑。
我正在尝试在我的 windows10 64 位机器上安装 angular/cli,但出现以下错误:
npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t ssh://git@github.com/angular/cli.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs19-03-19T08_13_51_165Z-debug.log
我正在尝试执行以下命令:
npm install -g angular/cli
规格如下:
node --version
v10.15.1
npm --version
6.4.1
按照不同帖子和论坛中的建议,到目前为止尝试过的事情:
- 尝试以管理员身份运行命令提示符
- 设置网络设置(设置 https-proxy 和 proxy)。
- npm 缓存清理 --force
我的机器上没有安装 git,但它是必需的和强制的吗? 我之前也安装了angular(Angular 4),但当时一切都很好。
需要帮助。
你应该安装@angular/cli(注意@)
npm i @angular/cli
这个不需要 git 安装。 不得不承认这个命名有点迷惑。