Ganache-cli: npm ERR! Unexpected end of JSON input while parsing when installing ganache-cli

Created on 9 Apr 2018  路  7Comments  路  Source: trufflesuite/ganache-cli

I am unable to install ganache-clie and get the following error

npm ERR! Unexpected end of JSON input while parsing near '...},"dist":{"shasum":"e'

Environment

  • NodeJS Version: 9.x
  • npm version: 5.6.0
  • Operating System and version: Ubuntu 16.04 LTS

Most helpful comment

for me running rm -rf node_modules package-lock.json and npm cache clean --force solved it

All 7 comments

same problem

for me running rm -rf node_modules package-lock.json and npm cache clean --force solved it

Closing as I'm sure @CupCakeArmy's suggestion is the fix for this :)

Thanks!

for me running rm -rf node_modules package-lock.json and npm cache clean --force solved it

I'm solved,Thank your answer.

npm cache clean --force , I run this command to fix my problem

for me running rm -rf node_modules package-lock.json and npm cache clean --force solved it

Thank you! It solved my issue.

for me running rm -rf node_modules package-lock.json and npm cache clean --force solved it

Thank you! It solved my issue.

Was this page helpful?
0 / 5 - 0 ratings