0
sudo npm i -g create-react-app

npm WARN invalid config proxy=""
npm WARN invalid config Must be a
< full url with 'http://' npm ERR! Unexpected end of JSON input while
parsing near '....0.2","minizlib":"^1.'

Then after setting my proxy i got this erro

npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EMAXREDIRECT: maximum redirect reached at: https://registry.npmjs.org/

npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation. npm ERR! Unexpected end of JSON input while parsing near '....0.2","minizlib":"^1.'

npm ERR! A complete log of this run can be found in: npm ERR! /home/ace/.npm/_logs/2018-07-11T23_46_02_367Z-debug.log

hebronace
  • 77
  • 8

1 Answers1

1

Check your npm configuration for proxy with npm config list. Your proxy is an empty string currently, delete it or change it to the proxy url you need to use.

Also see this: npm warn invalid config proxy config Must be a full url with 'http://'

jsur
  • 293
  • 3
  • 11