vercel / vercel/next-learn

npm install Error when installing starter example project from learn section of nextjs

Open
#587 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
4.8k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

Hi, i am trying to learn nextjs from learn section of website and tried to download starter example using - "npx create-next-app@latest nextjs-dashboard --use-npm --example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example",
Its throwing me some errors and finally giving out "npm install has failed".
Attached my log files.
I am using:
node v20.10.0
npm v10.4.0
how can i resolve the error, i tried installing string-width using "npm i string-width" but still failing to install the starter app.
npm-debug.log

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the supplied create-next-app command with Node v20.10.0 and npm v10.4.0, then inspect the attached npm-debug.log for the failing installation step. Done means the dashboard starter example installs successfully, or the issue documents a confirmed incompatibility and its supported setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, node.js
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.