React scaffolding installation problem

The
reason for the slow installation of React-app scaffolding encountered by front-end beginners :

Default installation method

(1) npm install -g create-react-app global installation

(2) create-react-app project name (the project name cannot be capitalized)

(3) cd to create the directory where the project is located

(4) npm start (the running project is generally a React rotating icon by default) After the
project is created successfully, there is an index.js file under the src file as the entry file of the project.

Speed ​​increase

The above method requires access to the external network, the download is relatively slow, and the download may fail, not much nonsense, let's talk about the fast method using Taobao mirroring.

//设置国内镜像
npm config set registry https://registry.npm.taobao.org
//检验是否设置成功
npm config get registry
//设置成功会显示出上面的网址
//然后再用上面的方法就可以快速下载啦!!!

It is for academic exchanges only. If you have any questions, please send a private message.

Guess you like

Origin blog.csdn.net/qq_44606064/article/details/105054617