我正在学习 Udemy 课程,我们将在其中使用create-react-app. 但是当我运行npm start和/或时yarn start,我收到错误。
这是课程:2020 年完成 React Developer(包含:Redux、Hooks、GraphQL)
\n\nnpx create-react-app test-npm (如果我使用 npm,则使用 --use-npm)
\n\n我们建议您首先输入:
\n\ncd 测试
\n npm start
快乐黑客!
\n\xe2\x9e\x9c 2020 年完成 React Developer(w:Redux、Hooks、GraphQL) cd test
\n\xe2\x9e\x9c test-npm git:(master) npm 或 yarn start
\n\n\nRun Code Online (Sandbox Code Playgroud)\ntest-npm@0.1.0 start /Users/user/Udemy/Complete React Developer in 2020 (w: Redux, Hooks, GraphQL)/test\nreact-scripts start\n
npm 结果:
\n\n\nRun Code Online (Sandbox Code Playgroud)sh: react-scripts: command not found \nnpm ERR! code ELIFECYCLE \nnpm ERR! …