Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
New npm version asks not to "cache clean" #5519
Attempting to install this package with node 5.x will not work since it has a new self-checking mechanism (see npm output below)
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead.
How to reproduce
On regular install
As npm itself recommends, use the command "npm cache verify" in the Makefile. Using "npm cache clean --force" is not recommended and throws the proper warning to the CLI. I did it and package works just fine.
Real-life consequences (anything community should be aware, for instance how it affects your deployment)
Regular installing will throw an error and stop
Thanks for looking into this.
We upgraded to use Node 6 at the 0.17.2 release: http://ka-lite.readthedocs.io/en/0.17.x/installguide/release_notes.html#id2
I haven't seen this error show up, but I also use npm 3.x - will try to run