node全局安裝說明(create-react-app、)

一、使用 create-react-app 快速構建 React 開發環境react

國內使用 npm 速度很慢,你可使用淘寶定製的 cnpm (gzip 壓縮支持) 命令行工具代替默認的 npm:npm

$ npm install -g cnpm --registry=https://registry.npm.taobao.org $ npm config set registry https://registry.npm.taobao.org
$ cnpm install -g create-react-app $ create-react-app my-app $ cd my-app/ $ npm start
相關文章
相關標籤/搜索