[英]npm start error:npm start require(...) is not a function npm ERR! code ELIFECYCLE
谢谢大家,最后删除src文件夹下的setupProxy.js文件,npm start就可以了。
Please try this one.请试试这个。
npm install -g npm
npm install & npm install -D
npm run start
It seems like you don't have react-scripts in your global environment.try this:您的全球环境中似乎没有反应脚本。试试这个:
npm install -g react-scripts
or或者
npm install --save react react-dom react-scripts
If above doesn't work try this如果以上不起作用试试这个
node_modules
folder返回您的应用程序目录并删除node_modules
文件夹npm install
to install the dependencies (delete package-lock.json if it's already created)现在输入npm install
安装依赖项(如果已经创建,请删除 package-lock.json)npm install --save react react-dom react-scripts
现在运行npm install --save react react-dom react-scripts
npm start
使用npm start
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.