#javascript #js #react


初始化React项目

npm install -g react
npm install -g react-dom
npm install -g react-scripts
npm install -g create-react-app
create-react-app hello-react
cd hello-react
npm start

更新package.json

npm install -g npm-check-updates
ncu # 或者npm-check-updates
ncu -u to upgrade package.json
npm install