Angular 无法在本地项目上运行npm安装

Angular 无法在本地项目上运行npm安装,angular,Angular,每次我在本地angular项目上运行npm install时,都会出现以下错误: C:\Projects\Angular>npm install npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno ENOENT npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t ssh:/

每次我在本地angular项目上运行npm install时,都会出现以下错误:

C:\Projects\Angular>npm install
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/pemrouz/buble.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\elbal\AppData\Roaming\npm-cache\_logs\2019-12-07T09_45_08_860Z-debug.log
我运行的Windows 10 Home 64位操作系统具有以下功能:

C:\Windows\system32>node -v
v12.13.1

C:\Windows\system32>npm -v
6.13.2

Angular CLI: 8.3.2
Node: 12.13.1
OS: win32 x64
Angular: 8.2.4
我在不同的帖子中遵循了这些解决方案,如: 但他们都没有解决我的问题。有人能帮忙吗?

试试这个:

cd C:\Projects\Angular
git clone https://github.com/pemrouz/buble.git
cd buble
npm install

尝试删除package-lock.json,然后再次运行npm安装。

这是否回答了您的问题@Sam在安装git后,我会收到更多错误,例如gyp ERR!查找Python和有关“找不到Python”的消息。是否需要python?