npm install create-react-app -g
create-react-app project-name
react安装: npm install create-react-app -g
创建react项目: create-react-app my-project
脚手架是干什么的呢?
它是一个命令行工具,提供一系列和这个框架相关的功能,比如启动一个开发服务器,静态验证代码格式,进行单元测试,构建生产环境的代码等等的功能。
npm install create-react-app -g
npx create-react-app my-app
create-react-app
1、npm install create-react-app -g
2、create-react-app my-project
3、npm start
Success! Created my-project at /Users/yapei/Applications/my-project Inside that directory, you can run several commands: npm start Starts the development server. npm run build Bundles the app into static files for production. npm test Starts the test runner. npm run eject Removes this tool and copies build dependencies, configuration files and scripts into the app directory. If you do this, you can’t go back! We suggest that you begin by typing: cd my-project npm start Happy hacking!
$ npm install create-react-app -g
# 准备开发环境
1,官方脚手架工具 create-react-app
所需工具:terminal,node(版本大于6.5),npm
npm install create-react-app -g
2,创建项目
create-react-app my-first-react(项目名)
开始自动安装依赖,耗时大概几分钟。
创建项目,create-react-app加项目名
npm install create-react-app -g安装react
官方脚手架工具 create-react-app
node -v
npm install create-react-app -g 全局安装全家桶
create-react-app my-project 创建项目
# 准备开发环境
1,官方脚手架工具 create-react-app
所需工具:terminal,node(版本大于6.5),npm
npm install create-react-app -g
2,创建项目
create-react-app my-first-react
开始自动安装依赖,耗时大概几分钟。
npm install create-react-app -g
安装react脚手架
npm install create-react-app -g
通过命令创建react项目
create -react-app my-project
create-react-app
很好很强大很好很强大
很好很强大
sudo npm install create-react-app -g
create-react-app {project_name}