nuxt icon indicating copy to clipboard operation
nuxt copied to clipboard

Install not working with Cli version 3

Open bujji1 opened this issue 7 years ago • 3 comments

My vue version - 3.0.0-rc.10

The command vue init vuetifyjs/nuxt myproj throwing the below error

Command vue init requires a global addon to be installed. Please run yarn global add @vue/cli-init and try again.

I changed the command to vue create vuetifyjs/nuxt mypro according to new Vue documents but now getting the below errors

Invalid project name: "vuetifyjs/nuxt" name can only contain URL-friendly characters

Could any one help me on this to install Vuetify Nuxt template ..?

Thank You

bujji1 avatar Aug 10 '18 14:08 bujji1

Installing @vue/cli-init also resolved the issue . Here are the steps

1) npm install -g @vue/cli @vue/cli-init
2) vue init vuetifyjs/nuxt my-project 
3) cd my-project   
4) npm install

Please let us know if there is any better way , because @vue/cli-init in fact creating to use version 2 directly in version 3

bujji1 avatar Aug 10 '18 15:08 bujji1

I installed cli-init and followed your lead but running npm run dev I repeatedly receive the error Cannot read property 'eslint' of undefined ... So I run npm run build and-or nuxt build and receive no errors. And then I run my app on a port other than the default: PORT=5555 npm run start ... and there is joy ... it works also with npm run dev which equals nuxt build followed by nuxt start ... happy to provide config info ...

bretonio avatar Sep 30 '18 18:09 bretonio

@bretonio Facing the same issue and your workaround worked like a charm. Thanks.

VidyasagarMSC avatar Oct 01 '18 04:10 VidyasagarMSC