简体   繁体   English

当我在nodejs和npm cmd中使用npm install提示我遇到ENOGIT问题时

[英]when i use npm install in nodejs and npm cmd prompt i am having an issue with ENOGIT

i dont understand why i am facing this issue, when i use npm install in my new project , its showing like ENOGIT git is not installed in the path , but i am having git installed and i am able to use git cmd prompt 我不明白为什么我要面对这个问题,当我在新项目中使用npm install时,它的显示像ENOGIT git未安装在路径中,但是我已经安装了git,并且能够使用git cmd提示

C:\\Users\\Srikaran\\oxkey-copy\\app>npm install C:\\ Users \\ Srikaran \\ oxkey-copy \\ app> npm安装

angular-seed@0.0.0 postinstall C:\\Users\\Srikaran\\oxkey-copy bower install angular-seed@0.0.0安装后C:\\ Users \\ Srikaran \\ oxkey-copy bower install

bower angular#~1.4.0 ENOGIT git is not installed or not in the PATH Bower angular#〜1.4.0 ENOGIT git未安装或未在PATH中

npm WARN optional Skipping failed optional dependency /karma/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@0.3.8
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Srikaran\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.2.3
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! angular-seed@0.0.0 postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-seed@0.0.0 postinstall script 'bower install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-seed
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-seed
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Srikaran\oxkey-copy\app\npm-debug.log

C:\Users\Srikaran\oxkey-copy\app>which git
'which' is not recognized as an internal or external command,
operable program or batch file.

God!! 神!! i got it fixed. 我把它修好了。 i used this command in my node shell and the ENOGIT git error is solved. 我在节点外壳中使用了此命令,并解决了ENOGIT git错误。

set PATH=%PATH%;C:\\Program Files\\Git\\bin; 设置PATH =%PATH%; C:\\ Program Files \\ Git \\ bin;

But when i have fixed that environmental variable and its path manually i could not get the problem fixed, but after using the command in node shell it fixed mine. 但是当我手动修复了该环境变量及其路径时,我无法解决问题,但是在节点外壳中使用命令后,它修复了我的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM