得到npm安装错误,角度错误

问题描述 投票:0回答:1

在其他PC上安装时出现错误。升起相同的节点版本10.15.0。错误在哪里我已经删除了node_module和package-lock.json,然后运行npm install但未成功

C:\node\inventory_app_web>npm install
npm WARN deprecated @angular/[email protected]: Switch to @angular/common/http - see https://angular.io/guide/http
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: This module is no longer maintained, try this instead:
npm WARN deprecated   npm i nyc
npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
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://[email protected]/eligrey/FileSaver.js.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\Sohail Ahmad\AppData\Roaming\npm-cache\_logs\2020-01-02T18_09_24_498Z-debug.log
node.js angular npm node-modules npm-install
1个回答
0
投票

我的错误,我安装了Git,但是只能从Git Bash访问。用第二个选项重新安装了它,它解决了我的问题:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.