Problem with quasar init command
-
Hi guys, I tried to create a new project with the init command but I got an error:
app:init Something went wrong… Try running the “vue init” command above manually.
app:init Reasons for failure: Package vue-cli not installed globally, specified template is unavailable or it failed to download.I followed exactly the steps in the documentation and in this video https://www.youtube.com/watch?v=2yahKIy2h8U
I also tried to uninstall node but I got the same issue.
-
I ran into this same problem. I had vue CLI installed (3.0.0-beta.16), was following the basic steps at https://quasar-framework.org/guide/index.html.
My error was:
add:init Reasons for failure: Package @vue/cli and @vue/cli-init are not installed globally, specified template is unavailable or it failed to download.I added cli-init via $ yarn global add @vue/cli-nit. Once that was done, re-running $ quasar init [project-name] worked for me and a new project was successfully setup.
-
Thx @somascope! BTW, some related issues exist: https://github.com/quasarframework/quasar/issues/2091
EDIT: finally the documentation asks to install
@vue/cli
and@vue/cli-init
when usinginit
command: https://quasar-framework.org/guide/quasar-cli.html#init-Create-Project-Folder