Skip to content

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

Closed
@prakhargupta1

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions