• 微信公众号:美女很有趣。 工作之余,放松一下,关注即送10G+美女照片!

react 环境搭建

开发技术 开发技术 6小时前 2次浏览

1.安装yarn

npm install -g yarn –registry=https://registry.npm.taobao.org

yarn config set registry https://registry.npm.taobao.org -g

yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

yarn config set prefix “D:Program Filesnodejsnode-global”
yarn config set cache “D:Program Filesnodejsnode-cache”

2.安装react
yarn add react
yarn remove react
yarn add react –dev
yarn upgrade

——
npm install react
npm uninstall react
npm install react –save-dev
npm update

3.安装create-react-app
yarn add create-react-app -g
create-react-app my-app

npm install -g create-react-app


程序员灯塔
转载请注明原文链接:react 环境搭建
喜欢 (0)