我遵循 udemy 课程,使用create-react-app,然后使用npm start. 它工作正常,直到我安装react-router-dom然后我在终端中收到此错误:
react-scripts' is not recognized as an internal or external command, operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! venue@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the venue@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Run Code Online (Sandbox Code Playgroud)
有人可以解释一下这是怎么回事吗?以及如何修复它?
谢谢