sudo npm install create-react-app -g
throws this error:
npm ERR! Unexpected token < in JSON at position 0 while parsing near '<!DOCTYPE html>npm ERR! <ht...'
node version 10.8.0
npm version 6.2.0
Os Ubuntu 16.04
Before using sudo npm install create-react-app -g
use npm cache clean --force
, It should work, i tried it before. For more reference you can visit here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.