Vue-cli: `npm install -g vue-cli` is not working?

Created on 30 Jan 2016  ·  15Comments  ·  Source: vuejs/vue-cli

when I use npm install -g vue-cli, there are some errors and a warning.

npm WARN deprecated [email protected]: This package was split into two simpler plugins: metalsmith-layouts and metalsmith-in-place
npm ERR! git -c core.longpaths=true clone --template=C:\Users\admin\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror http://github.com/ianstormtaylor/to-camel-case C:\Users\admin\AppData\Roaming\npm-cache\_git-remotes\http-github-com-ianstormtaylor-to-camel-case-f206d7eb
npm ERR! git clone --template=C:\Users\admin\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror http://github.com/ianstormtaylor/to-camel-case C:\Users\admin\AppData\Roaming\npm-cache\_git-remotes\http-github-com-ianstormtaylor-to-camel-case-f206d7eb: Cloning into bare repository 'C:\Users\admin\AppData\Roaming\npm-cache\_git-remotes\http-github-com-ianstormtaylor-to-camel-case-f206d7eb'...
npm ERR! git clone --template=C:\Users\admin\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror http://github.com/ianstormtaylor/to-camel-case C:\Users\admin\AppData\Roaming\npm-cache\_git-remotes\http-github-com-ianstormtaylor-to-camel-case-f206d7eb: fatal: Unable to find remote helper for 'http'
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "D:\\Program Files\\nodejs\\\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "vue-cli"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code 128

npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\admin\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror http://github.com/ianstormtaylor/to-camel-case C:\Users\admin\AppData\Roaming\npm-cache\_git-remotes\http-github-com-ianstormtaylor-to-camel-case-f206d7eb
npm ERR! Cloning into bare repository 'C:\Users\admin\AppData\Roaming\npm-cache\_git-remotes\http-github-com-ianstormtaylor-to-camel-case-f206d7eb'...
npm ERR! fatal: Unable to find remote helper for 'http'
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     E:\GitWorkSpace\learn-vue\npm-debug.log

So, how to do with this situation?

All 15 comments

On Windows 7 I repeated installation three times and it worked for me.

Upgrade your git version?
On Sat, Jan 30, 2016 at 9:02 AM Łukasz [email protected] wrote:

On Windows 7 I repeated installation three times and it worked for me.


Reply to this email directly or view it on GitHub
https://github.com/vuejs/vue-cli/issues/28#issuecomment-177246026.

Yep. It is a git error: Unable to find remote helper for 'http'

I was getting Error: Cannot find module 'khaos'. Installing khaos manually worked npm i -g khaos.

Yes, after I upgrade my git version, the problem solved!

I used git version 1.9.5 before, and now is v2.7.0.

Thx. (^o^)/~

after installing vue and vue-cli globally, when i run:

vue init webpack my-project

terminal says:

-bash: vue: command not found

others having same issue. any ideas?

vue init webpack myproject
but it can say.

bash: vue: command not found

-bash: vue: command not found

Same issue here. I already cleared the npm cache and updated nodejs and npm. Packages were installed inside home directory to avoid permission error. I've run out of ideas...

  • nodejs: v8.9.2
  • npm: v5.5.1
  • os: macosx

Everything works fine on my windows machine.

I also have the same issue here on my mac.

NodeJS: v8.9.4
NPM: 5.6.0
Git version 2.14.3 (Apple Git-98)

Anyone here who has the same problem.

restart your system.

https://mailtrack.io/ Sent with Mailtrack
https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/ndnaehgpjlnokgebbaldlmgkapkpjkkb?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality

On Fri, Feb 16, 2018 at 4:14 PM, Chi Ho Liu notifications@github.com
wrote:

I also have the same issue here on my mac.

NodeJS: v8.9.4
NPM: 5.6.0
Git version 2.14.3 (Apple Git-98)

Anyone here who has the same problem.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/vuejs/vue-cli/issues/28#issuecomment-366201947, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AehiNFAn9FGr3Nd5SEsfmneywgAhtf4bks5tVVv2gaJpZM4HP0e0
.

I had removed the node_modules and packages.json from my mac and reinstalled vue again.

it is still not fixed

@Gargo try using yarn instead yarn global add @vue/cli, that worked for me.

After nuking my cache, restarting my computer, uninstalling and reinstalling and trying all sorts of other things this is the command that worked for me.
Thanks

@Gaohaoyang Good 👍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OmgImAlexis picture OmgImAlexis  ·  3Comments

miyamoto-san picture miyamoto-san  ·  3Comments

DrSensor picture DrSensor  ·  3Comments

BusyHe picture BusyHe  ·  3Comments

jgribonvald picture jgribonvald  ·  3Comments