Comments (7)
用 yarn 安装有时候可会丢包,你 npm install
下再试试,你看看在 vscode
里面有木有 error 的提示
from service-mw2.
是否与这个相关 midwayjs/midway#1253
from service-mw2.
npm install
直接出现了依赖问题,甚至无法正常地安装依赖项。
➜ service-mw2 git:(master) ✗ yarn clean
yarn run v1.22.11
$ rm -rf node_modules package-lock.json yarn.lock
Done in 2.43s.
➜ service-mw2 git:(master) ✗ ls
CHANGELOG.md README.md docker-compose.yml logs run src tsconfig.json
LICENSE commitlint.config.js jest.config.js package.json sonar-project.properties test typings
➜ service-mw2 git:(master) ✗ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @types/[email protected]
npm ERR! node_modules/@types/jest
npm ERR! dev @types/jest@"^26.0.24" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @types/jest@"^27.0.0" from [email protected]
npm ERR! node_modules/ts-jest
npm ERR! dev ts-jest@"^27.0.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @types/[email protected]
npm ERR! node_modules/@types/jest
npm ERR! peerOptional @types/jest@"^27.0.0" from [email protected]
npm ERR! node_modules/ts-jest
npm ERR! dev ts-jest@"^27.0.4" 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 /home/xmo/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/xmo/.npm/_logs/2021-09-06T07_39_35_555Z-debug.log
from service-mw2.
rm -rf node_modules 了么
from service-mw2.
npm install
直接出现了依赖问题,甚至无法正常地安装依赖项。➜ service-mw2 git:(master) ✗ yarn clean yarn run v1.22.11 $ rm -rf node_modules package-lock.json yarn.lock Done in 2.43s. ➜ service-mw2 git:(master) ✗ ls CHANGELOG.md README.md docker-compose.yml logs run src tsconfig.json LICENSE commitlint.config.js jest.config.js package.json sonar-project.properties test typings ➜ service-mw2 git:(master) ✗ npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: @types/[email protected] npm ERR! node_modules/@types/jest npm ERR! dev @types/jest@"^26.0.24" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peerOptional @types/jest@"^27.0.0" from [email protected] npm ERR! node_modules/ts-jest npm ERR! dev ts-jest@"^27.0.4" from the root project npm ERR! npm ERR! Conflicting peer dependency: @types/[email protected] npm ERR! node_modules/@types/jest npm ERR! peerOptional @types/jest@"^27.0.0" from [email protected] npm ERR! node_modules/ts-jest npm ERR! dev ts-jest@"^27.0.4" 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 /home/xmo/.npm/eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! /home/xmo/.npm/_logs/2021-09-06T07_39_35_555Z-debug.log
我试了下, Node.js 14.17.6 可以正常 npm install
from service-mw2.
npm install
直接出现了依赖问题,甚至无法正常地安装依赖项。➜ service-mw2 git:(master) ✗ yarn clean yarn run v1.22.11 $ rm -rf node_modules package-lock.json yarn.lock Done in 2.43s. ➜ service-mw2 git:(master) ✗ ls CHANGELOG.md README.md docker-compose.yml logs run src tsconfig.json LICENSE commitlint.config.js jest.config.js package.json sonar-project.properties test typings ➜ service-mw2 git:(master) ✗ npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: @types/[email protected] npm ERR! node_modules/@types/jest npm ERR! dev @types/jest@"^26.0.24" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peerOptional @types/jest@"^27.0.0" from [email protected] npm ERR! node_modules/ts-jest npm ERR! dev ts-jest@"^27.0.4" from the root project npm ERR! npm ERR! Conflicting peer dependency: @types/[email protected] npm ERR! node_modules/@types/jest npm ERR! peerOptional @types/jest@"^27.0.0" from [email protected] npm ERR! node_modules/ts-jest npm ERR! dev ts-jest@"^27.0.4" 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 /home/xmo/.npm/eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! /home/xmo/.npm/_logs/2021-09-06T07_39_35_555Z-debug.log我试了下, Node.js 14.17.6 可以正常 npm install
是 npm 版本的问题,刚刚实验了一下,npm v6 是可以正常安装依赖的, npm v7 则会依赖报错。
from service-mw2.
还没测试 Node.js 15.x 的版本,之前 midway 有些功能还不支持,在重构中呢
from service-mw2.
Related Issues (17)
- base model中id为string的意义? HOT 1
- 请问一下大佬们,我想了解一下接口响应统计中间件,相关具体代码在哪里呢?有没有一些推荐的参考demo 或者 学习资料哈~ (本人MQ小白一枚) HOT 4
- 会计划增加部署最佳实践吗? HOT 4
- 升级到 Midway.js 3.x 版本 HOT 2
- 在自己定义的函数里使用assert并用MyError抛错,没有被全局捕获到,报unhandledRejectionError HOT 1
- redis连接超时 HOT 12
- 数据库存储array list和string的转换 HOT 1
- 配套前端项目请求的接口跟此项目提供的接口对应不上 HOT 2
- 数据库连接失败 HOT 2
- 中间件redis启动报错(更新了对rabbitmq的支持之后) HOT 5
- 目录结构和midway(v2)文档里的不一致 HOT 3
- jwt问题 HOT 2
- Serverless 部署支持 HOT 1
- 对 jwt auth 示例的一点小小建议 HOT 2
- npm v7 执行 install 时会出现依赖报错 HOT 5
- 在文件src/config/config.default.ts 中, config.orm配置信息中port: process.env.MYSQL_HOST 写错了 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from service-mw2.