简体   繁体   中英

Can't find open when starting npm start (ENOGIT git is not installed)

I am trying to install bower as I am setting up a development environment on my laptop.

I installed git using the npm install procedure but it reports wrong operating system.
I used npm remove git and it appeared to remove it and then I installed git for windows.

Even though I apparently removed git it still reports wrong operating system.

Has anyone got a foolproof way of installing a nodejs environment on a windows 10 PC, as I have been trying for days without success?

Here is the message:

C:\javatest>bower install
bower jasmine-core#^2.5.2       ENOGIT git is not installed or not in the PATH

What ENOGIT mean?
Please help!

As the error says, git needs to be installed and should be added to PATH ( which is an Environment System Variable)

[ When you install git, there's an option to add it to PATH in the installation steps ]

if you want to add to PATH after git installation please follow these steps:

  • From Start search for Advanced System Settings
  • Open Environment Variables
  • In System Variables section, search for Path , select it and choose Edit
  • Click New , and add the path to git cmd, (ex: "C:\Program Files (x86)\Git\cmd")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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