-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Closed
Labels
Description
Issue Description
Expected Behavior
I tried to create a project via npx typeorm init --name MyProject2 --database sqlite. I tested the command for mysql, that works.
Actual Behavior
I got following Error:
/root@test:~# npx typeorm init --name MyProject2 --database sqlite
Project created inside /root/MyProject2 directory.
Please wait, installing dependencies...
Error during project initialization:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/sqlite3
npm ERR! sqlite3@"^4.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional sqlite3@"^5.0.2" from [email protected]
npm ERR! node_modules/typeorm
npm ERR! typeorm@"0.3.6" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/sqlite3
npm ERR! peerOptional sqlite3@"^5.0.2" from [email protected]
npm ERR! node_modules/typeorm
npm ERR! typeorm@"0.3.6" 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 /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-05-07T12_46_51_752Z-debug-0.log
Steps to Reproduce
My Environment
| Dependency | Version |
|---|---|
| Operating System | Ubuntu 20.04 LTS (fresh install as VM) |
| Node.js version | v16.15.0 |
| npm version | 8.5.5 |
| TypeORM version | x.y.zzz |
Additional Context
Relevant Database Driver(s)
| DB Type | Reproducible |
|---|---|
aurora-mysql |
no |
aurora-postgres |
no |
better-sqlite3 |
no |
cockroachdb |
no |
cordova |
no |
expo |
no |
mongodb |
no |
mysql |
no |
nativescript |
no |
oracle |
no |
postgres |
no |
react-native |
no |
sap |
no |
spanner |
no |
sqlite |
yes |
sqlite-abstract |
no |
sqljs |
no |
sqlserver |
no |
Are you willing to resolve this issue by submitting a Pull Request?
- ✖️ Yes, I have the time, and I know how to start.
- ✖️ Yes, I have the time, but I don't know how to start. I would need guidance.
- ✖️ No, I don’t have the time, but I can support (using donations) development.
- ✅ No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.