create-nuxt-app icon indicating copy to clipboard operation
create-nuxt-app copied to clipboard

installation issue

Open MavDavis opened this issue 3 years ago • 16 comments

Screenshot

Versions

  • nuxt:
  • node:

Reproduction

Additional Details

Steps to reproduce

What is Expected?

What is actually happening?

MavDavis avatar Nov 16 '22 20:11 MavDavis

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

MavDavis avatar Nov 16 '22 20:11 MavDavis

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 avatar Nov 16 '22 21:11 danielroe

cc: @clarkdo

danielroe avatar Nov 16 '22 21:11 danielroe

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.

clarkdo avatar Nov 16 '22 22:11 clarkdo

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

MavDavis avatar Nov 17 '22 00:11 MavDavis

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

MavDavis avatar Nov 17 '22 00:11 MavDavis

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

I have never used nuxi, any help?

MavDavis avatar Nov 17 '22 01:11 MavDavis

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

clarkdo avatar Nov 17 '22 06:11 clarkdo

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

MavDavis avatar Nov 17 '22 10:11 MavDavis

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.

MavDavis avatar Nov 18 '22 09:11 MavDavis

@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.

danielroe avatar Nov 18 '22 09:11 danielroe

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 avatar Nov 18 '22 13:11 mrsalitre

@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

mrsalitre avatar Nov 18 '22 14:11 mrsalitre

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.

Myzwer avatar Nov 20 '22 13:11 Myzwer

Nuxt issue

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

Abdul-Rafay-2002 avatar Jan 12 '23 17:01 Abdul-Rafay-2002

Vm only local only 127.0.0.0.1 and so on no vac

Dalerobi avatar Jul 06 '24 22:07 Dalerobi