Replies: 2 comments 1 reply
|
node 版本 v14.21.3 |
1 reply
|
这个更像是依赖树里 先说明一下版本:你这里是 v3.20.x,按当前文档,v3.9+ 开发环境最低是 Node 14,部署环境最低是 Node 12.11;但 Node 14 已经 EOL,很多新发布的三方包/类型包已经不再覆盖这个版本,所以 npm 重新安装时比较容易拉到不兼容的类型依赖。 可以按下面顺序排查: rm -rf node_modules package-lock.json
npm install
npm i -D @types/minimatch@3.0.5
npm run dev如果使用 pnpm/yarn,也可以通过 override/resolutions 固定: {
"devDependencies": {
"@types/minimatch": "3.0.5"
}
}如果仍然出现同样错误,请补充一下 package manager、lock 文件里 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the problem(描述问题)
通过文档中的 npm init midway@latest -y 创建了一个 egg 项目,然后 npm install 之后, npm run dev 就开始报这个错:
All reactions