Skip to content
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

Plugin vue-cli-plugin-electron-builder does not have a generator to invoke #500

Closed
enbermudas opened this issue Oct 5, 2019 · 7 comments

Comments

@enbermudas
Copy link

Describe the bug
I just created a fresh project with the @vue/cli and the installed the plugin by running vue add electron-builder but the next thing appears in my terminal:

�  Installing vue-cli-plugin-electron-builder...

yarn add v1.13.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
✔  Successfully installed plugin: vue-cli-plugin-electron-builder

Plugin vue-cli-plugin-electron-builder does not have a generator to invoke

After that, I can't use the yarn electron:serve command.

Not a single file of my project has been modified by me or the plugin installation.

To Reproduce
Steps to reproduce the behavior:

  1. Create a fresh new project by running: vue create app-name
  2. Run vue add electron-builder
  3. Run yarn electron:serve

Expected behavior
Serve the project.

Environment (please complete the following information):

  • OS and version: Windows 7
  • node version: 12.0.4
  • yarn version (if used): 1.13.0
  • vue-cli-plugin-electron-builder version : 1.4.0
@nklayman
Copy link
Owner

nklayman commented Oct 6, 2019

It seems like the download failed and the package is corrupted. Try reinstalling modules (rm -r node_modules && yarn). If that still doesn't work, clear the package cache for this plugin (yarn cache clean vue-cli-plugin-electron-builder).

@enbermudas
Copy link
Author

I've got the same result by doing the steps described above

@enbermudas
Copy link
Author

I ended up creating a whole new project and that worked just fine. Thanks for the help!

@nklayman
Copy link
Owner

nklayman commented Oct 8, 2019

Sometimes the download of a package just gets messed up. Normally clearing node_modules and reinstalling fixes it. Did you clear and reinstall node_modules after clearing the cache?

@EvanXzj
Copy link

EvanXzj commented Jan 10, 2020

I've got the same output with electron-builder@2.0.0-beta.0, vue-cli-plugin-electron-builder@1.4.4 is ok

@nklayman please help!

Ouputs

 vue add electron-builder@2.0.0-beta.0

📦  Installing vue-cli-plugin-electron-builder@2.0.0-beta.0...

> ejs@3.0.1 postinstall /Users/xxxx/projects/xxx/my-wallet/node_modules/app-builder-lib/node_modules/ejs
> node ./postinstall.js

+ vue-cli-plugin-electron-builder@2.0.0-beta.0
added 202 packages from 121 contributors in 22.743s
✔  Successfully installed plugin: vue-cli-plugin-electron-builder@2.0.0-beta.0

Plugin vue-cli-plugin-electron-builder@2.0.0-beta.0 does not have a generator to invoke

Expected behavior
Serve the project.

To Reproduce

vue create my-wallet
cd my-wallet
npm run serve  # Ctrl + c  Stop Server
vue add electron-builder@2.0.0-beta.0

Environment

OS:  MacOs 0.13.6
Node: v10.17.0
Npm: v6.12.0
vue-cli:  4.1.2

@nklayman
Copy link
Owner

@EvanXzj you will need to run vue invoke electron-builder. Vue cli doesn't work properly when you specify a version of a plugin.

@EvanXzj
Copy link

EvanXzj commented Jan 11, 2020

@nklayman Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants