使用 npx create-react-app 項目名 新建項目時,報錯;react
yarn add v1.22.4 info No lockfile found. [1/4] 🔍 Resolving packages... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying...
解決途徑:npm
第一步:更換淘寶鏡像app
yarn config set registry https://registry.npm.taobao.org
第二步:按下面的操做code
nrm
: npm install nrm -g
;nrm ls
;nrm use npm
;npm install <package-name>
;npm install
;