3.0.0-rc.5
node: 10.7.0, npm: 6.3.0, Linux 4.13-rc3-mainline (ArchLinux x64)
A. Installing it globally
npm i -g vue-cli #or even npm i -g @vue/cli
B. Creating a project with vue create or vue ui
vue create projectname #or vue ui then doing that on the GUI
A. Vue CLI should be successfully installed
B. The project should be created with all the dependencies there and scripts
A.
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ENODATA: Cache input stream was empty
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code EINTEGRITY
npm ERR! errno EINTEGRITY
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/commander: Integrity verification failed for sha512-cJpXb1sIdvyafVjk7UCUMrxUslf ggo9qcx47iztm1pqLBRH2DCOc5Q/mBmS1 iDmdFHjr8DpkclvZllmMlCvg== (/home/maxie/.npm/_cacache/content-v2/sha512/70/9a/576f5b0876fc9a7d58e4ed409432bc54b257fe820a3da9cc78ee2ced9b5a6a2c1447d8308e73943f981992d7e88399d1478ebf03a64725bd996598c942be)
B.
npm ERR! code EINTEGRITY
npm ERR! errno EINTEGRITY
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/commander: Integrity verification failed for sha512-cJpXb1sIdvyafVjk7UCUMrxUslf ggo9qcx47iztm1pqLBRH2DCOc5Q/mBmS1 iDmdFHjr8DpkclvZllmMlCvg== (/home/maxie/.npm/_cacache/content-v2/sha512/70/9a/576f5b0876fc9a7d58e4ed409432bc54b257fe820a3da9cc78ee2ced9b5a6a2c1447d8308e73943f981992d7e88399d1478ebf03a64725bd996598c942be)
npm ERR! A complete log of this run can be found in:
npm ERR! /home/maxie/.npm/_logs/2018-08-03T15_22_09_817Z-debug.log
ERROR command failed: npm install --loglevel error
I was trying to create a project which I've managed to save a preset for but the UI gets stuck on installing the dependencies and whenever I try to do that in the CLI, it fails due to that integrity issue with commander.
I tried updating vue-cli (@vue/cli) but I got the same errors (cf. A.).
This is either an npm server issue or a local npm caching problem. Either way, there's nothing we can do in Vue CLI.
Good call.
I managed to fix the problem by doing as follows:
npm cache verify
npm i -g @vue/cli@latest
I had same problem, and I figure out it was due to a proxy on my network.
Most helpful comment
Good call.
I managed to fix the problem by doing as follows: