-2

After typing in terminal this

sudo install -g firebase-tools

I get the following error

npm ERR! code FETCH_ERROR
npm ERR! errno FETCH_ERROR
npm ERR! invalid json response body at https://registry.npmjs.org/exegesis reason: Unexpected end of JSON input

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-03-19T04_41_56_097Z-debug.log
Ojage S
  • 71
  • 1
  • 9

1 Answers1

0

I was in exactly the same situation. After switching the registry (as below) and trying a few times, I was able to install firebase-tools.

npm config set registry "http://r.cnpmjs.org/"

Installing create-react-app gives npm ERR! shasum check failed and npm ERR! Unexpected end of JSON input while parsing near '...mojOzGIEI2rg0m24Yb5Oq'

Yunnosch
  • 26,130
  • 9
  • 42
  • 54
taro
  • 1
  • 1
    https://www.merriam-webster.com/dictionary/bellow https://www.merriam-webster.com/dictionary/below Don't blindly trust your spellchecker. – Yunnosch May 28 '21 at 09:50