我正在尝试在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\_logs\2019-03-19T08_13_51_165Z-debug.log
我正在尝试执行以下命令:
npm install -g angular/cli
以下是规格:
node --version
v10.15.1
npm --version
6.4.1
到目前为止,在不同的帖子和论坛中都尝试过以下事情:
我的机器上没有安装git,但是这是必需的还是强制性的? 我以前也安装了angular(Angular 4),但是那时一切都很好。
需要帮助。
答案 0 :(得分:0)
您应该安装@ angular / cli(注意@)
npm i @angular/cli
这不需要安装git。 我不得不承认这种命名令人困惑。