Next.js Discord

Discord Forum

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

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
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.

0 Replies