-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'vue' is not recognized as an internal or external command on windows #347
Comments
That's not necessary 🙂 It installs the vue packages You're probably missing the the bin path. You can find some help here: http://stackoverflow.com/questions/27864040/fixing-npm-path-in-windows-8 |
@posva Thanks for the spontaneous reply 👍 This thread solved the issue from the same page ⬇️ Thanks a lot! |
Thanks for sharing it! It may help other people |
Hi, I'm having the same issue, I've set up: System > Enviroment Variables > System Variables > Path > C:\Users\Admin\AppData\Roaming\npm\node_modules\vue-cli\bin npm install -g vue-cli, looks to have installed the files in the AppData folder. I'm running the following: node -v npm --version Windows 10. I'm getting the following error: 'vue' is not recognized as an internal or external command, I followed the same idea and got the zf cli working by adding the bin to the path in Enviroment Variables, not sure why this isn't working. Can someone advise on what I'm missing. |
A fix for the issue, that worked for me. On the Vue JS website the following is used to install vue-cli install vue-cli$ npm install --global vue-cli create a new project using the "webpack" template$ vue init webpack my-project install dependencies and go!$ cd my-project Instead of installing: npm install --global vue-cli Before I did the above, I uninstalled node js version v8.1.2 and installed the recommended version v6.11.0 (not sure this really made a difference, but it was part of what I did). Then I reinstalled Git from the Git website using the downloadable installer. |
I had the same issue. after running the following command (as Admin) It will place the vue.cmd in the following directory at least for me it's there. To use vue as command in cmd. Open the cmd as admin and run the the following command. Now restart the cmd and run the vue again. It should work just fine. |
thanks hujjat. you saved a life. |
hi @Hujjat i have no vue.cmd inside by /AppData/Roaming/npm after installing vue-cli. How to fix this? |
@gohance Do you have npm ? you must face any error if it's not working for you ??? |
@Hujjat is awesome.. in my case command: setx /M path "%path%;%appdata%\npm" first did not work for me.. then i gave path to Path then it works properly.. my final command was. etx /M Path "%path%;%appdata%\npm" . it is just for your environment variables.. it may be Path or path just see what it is in your pc.. and if not create one . using Path or path. and use 1)setx /M path "%path%;%appdata%\npm" or 2)setx /M Path "%path%;%appdata%\npm" |
@suvrodattamitu thanks for posting that. I was trying everything from the start and saw your comment when nothing actually worked for me. Then I went back and changed the variable path from 'PATH' to 'path' which worked like a charm. Didn't realize that case sensitive would be such a big deal. Glad I saw your comment, cheers! |
Thanks @Hujjat ! |
I've read and found that running npm config set prefix /usr/local then re-running npm install -g vue-cli has fixed my issue? Not sure whether this was necessary though? |
I am running a windows 8.1 64bit architecture. My current fix is installing vue-cli via npm instead of Yarn. |
thanks @Hujjat |
Keep in mind that the package is no longer Use: |
Thank you so much! I debugged this for 2 hrs and this was very very helpful. Thanks again. |
thanks too
…On Sun, Mar 17, 2019 at 11:45 PM palakvasani ***@***.***> wrote:
I had the same issue.
Here the quick fix.
after running the following command (as Admin)
npm install --global vue-cli
It will place the vue.cmd in the following directory
C:\Users\YourUserName\AppData\Roaming\npm
at least for me it's there.
To use vue as command in cmd. Open the cmd as admin and run the the
following command.
setx /M path "%path%;%appdata%\npm"
Now restart the cmd and run the vue again. It should work just fine.
Thank you so much! I debugged this for 2 hrs and this was very very
helpful. Thanks again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#347 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ASWZ_IwnDu_tMymtK6_4nVqP0Ky2VkNaks5vXn8pgaJpZM4L-NlJ>
.
|
Works very well!!! TKS |
Just for information, If you are using yarn, |
That is what I was missing @xzyaoi |
You need to make it clear that this command will completely replace everything in PATH |
Thank you very much!! |
Been reading through all these comments. Seems this one solution is a fix. |
Thanks Hujjat and yinka7 ...I had this problem but with your help fix. |
how then do I set this path please? I've been struggling with it but no help. I installed vue with yarn |
Hujjat's answer is from 2017, |
@Lazy-poet If you are still struggling with this, take a look at https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/ A quick google search on how to set path on windows should help. |
Thank you so much! |
thank u <3 |
Commands fired
Following error is thrown
Tried workouts (but same failure result)
The text was updated successfully, but these errors were encountered: