creativetimofficial / notus-nextjs

Notus NextJS: Free Tailwind CSS UI Kit and Admin
https://www.creative-tim.com/product/notus-nextjs
MIT License
1.31k stars 1.65k forks source link

[Bug] npm install fails #8

Closed brilang closed 3 years ago

brilang commented 3 years ago

Version

1.00

Reproduction link

https://github.com/brilang/fvcb4

Operating System

Windows 10 Home 64-bit

Device

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

Browser & Version

n/a

Steps to reproduce

  1. Download notus-nextjs-master.zip from the Notus NextJS page
  2. Extract to directory (in my case, C:\Users\brila\Projects\fvcb4)
  3. Run npm install in project directory
  4. Read error messages

What is expected?

npm install should succeed

What is actually happening?

Errors are being generated


Solution

Additional comments

Contents of eresolve-report.txt follows:

npm resolution error report

2021-03-03T02:31:19.430Z

Found: typescript@4.0.3 node_modules/typescript optional typescript@"4.0.3" from the root project

Could not resolve dependency: peerOptional typescript@"^3.2.1" from react-scripts@3.4.3 node_modules/react-scripts react-scripts@"3.4.3" from the root project

Fix the upstream dependency conflict, or retry this command with --force, or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{ "code": "ERESOLVE", "current": { "name": "typescript", "version": "4.0.3", "location": "node_modules/typescript", "dependents": [ { "type": "optional", "name": "typescript", "spec": "4.0.3", "from": { "location": "C:\Users\brila\Projects\fvcb4" } } ] }, "edge": { "type": "peerOptional", "name": "typescript", "spec": "^3.2.1", "error": "INVALID", "from": { "name": "react-scripts", "version": "3.4.3", "location": "node_modules/react-scripts", "dependents": [ { "type": "prod", "name": "react-scripts", "spec": "3.4.3", "from": { "location": "C:\Users\brila\Projects\fvcb4" } } ] } }, "peerConflict": null, "strictPeerDeps": false, "force": false }

einazare commented 3 years ago

Hello there, @brilang ,

Thank you for your interest in working with our products. On our machines, everything is working as expected. Maybe your issue arises from the NodeJS version that you are using. Please download and install NodeJS LTS version 14.16.0: https://nodejs.org/en/ If that does not solve your issue, please provide us the following video:

Best, Manu

brilang commented 3 years ago

I have done those steps exactly, but my Node version is 15.10.0 and my npm version is 7.6.0

image

Contents of eresolve-report.txt were pasted yesterday.

einazare commented 3 years ago

Hello there, @brilang ,

Please download and install NodeJS LTS version 14.16.0: https://nodejs.org/en/ After that, download the product again and start fresh.

Best, Manu

brilang commented 3 years ago

I have now tried on my work PC. OS: Windows 10 Pro 20H2 Device: HP EliteDesk i7-4770 Node version: 14.16.0 Npm version: 7.5.3 I get the same error.

image

einazare commented 3 years ago

Hello again, @brilang ,

I've tested the product 10 times now, and it works as expected. Please provide the following video:

Best, Manu

brilang commented 3 years ago

Issue #10 fixed this for me.