creativetimofficial / nextjs-argon-dashboard

NextJS version of Argon Dashboard React
MIT License
130 stars 434 forks source link

[Bug] npm install fails #13

Open brilang opened 3 years ago

brilang commented 3 years ago

Version

1.1.0

Reproduction link

n/a

Operating System

Windows 10 Home 64-bit

Device

Dell Gaming PC, Intel i7-10700F, 32GB memory

Browser & Version

n/a

Steps to reproduce

  1. Go to downloads section on creative tim website (be sure to be logged into your account)
  2. Press the download button near NextJS Argon Dashboard (FREE) product (this will download onto your computer a zip file)
  3. Unzip the downloaded file to a folder in your computer
  4. Open Terminal
  5. Go to your file project (where you’ve unzipped the product)
  6. Run in terminal npm install

What is expected?

npm install to work properly

What is actually happening?

npm fails with the following results

C:\Users\brila\Projects\ArgonTemplate>npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: nextjs-argon-dashboard@1.1.0 npm ERR! Found: react@17.0.1 npm ERR! node_modules/react npm ERR! react@"17.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.5.0" from react-datetime@3.0.4 npm ERR! node_modules/react-datetime npm ERR! react-datetime@"3.0.4" 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 C:\Users\brila\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\brila\AppData\Local\npm-cache_logs\2021-03-20T01_31_59_858Z-debug.log


Solution

Possibly the same solution to Issue # 8 in the Notus NextJS project as the error messages are similar.

Additional comments

I have reported the same problem from my work Github account for the PRO version of Argon with no response in 8 days. My company purchased a license for the product.

tebanban commented 3 years ago

I have reported the same problem from my work Github account for the PRO version of Argon with no response in 8 days. My company purchased a license for the product.

I got the same error , unable to start this template.

thedevtechs commented 3 years ago

Bump - Free version of this theme

koolkool800 commented 3 years ago

if anyone has the same error, open terminal in vscode and try this npm install --save --legacy-peer-deps it helped me

Max-Power-7 commented 3 years ago

Same error!! I need help.

Sydwelll commented 3 years ago

What's your node version ?

rgdcastro commented 2 years ago

Same error here. Any update on this?

-EDIT-

To anyone still having problem.

use yarn install instead of npm

You also need to have python2 installed.

MostlyGenius commented 2 years ago

has this been fixed for anyone? having same issue with paid version

abdulsamadayoade commented 2 years ago

I'm having the same issue with the paid version too

anasbn3issa commented 2 years ago

yarn install worked for me indeed

rajivchaulagain commented 2 years ago

yarn install also gives problem to me it gives my gyp Err! any solution for yarn install

navi8236 commented 2 years ago

Same Issue.

0bkevin commented 1 year ago

Using $ yarn install worked for me. But before install I had to delete the node-sass dependency because it has an error during build. After the installation succeeded, I install again node-sass with yarn. Everything worked perfect.

Summary:

  1. Delete node-sass dependency in the package.json file.
  2. use $ yarn install instead of npm
  3. install node-sass dependency with yarn ($ yarn install node-sass
johnshaff commented 1 year ago

I've tried all this companies next.js templates. Every single one of them has a mess of dependency issues.

zergrandy commented 1 year ago

@mustafinho thank you! you solved my problem

  1. should be $ yarn add node-sass
devAyushDubey commented 1 year ago

These steps worked for me:

  1. Use node version 16.8.0 (if you use nvm, $ nvm install 16.8.0 and $ nvm use 16.8.0)
  2. Delete node_modules and yarn.lock/package-lock.json files if any
  3. Remove node-sass dependency from package.json file
  4. Do $ yarn install
  5. Now install node-sass, $ yarn add node-sass
arshaan-abh commented 1 year ago

@devAyushDubey @zergrandy @bravokevin It installed like you said, but now it doesn't recognize the next command for viewing the dashboard. Did I make a mistake?

arshaan-abh commented 1 year ago

@devAyushDubey @zergrandy @bravokevin It installed like you said, but now it doesn't recognize the next command for viewing the dashboard. Did I make a mistake?

Oh, I missed the yarn add next and yarn add react. But now I get this: TypeError: Cannot set properties of undefined (setting 'styles')

arshaan-abh commented 1 year ago

@devAyushDubey @zergrandy @bravokevin It installed like you said, but now it doesn't recognize the next command for viewing the dashboard. Did I make a mistake?

Oh, I missed the yarn add next and yarn add react. But now I get this: TypeError: Cannot set properties of undefined (setting 'styles')

Just in case someone has the same issue, I downgraded node to 16.10.0 with nvm for windows.

yigittheearthwalker commented 1 year ago

@devAyushDubey @zergrandy @bravokevin It installed like you said, but now it doesn't recognize the next command for viewing the dashboard. Did I make a mistake?

Oh, I missed the yarn add next and yarn add react. But now I get this: TypeError: Cannot set properties of undefined (setting 'styles')

I am dealing with the same error TypeError: Cannot set properties of undefined (setting 'styles'), tried downgrading to 16.10.0 as well but didn't work

arshaan-abh commented 1 year ago

@devAyushDubey @zergrandy @bravokevin It installed like you said, but now it doesn't recognize the next command for viewing the dashboard. Did I make a mistake?

Oh, I missed the yarn add next and yarn add react. But now I get this: TypeError: Cannot set properties of undefined (setting 'styles')

I am dealing with the same error TypeError: Cannot set properties of undefined (setting 'styles'), tried downgrading to 16.10.0 as well but didn't work

You're using yarn instead of npm, right?