New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run init 就报错 #60
Comments
后面添加 --legacy-peer-deps, 再安装试试看 |
报错:貌似是没有把 eslint-config-wxapp 推送到 registry.npmjs.org? `PS D:\WeChat\miniprogram-demo> npm run init --legacy-peer-deps
npm WARN config production Use npm ERR! A complete log of this run can be found in: |
真是个沙雕文档,啥都写不清楚,一运行各种报错 |
在文件根目录下运行npm run init --legacy-peer-deps |
这行命令可以解决报错。 我当时的报错是
|
沙雕文档+1 |
1 similar comment
沙雕文档+1 |
第一次报错是找不到 tnpm。改成 npm 后其他报错如下。
`PS D:\WeChat\miniprogram-demo> npm run init
'tnpm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
PS D:\WeChat\miniprogram-demo> npm run init
npm WARN config production Use
--omit=dev
instead.npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: miniprogram-demo@1.0.0
npm ERR! Found: eslint@7.32.0
npm ERR! node_modules/eslint
npm ERR! dev eslint@"^7.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^4.19.1 || ^5.3.0" from eslint-config-airbnb-base@13.1.0
npm ERR! node_modules/eslint-config-airbnb-base
npm ERR! dev eslint-config-airbnb-base@"13.1.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\chao\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\chao\AppData\Local\npm-cache_logs\2022-08-22T03_20_33_300Z-debug-0.log`
The text was updated successfully, but these errors were encountered: