nuxt / create-nuxt-app

Create Nuxt.js App in seconds.
MIT License
3.47k stars 428 forks source link

installation issue #1018

Open MavDavis opened 1 year ago

MavDavis commented 1 year ago

Screenshot

Versions

Reproduction

Additional Details

Steps to reproduce

What is Expected?

What is actually happening?

MavDavis commented 1 year ago

I have tried installing nuxt like four times tonight and that is the error I keep getting anytime I try running npm run dev

danielroe commented 1 year ago

try setting the nuxt version in your package.json to 2 - I suspect you're pulling in Nuxt 3, which has just been released, along with a module that's not compatible with nuxt 3.

danielroe commented 1 year ago

cc: @clarkdo

clarkdo commented 1 year ago

As @danielroe said, create-nuxt-app doesn’t support nuxt.js v3 and I think nuxi init is the best way to initialize nuxt v3 application.

I’ll also make fix to have better prompt when packages are not compatible.

@pi0 @danielroe please correct me if I misunderstood anything or I’m wrong.

MavDavis commented 1 year ago

what is the full command when using nuxi to create a nuxt app @clarkdo

MavDavis commented 1 year ago

Ain't they suppose to modify the docs tho cos the process for the installation was from the official nuxt docs

MavDavis commented 1 year ago

'nuxi' is not recognized as an internal or external command, operable program or batch file

I have never used nuxi, any help?

clarkdo commented 1 year ago

Please follow nuxt v3 doc, https://nuxt.com/docs/getting-started/installation#new-project

MavDavis commented 1 year ago

Screenshot So I used npx nuxi init app to create another app and this is the error I get running npm run dev

MavDavis commented 1 year ago

Please what's the best way of installing a nuxt app and which version is recommendable( (I will appreciate a version that allows auto import)? I have tried so many methods and it will end up giving an error.

danielroe commented 1 year ago

@MavDavis - the best way to install a new Nuxt app is to follow the instructions to get started with Nuxt 3 at https://nuxt.com/docs/getting-started/installation.

mrsalitre commented 1 year ago

You can follow the instructions to get started with Nuxt 3 at https://nuxt.com/docs/getting-started/installation.

Isn't that the way to start a project with nuxt 3? Then it does not work for this repository, I just followed the instructions to start a project with nuxt 2 and I had exactly the same problem as this issue.

The installed version of nuxt is version 2.

mrsalitre commented 1 year ago

@MavDavis try to do a fresh install of nuxt2 with out extra plugins, specially tailwind, if you need tailwind use this version instead https://www.npmjs.com/package/@nuxtjs/tailwindcss/v/4.0.0-12

Myzwer commented 1 year ago

My project was already live and throwing started this error, but downgrading @nuxtjs/tailwindcss to 4.2.1 fixed the issue for anyone else struggling with it.

Abdul-Rafay-2002 commented 1 year ago

Nuxt issue

Same issue for my side. if I uninstall the Tailwind plugin the project is through some more errors.