问题描述
我创建了一个 React 项目并同时使用了 npm 和 yarn,它运行良好,直到我关闭该项目,我今天重新打开,现在当我运行 npm start
时,它说:
npm ERR! missing script: start
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/chiara/.npm/_logs/2021-07-15T13_52_07_909Z-debug.log
当我尝试使用 yarn start
时:
yarn run v1.22.10
warning package.json: "dependencies" has dependency "jquery" with range "^3.4.1"
that collides with a dependency in "devDependencies" of the same name with version "^3.1.1"
error Command "start" not found.
在 package.json
我有:
"scripts": {
"start": "react-scripts start","build": "react-scripts build","test": "react-scripts test","eject": "react-scripts eject"
},
$ npm --version
6.14.10
$ yarn --version
1.22.10
我该怎么办?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)