Next.js Discord

Discord Forum

Issues creating a new project, won't install

Unanswered
Whiteleg shrimp posted this in #help-forum
Open in Discord
Whiteleg shrimpOP
I'm trying to npx create-next-appand I answer the asked questions.
But when it gets to the installment, I receive the following:

Aborting installation. npm install --save-exact --save react react-dom next typescript @types/react @types/node @types/react-dom tailwindcss postcss autoprefixer eslint eslint-config-next has failed.

Most of the normal files are created, but the above fails and package.json lacks dependencies as an example.

Info:

OS: Mac Ventura 13.5.2
Node: v18.17.1
Npm: 10.1.0
Next:

Any thoughts?

Thanks in advanced!

2 Replies

Whiteleg shrimpOP
I tried sudo npx create-next-appand all of a sudden it works, this is not something I've had too do before, does anyone know how to sort that and why this might have happend?
The only thing I've changed recently is that I upgraded the NPM version
Slender-billed Curlew
Try to specify your app name at the last or add dot (.)
 
npx create-next-app@latest .