下载node安装程序安装,链接见文档最后
npm install create-react-app -g
npx create-react-app demo-name
create-react-app demo-name
npm start //package.json->scripts.start
- Node
- React
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'