npm install create-react-app -g,直接就报错,如图下:

记录安装react错误

使用 npm init react-app my-app 就成功,有点慢

 慢的话,使用cnpm代替npm,第一步:

npm config set registry https://registry.npm.taobao.org

 配置后可通过下面方式来验证是否成功  npm config get registry  或者 npm info express

设置成功后,在使用create-react-app my-demo,大功告成。

记录安装react错误

 

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2021-09-21
  • 2021-06-17
  • 2021-12-03
  • 2021-07-28
  • 2022-02-08
猜你喜欢
  • 2022-01-11
  • 2021-05-21
  • 2022-12-23
  • 2021-11-01
  • 2021-04-20
  • 2021-06-04
  • 2022-12-23
相关资源
相似解决方案