创建create-react-app myapp项目报错

error An unexpected error occurred: “https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz: connect ETIMEDOUT 104.16.21.35:443”.

查看yarn是否安装好
yarn -v
如果安装好执行
npm use taobao
这是再执行创建项目时,报错为
error An unexpected error occurred: “https://registry.yarnpkg.com/async/-/async-1.5.2.tgz: connect ETIMEDOUT 104.16.18.35:443”.
解决办法:
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
现在再执行create-react-app myapp
项目创建成功
进行项目文件下执行yarn start
创建create-react-app myapp项目报错创建create-react-app myapp项目报错

相关文章:

  • 2021-07-04
  • 2022-02-27
  • 2021-11-15
  • 2021-08-05
  • 2021-12-19
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-19
  • 2021-11-19
  • 2022-12-23
  • 2021-11-04
  • 2021-07-18
  • 2022-12-23
相关资源
相似解决方案