Join the Stack Overflow Community
Stack Overflow is a community of 6.2 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I am having multiple errors when l run the command npm install -g angular-cli am on windows 10 64 bit. Take a look at my log

npm ERR! git clone --template=C:\Users\ben\AppData\Roaming\npm-cache_git-remotes_templates --mirror [email protected]:webpack/compression-webpack-plugin.git C:\Users\ben\AppData\Roaming\npm-cache_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: undefined npm ERR! git clone --template=C:\Users\ben\AppData\Roaming\npm-cache_git-remotes_templates --mirror [email protected]:webpack/compression-webpack-plugin.git C:\Users\ben\AppData\Roaming\npm-cache_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: undefined npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "angular-cli" npm ERR! node v6.2.0 npm ERR! npm v3.8.9 npm ERR! code ENOGIT

npm ERR! not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a problem with npm itself. npm ERR! Please check if you have git installed and in your PATH.

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

share|improve this question
    
Your log says Please check if you have git installed and in your PATH. Did you? – blindstuff Sep 30 at 17:36
    
Git is installed and in my Path and still its not working. From angular-cli website git is not a prerequisite and I think there is a bug in compression-webpack-plugin.git from git. – Bento Sep 30 at 17:43
    
Is this your first install of the angular-cli or have you had an earlier version installed? – Brocco Oct 1 at 1:55
    
yes its my first installation for angular-cli. – Bento Oct 3 at 6:28

You need to get Git installed on your computer. So, Just double check everything by following these steps. It might help you:

Having installed Git, you need to add "C:\Program Files\Git\cmd" and "C:\Program Files\Git\bin" (Your Installation Path) to the system path.(Click start menu=>Edit the system environment variable)

  • Reopen Command window (Important step)

  • Run Path command in cmd window and you should see Git in the path

  • Install Cli >npm install -g angular-cli

share|improve this answer
    
l have tried all that to install GIT and setting it in system path and still its not working. – Bento 2 days ago

@Bento when you execute path command in your cmd windows, do you get the GIT in your path list? You should get something like this: enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.