yarn start Starts the development environment: The app server, which auto-reloads onhttp://localhost:3232 A webpack dev server, which hot-reloads and proxies requests to the app server, onhttp://localhost:3233 yarn build Builds the production assets to thebuildfolder. ...
npm startoryarn start Runs the app in development mode. Openhttp://localhost:3000to view it in the browser. The page will reload if you make edits. You will see the build errors and lint warnings in the console. npm testoryarn test ...
在命令窗口输入的是npm start,而start调用的是 "start": "react-scripts start", 找到node_modules里面的react-scripts 插件。点开bin\react-scripts.js文件内容 'use strict'; process.on('unhandledRejection', err => { throw err; }); const spawn = require('react-dev-utils/crossSpawn'); const args...