我目前正在尝试使用 create-react-app,它使用三个不同的包:react、react-scripts 和 react-dom。我已经安装了 create-react-app,然后当我切换到目录并点击时,npm start
我得到了一个react-scripts: command not found
. 我遇到了很多问题。我可以看到react-scripts
在我的node_modules
文件夹中,但是command not found
在尝试运行npm start
. 我试图删除并重新安装我的所有内容,node_modules
但没有用。还有谁有相同的问题吗?
✘ ✝ Node/toDoApp/my-test master± npm start
> my-test@0.1.0 start /Users/jzilch/Desktop/Web
Projects/Node:Express/Node/toDoApp/my-test
> react-scripts start
sh: react-scripts: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! my-test@0.1.0 start: `react-scripts start`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the my-test@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.