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

[core] Unable to run the tutorial after installing (using npm) #3846

Closed
prakhargupta1 opened this issue Jul 26, 2024 · 0 comments · Fixed by #3847
Closed

[core] Unable to run the tutorial after installing (using npm) #3846

prakhargupta1 opened this issue Jul 26, 2024 · 0 comments · Fixed by #3847
Labels
bug 🐛 Something doesn't work scope: toolpad-core Abbreviated to "core"

Comments

@prakhargupta1
Copy link
Member

prakhargupta1 commented Jul 26, 2024

Steps to reproduce

Steps:

  1. Follow instructions from: https://mui.com/toolpad/core/introduction/tutorial/

Current behavior

Terminal output

prakhargupta@Prakhars-MacBook-Pro tutorial % npx create-toolpad-app@latest --example core-tutorial
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
? Enter path for new project directory: my-app

info - Downloading example "core-tutorial" to /Users/prakhargupta/Desktop/tutorial/my-app

Downloading… 194.768 MB
success - Downloaded and extracted "core-tutorial" to /Users/prakhargupta/Desktop/tutorial/my-app

Run the following to get started: 

  cd my-app
  npm run dev

prakhargupta@Prakhars-MacBook-Pro tutorial % cd my-app
prakhargupta@Prakhars-MacBook-Pro my-app % npm run dev

> [email protected] dev
> next dev

sh: next: command not found
prakhargupta@Prakhars-MacBook-Pro my-app % npm run dev

> [email protected] dev
> next dev

sh: next: command not found
prakhargupta@Prakhars-MacBook-Pro my-app % npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^9.6.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^7.23.0 || ^8.0.0" from [email protected]
npm ERR! node_modules/eslint-config-next
npm ERR!   dev eslint-config-next@"^14.2.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! 
npm ERR! For a full report see:
npm ERR! /Users/prakhargupta/.npm/_logs/2024-07-26T06_32_49_784Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/prakhargupta/.npm/_logs/2024-07-26T06_32_49_784Z-debug-0.log
prakhargupta@Prakhars-MacBook-Pro my-app % npm run dev

> [email protected] dev
> next dev

sh: next: command not found
prakhargupta@Prakhars-MacBook-Pro my-app % cd my-app

Note: Later on, I was able to run pnpm i and pnpm run dev but the localhost couldn't open the app. I got the following error:

Screenshot 2024-07-26 at 12 13 27 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work scope: toolpad-core Abbreviated to "core"
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

2 participants