Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 6165  / 3 Years ago, sat, august 21, 2021, 4:02:44

When I run:



vue --version


I get this error message:



Command 'vue' not found, did you mean:

command 'vpe' from deb texlive-latex-extra

Try: sudo apt install <deb name>


Notes:



npm config get prefix
/home/begueradj/.nvm/versions/node/v12.8.0


and:



npm list vue
/home/begueradj
└── [email protected]


I previously run:



yarn global add @vue/cli
yarn global add @vue/cli-service-global


How to fix this ?



For the moment, when I add this to ~/.profile



export PATH="$(yarn global bin):$PATH"


and run: source ~/.profile



The issue is solved ... but only for the current Terminal session (I had to run source .profile each time I open a new Terminal session)


More From » 18.04

 Answers
5

Here is the solution I found:



I had to add permanently the variable mentioned indirectly above (.yarn/bin) to /etc/environment:



:/.yarn/bin



I then restarted my laptop and got it work:



enter image description here


[#4512] Sunday, August 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rcraftemur

Total Points: 118
Total Questions: 119
Total Answers: 144

Location: Turks and Caicos Islands
Member since Sun, Mar 7, 2021
3 Years ago
;