Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.29 KB

踩坑指南.md

File metadata and controls

51 lines (36 loc) · 1.29 KB

环境配置

1、安装NodeJS、NPM

 下载node安装程序安装,链接见文档最后

2、npm安装create-react-app

npm install create-react-app -g

3、创建Demo项目

npx create-react-app demo-name

create-react-app demo-name

4、启动项目

npm start //package.json->scripts.start

文档

视频教程

React入门-腾讯NEXT学院-Bilibili

错误问题

1、 npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

2、npm ERR! Unexpected end of JSON input while parsing near '...nd-index-1.0.2.tgz"

3、verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...5I\n6iV+iLsRt+6ordbnr'

获取注册表资源出错,解决方式设置注册表资源代理