Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

981
Visualizações
I can't run vue cli in Ubuntu - Error: Unable to access jarfile /snap/vue/1/jar/vue-1.0-SNAPSHOT.jar

I am trying to install vue cli for the first time.

I tried using npm install -g @vue/cli and yarn global add @vue/cli and it seems to install correctly.

But if I run vue create my-project or vue --version, I get the following error:

Picked up _JAVA_OPTIONS: -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
Error: Unable to access jarfile /snap/vue/1/jar/vue-1.0-SNAPSHOT.jar

My operative system is Ubuntu.

over 4 years ago · Santiago Trujillo
6 Respostas
Responde à pergunta

0

let's try sudo snap remove vue you will get something like: "vue removed", then try: vue in the terminal and see if it works ! h

over 4 years ago · Santiago Trujillo Relatório

0

I fixed that using the vue-init command rather than vue init (which I've read that was the correct one). The entire command used was:

vue-init webpack-simple your-project-name

Then Vue-cli will ask you a series of questions such as project name, description and author.

Hope that helps.

over 4 years ago · Santiago Trujillo Relatório

0

I had the same problem, to solve:

  1. Remove the vue using snap
sudo snap remove vue
  1. Then install vue globally via npm or yarn
npm install -g @vue/cli

OR

yarn global add @vue/cli
over 4 years ago · Santiago Trujillo Relatório

0

I had the same problem as mentioned but it's due to me not giving administrator privilege to the installation. Therefore, I had to give an administrator privilege to the installation by typing:

sudo npm install -g @vue/cli

Then when I need to create the Vue project I type

sudo vue create <project_name>

and it works fine.

over 4 years ago · Santiago Trujillo Relatório

0

This solution worked for me on my Ubuntu system:

npm:

sudo snap remove vue && npm install -g @vue/cli

Yarn:

sudo snap remove vue && yarn global add @vue/cli

Then reopen your terminal.

over 4 years ago · Santiago Trujillo Relatório

0

I used these commands:

sudo snap remove vue
sudo npm install -g @vue/cli

Then created the Vue project:

sudo vue create <project_name>
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda