I can't run vue cli in Ubuntu - Error: Unable to access jarfile /snap/vue/1/jar/vue-1.0-SNAPSHOT.jar I can't run vue cli in Ubuntu - Error: Unable to access jarfile /snap/vue/1/jar/vue-1.0-SNAPSHOT.jar vue.js vue.js

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


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


I have the same problem as mentioned but it's due to me not giving administrator privilege to the installation. Therefore, I just have to give Administrator Privilege to the installation by typing sudo npm install -g @vue/cli. Then when I need to create Vue Project I just type sudo vue create <project_name> then it works fine.


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