小编Mat*_*gen的帖子

sh:反应脚本:找不到命令

我正在学习 Udemy 课程,我们将在其中使用create-react-app. 但是当我运行npm start和/或时yarn start,我收到错误。

\n\n

这是课程:2020 年完成 React Developer(包含:Redux、Hooks、GraphQL)

\n\n

npx create-react-app test-npm (如果我使用 npm,则使用 --use-npm)

\n\n

我们建议您首先输入:

\n\n

cd 测试
\n npm start

\n\n

快乐黑客!
\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
\n
test-npm@0.1.0 start /Users/user/Udemy/Complete React Developer in 2020 (w: Redux, Hooks, GraphQL)/test\nreact-scripts start\n
Run Code Online (Sandbox Code Playgroud)\n
\n\n

npm 结果:

\n\n
\n
sh: react-scripts: command not found  \nnpm ERR! code ELIFECYCLE  \nnpm ERR! …
Run Code Online (Sandbox Code Playgroud)

npm reactjs oh-my-zsh create-react-app yarnpkg

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

create-react-app ×1

npm ×1

oh-my-zsh ×1

reactjs ×1

yarnpkg ×1