1.换镜像源:
- 查看:
npm config get registry
- 更换:
npm config set registry https://registry.npm.taobao.org
2.重新安装:
npx create-react-app my-app
3.运行
-
npm start
npm start
页面
初始化代码
npm config get registry
npm config set registry https://registry.npm.taobao.org
npx create-react-app my-app
npm start
本文标题:react-01:安装
本文链接:https://www.haomeiwen.com/subject/vuvzhctx.html
网友评论