-
-
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-cli-service does not run in cmd.exe or Powershell #1119
Comments
This was an obscure npm edge case, not related to vue-cli. Was using npm in bash on windows to develop, had to test in cmd.exe. Apparently npm only generates .cmd files for Windows when you run npm install from cmd.exe or Powershell. Deleting node_modules and re-installing from cmd.exe fixes this. |
Similar problem on beta10. had many " vue-loader was used without the corresponding plugin errors" after a clean vue create. Fixed it by using CMD instead of PowerShell |
Hm, using git bash on windows isn't an obscure edge case. It's the only way to develop on windows :) Oh I see what you are saying, you ran install on cmd and then ran npm command in bash. |
Happened to me, it turned out when I run Manually moving the installed files to the current user |
Similar problem for me. Deleting node_modules and reinstalling with |
I have had this problem using windows 7, in my case I run |
it's so working |
uninstalled / reinstalled Node/NPM, tried all the recommendations here but nothing is working. Can't get vue CLI to execute npm run serve with or without running cmd/powerShell as Administrator on windows 10 ... |
None of the above worked for me, but I think my problem was related to WSL. Sometimes when I check out a repo using WSL it causes some weird case-sensitivity issues when I try to do things in that directory from cmd. I checked out my project using git in cmd rather than WSL, and everything started to work as expected. |
My problem was with Visual Studio 2019 build process. I my case I was able to solve it by providing a more complete path to vue-cli-service in package.json. i.e. "scripts": { |
I used this command on my bash terminal And, Then I run vue js app
What can i do? Please, help me, |
You can try to delete the |
Bitdefender (and perhaps other antivirus software) prevents a Windows process from launching a new console because it blocks access to conhost.exe. Thus |
try running command prompt as administrator if your account is an administrator account, and run npm install --global @vue/cli. if it still doesn't work run npm uninstall --global @vue-cli to uninstall previous versions of Vue. then run npm install --global @vue/cli to install Vue |
"npm i" has fixed the issue for me |
Still facing the same issue for Windows. I've been trying to delete Using absolute path to the vue-cli-service (ex: |
On Windows, if you follow the installation instructions and install @vue/cli using the npm install "-g" option, the vue command is installed in c:\Users<your username>\AppData\Roaming\npm. Then when you try to run "vue" the command is not found because it's not in your Windows path. The easy solution is to add "%APPDATA%\npm" to your path. |
Remember to set the NODE_ENV=development and run npm install again |
may be you are in development mode. such as you root dir has an |
Version
3.0.0-beta.6
Reproduction link
https://gist.github.com/mrberggg/18d54d105f8cbfa64bd03cb63f9fdfdf
Steps to reproduce
Create a new project with vue cli, then navigate to folder.
In bash run
vue-cli-service serve
or./node_modules/.bin/vue-cli-service serve
. Serve will work properly.In Powershell/cmd.exe, run
vue-cli-service serve
. Will show the following error:'vue-cli-service' is not recognized as an internal or external command
Try running the service manually by running
.\node_modules\.bin\vue-cli-service serve
. Will pop open Windows' 'How do you want to open this file?' dialog.What is expected?
Should run correctly in cmd.exe/Powershell.
What is actually happening?
Does not run.
The text was updated successfully, but these errors were encountered: