0

I'm trying to create a next app using the following CLI command: npx create-next-app and after entering my app name it gives me the following error: enter image description here

Note that I have previously created a next app using the exact same method and it did work just as intented without any errors.

Daniel_Kamel
  • 610
  • 8
  • 29
  • 2
    Hi Daniel, you can take a look in a similar question: https://stackoverflow.com/questions/64930058/ive-been-trying-to-create-a-react-app-but-i-keep-getting-this-error-npm-err – Pitter Feb 09 '22 at 20:15
  • 1
    @Pitter hey thank you, the first answer in that link worked for me! – Daniel_Kamel Feb 09 '22 at 20:36

1 Answers1

1

I honestly dont know why, but running npm init and npm i create-nuxt-app worked for me.

Edit: the problem can be with globally installed package, try running npm uninstall -g create-nuxt-app if answer above didnt help.

Atzuki
  • 627
  • 1
  • 5
  • 16