tokyo-free-white-react-admin-dashboard icon indicating copy to clipboard operation
tokyo-free-white-react-admin-dashboard copied to clipboard

Dependancy Issue stopping me running NPM Install and testing.

Open jnachman123 opened this issue 3 years ago • 10 comments

npm install gives me

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: @typescript-eslint/[email protected] 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 [email protected] 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

jnachman123 avatar Oct 25 '21 14:10 jnachman123

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

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

leemcmullen avatar Nov 18 '21 12:11 leemcmullen

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

drmzio avatar Nov 24 '21 20:11 drmzio

I am also having following error

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: @typescript-eslint/[email protected] 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 [email protected] 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?

yashvantvala avatar Dec 16 '21 10:12 yashvantvala

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

bweston92 avatar Dec 18 '21 10:12 bweston92

@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

vcoopman avatar Dec 27 '21 23:12 vcoopman

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

bweston92 avatar Dec 28 '21 08:12 bweston92

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

yashvantvala avatar Dec 28 '21 08:12 yashvantvala

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

I tried with that using node 17, but no luck

vcoopman avatar Dec 29 '21 20:12 vcoopman

Try to remove dev dependecies from package.json

yashvantvala avatar Dec 30 '21 04:12 yashvantvala

Try to remove dev dependecies from package.json

This was the only thing that worked for me.

francisco-chaves-dc avatar Apr 15 '22 01:04 francisco-chaves-dc