bloomui / tokyo-free-white-react-admin-dashboard

Free React Typescript Admin Dashboard Template built with Material-UI
https://bloomui.com/product/tokyo-free-white-react-typescript-material-ui-admin-dashboard/
MIT License
307 stars 167 forks source link

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

Open jnachman123 opened 3 years ago

jnachman123 commented 3 years ago

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 commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

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

yashvantvala commented 2 years ago

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 commented 2 years ago

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

I tried with that using node 17, but no luck

yashvantvala commented 2 years ago

Try to remove dev dependecies from package.json

francisco-chaves-dc commented 2 years ago

Try to remove dev dependecies from package.json

This was the only thing that worked for me.