SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js
https://adminjs.co
MIT License
8.06k stars 646 forks source link

[Bug]: adminjs/cli `unable to resolve dependency tree` project init falied for nestjs with typeorm and postgres #1630

Closed danyalutsevich closed 4 months ago

danyalutsevich commented 4 months ago

Contact Details

telegram: @danyalutsevich

What happened?

List what you are trying to do?

adminjs create Application name ... nestadmin Select a package manager › NPM Select a plugin for your server framework › @adminjs/nestjs Select an adapter › @adminjs/typeorm Select a database driver › PostgreSQL Would you like to configure environment variables now? You can also do that later in the env file. ... no

Screenshot 2024-02-14 at 23 44 14

Bug prevalence

everytime i run adminjs create

AdminJS dependencies version

@adminjs/cli@1.0.4

What browsers do you see the problem on?

Chrome

Relevant log output

adminjs create
Application name ... nestadmin
Select a package manager › NPM
Select a plugin for your server framework › @adminjs/nestjs
Select an adapter › @adminjs/typeorm
Select a database driver › PostgreSQL
Would you like to configure environment variables now? You can also do that later in the env file. ... no
INFO: Setting up nestadmin project's base template.ealTree buildDeps
INFO: Base template setup successful.
INFO: Setting up @adminjs/nestjs.
INFO: @adminjs/nestjs setup complete.
INFO: - -
-- IMPORTANT
INFO: The CLI does not support adapter setup for: @adminjs/nestjs
INFO: @adminjs/cli will bootstrap a NestJS + AdminS application, but you will have to set up the adapter manually.
INFO: Please refer to https://docs.adminis.co/installation/adapters/typeorm for instructions.
INFO:
--------------
-----
INFO: Setting up a database driver: postgres
INFO: Database driver setup complete.
INFO: Preparing •env file
INFO: Installing dependencies: npm install npm ERR! code ERESOLVE npm
ERR!
ERESOLVE unable to resolve dependency tree
npm
ERR!
npm
ERR!
npm
ERR
npm
ERR!
nom
ERR!
While resolving: nestadmin@1.0.0
Found: eslint-plugin-import@undefined node_modules/eslint-plugin-import
dev eslint-plugin-import@"^2.27.5" from the root project
nom
ERR!
npm
ERR!
npm
ERR!
прт
ERR!
nom
ERR!
Could not resolve dependency:
peer eslint-plugin-import@"^2.25.3" from eslint-config-airbnb@19.0.4
node_modules/eslint-config-airbnb
dev eslint-config-airbnb@"^19.0.4" from the root project
nom
ERR!
npm
ERR!
npm
ERR!
npm
ERR!
Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
npm
ERR!
npm
ERR!
npm
ERR!
npm
ERR!
For a full report see:
/Users/danlutsevich/.npm/_logs/2024-02-1421_42_49_048Z-eresolve-report.txt
npm
ERR!
A complete log of this run can be found in: /Users/danlutsevich/.npm/_10gs/2024-02-14721_42_49_048Z-debug-0.10g
ERROR: Encountered an error. Cleaning up working directory. Run command with DEBUG=true to see error details.
INFO: If you encountered any issues when using this CLI tool, please report them in it's repository: https://github.com/SoftwareBr
others/adminis-cli
~/Desktop/test/js_ts

Relevant code that's giving you issues

No response

dziraf commented 4 months ago

@danyalutsevich could you share full NPM log? I used the command with exactly the same arguments and it'd worked for me 🤔

danyalutsevich commented 4 months ago

Sorry it was my fault i forgot sudo I have this weird thing on my laptop npm packages wont install without sudo