簡體   English   中英

sudo npm install create-react-app -g引發錯誤(Ubuntu)

[英]sudo npm install create-react-app -g throws error(Ubuntu)

sudo npm install create-react-app -g

拋出此錯誤:

npm ERR! Unexpected token < in JSON at position 0 while parsing near '<!DOCTYPE html>npm ERR! <ht...'

節點版本10.8.0

npm版本6.2.0

操作系統Ubuntu 16.04

在使用sudo npm install create-react-app -g使用npm cache clean --force ,它應該可以工作,我之前嘗試過。 有關更多參考,請訪問此處

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM