-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Building generated project failed due to vue-cli-service command not found #1105
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
Comments
The
In
|
This bug could be related to unstable npm installation due to crash in the installation stage: npm/npm#20295 You may close this ticket if you think there is not further issues related to |
can you test with any other npm binary? For example |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Same here. Tried beta12 and beta14. |
Occurs here as well in Windows 10 env with:
Extra notes:
|
I think it's an nvm issue. For me at least switching to a regular node install works, where using nvm gave me the error |
I fixed this by :
EDIT: When typing in " @ and vue/cli together as one word, it removes from the text displayed. For clarity, I've added a space between the @ sign and the vue/cli. Don't copy paste these commands unless you plan on removing the space your self. Note: working on a windows 10 env |
Same fix worked for me as well, upgraded to the latest stable version of node(8.11.2) and latest version of npm (6.1.0). That fixed the issue for me for windows 10 |
Upgrading Vue CLI from beta 14 to beta 15 seems to have fixed the issue for me at this moment:
No Node or NPM updates needed. |
Upgrade to beta 15 did NOT resolve the issue for me. I was about to submit a new issue when I found this thread. Here's what I was about to post: Version3.0.0-beta.15 Reproduction linkGiven that this is a tooling issue, I don't know how to reproduce online. Description below is for project generation using the GUI. However I also tried the exact same set of configuration options using Steps to reproduce
NOTE: The first time I did this, it asked me to specify options. The second time, it did not. Here's what I chose the first time:
What is expected?I expected a new project to be created and initialized in the target directory specified. What is actually happening?Project creation failed with the following error message (note: file path anonymized):
Some additional information about my dev machine: OSX 10.13.4 Output of
|
What packages were installed in the project? |
In my case, it was a brand new project, so only default packages were installed. The failure happens when using |
@Akryum likely the @morphatic it should work if you use Node 8.x or 10.x for now. |
I got it working (based on Evan's hint). Here's what I did:
Based on that, it's hard to say whether the ultimate cause of the hangup was the version of NVM or the version of Node, but my guess is that it is a Node version issue. |
Seems to be supported by Node 9: https://nodejs.org/docs/latest-v9.x/api/modules.html#modules_require_resolve_request_options |
Node 9.0.0 has the paths option: https://github.com/nodejs/node/blob/fa9990f3fb5b06fe94e294925246d2c136deb2c2/lib/module.js#L517-L534 |
I came across this thread with the same problem only I continued to have this problem using Windows 10 despite installing the latest stable version (8.11.2) of node and upgrading to npm (6.1.0). The problem it seems was upgrading npm to 6.1.0 using npm. For anyone else with this problem using windows10 and wondering why their installation still isn't working, here there is a tool provided by windows: https://github.com/felixrieseberg/npm-windows-upgrade. Initially installing and running as described still did not work. I had to follow all the troubleshooting steps mentioned:
The windows npm upgrade tool was linked to from npmjs troubleshooting here: https://docs.npmjs.com/troubleshooting/try-the-latest-stable-version-of-npm But I now also have windows 10 running 3.0.0-beta.15 with Node (8.11.2) of node and npm (6.1.0). |
small correction - I have to use the vue ui to create the projects, so the web interface is working for me but not the command line. Still get the Error: Failed to resolve plugin: @vue/cli-service |
If anybody is still facing this issue, i was able to solve it on MacOS by installing globally
Which popped out when running
Hope it helps, Cheers! |
+1 |
Same error here too. |
"But! I do npm run build and again npm run serve. And it's work!" Same here lol |
My co-worker and I are also having this problem on OSX using Node 8.10.0 and npm 6.1.0 with the addition of using Yarn Workspaces and my personal use of On my computer, installing Upgrading to Reverting the upgrade and re-running |
Getting this with |
Running
To fix this I ran |
This error was showing up in my CI environment (CodeShip Ubuntu 14.04). The details below got me unstuck. With the --production flag (or when the NODE_ENV environment is set to production), npm will not install modules listed in devDependencies."
This will load all dev dependencies including @vue/cli-service which may or may not be desirable depending on what environment you are building for. |
I have install sudo npm install -g @vue/cli-upgrade @vue/cli-service-global but when I do $ vue upgrade
Command vue upgrade requires a global addon to be installed.
Please run yarn global add @vue/cli-upgrade and try again. 🤔 🤔 ❓ my
|
Got this error, I think due to nvm switching node version. |
on ubuntu I fixed this by:
|
This works well. Thank you. Here's a link to the current nvm version, for anyone needing this fix in 2020 or beyond |
i have same problem with docker |
I created a new Vue project using the
vue create
command. I managed to build it properly on my MacOS platform, but on a CentOS 6.9 platform the build fails with the following error message:sh: vue-cli-service: command not found
I found a workaround by modifying
package.json
as follows:Version
3.0.0-beta.6
Reproduction link
This is random link, do not open! I cannot reproduce in these places.
https://jsfiddle.net/chrisvfritz/50wL7mdz/
Steps to reproduce
Install latest npm, latest vue-cli and try to build a Vue project in CentOS 6.9
What is expected?
The build should succeed
What is actually happening?
The text was updated successfully, but these errors were encountered: