Skip to content
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

Dependancy Issue stopping me running NPM Install and testing. #4

Open
jnachman123 opened this issue Oct 25, 2021 · 10 comments
Open

Dependancy Issue stopping me running NPM Install and testing. #4

jnachman123 opened this issue Oct 25, 2021 · 10 comments

Comments

@jnachman123
Copy link

npm install gives me

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: tokyo-free-white-react-admin-dashboard@1.1.0
npm ERR! Found: @typescript-eslint/eslint-plugin@5.0.0
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR! dev @typescript-eslint/eslint-plugin@"5.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @typescript-eslint/eslint-plugin@"^4.29.3" from eslint-config-airbnb-typescript@14.0.1
npm ERR! node_modules/eslint-config-airbnb-typescript
npm ERR! dev eslint-config-airbnb-typescript@"14.0.1" from the root project

looks like a wonderful template, any idead - i am downloading the zip and directly extracting

@leemcmullen
Copy link

@jnachman123 I had the same issue when using node version 16.13.

Switched back to node version 14.17 and it worked first time 👍

@drmzio
Copy link

drmzio commented Nov 24, 2021

Also having this issue with Node v16

@jnachman123 I had the same issue when using node version 16.13.

Switched back to node version 14.17 and it worked first time 👍

I can confirm this method works

@yashvantvala
Copy link

I am also having following error

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: tokyo-free-white-react-admin-dashboard@1.1.0
npm ERR! Found: @typescript-eslint/eslint-plugin@5.0.0
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR! dev @typescript-eslint/eslint-plugin@"5.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @typescript-eslint/eslint-plugin@"^4.29.3" from eslint-config-airbnb-typescript@14.0.1
npm ERR! node_modules/eslint-config-airbnb-typescript
npm ERR! dev eslint-config-airbnb-typescript@"14.0.1" from the root project

I have tried to use node version 14.17.0 and also tried 14.17.3.

Is there any specific 14.17. something version required?

@bweston92
Copy link

This is part of npm v7 shipping with Node v16. To add previous behaviour you'll need to do npm install --legacy-peer-deps.

@vcoopman
Copy link

vcoopman commented Dec 27, 2021

@jnachman123 I had the same issue when using node version 16.13.

Switched back to node version 14.17 and it worked first time +1

This worked for me! To avoid having to reinstall node, you can use a node version manager. (https://stackoverflow.com/questions/7718313/how-to-change-to-an-older-version-of-node-js/50817276)

Then run:

  1. n 14.17
  2. n exec 14.17 npm install
  3. n exec 14.17 npm start

@bweston92
Copy link

@vcoopman or just run npm with --legacy-peer-deps

@yashvantvala
Copy link

I have make it work with skipping the dev dependencies, If you remove dev dependencies from the package.json then it will work with most of nodejs version

@vcoopman
Copy link

@vcoopman or just run npm with --legacy-peer-deps

I tried with that using node 17, but no luck

@yashvantvala
Copy link

Try to remove dev dependecies from package.json

@francisco-chaves-dc
Copy link

Try to remove dev dependecies from package.json

This was the only thing that worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants