vue-cli: vue create node under v8.10.0: Error: Failed to resolve plugin: @vue/cli-service

Version

3.0.0-beta.14

Reproduction link

https://github.com/vuejs/vue-cli

Steps to reproduce

npm i -g @vue/cli or yarn add global @vue/cli. Then run vue create <project-name> and select default settings.

What is expected?

Command to scaffold project and install dependencies.

What is actually happening?

Command creates package.json, package-lock.json files and installs some (or all?) dependencies into node_modules dir, but doesn’t scaffold any other files.

It fails with error:

🚀  Invoking generators...
 ERROR  Error: Failed to resolve plugin: @vue/cli-service
Error: Failed to resolve plugin: @vue/cli-service
    at Creator.resolvePlugins (/Users/ziga/.nvm/versions/node/v8.9.4/lib/node_modules/@vue/cli/lib/Creator.js:303:15)
    at Creator.create (/Users/ziga/.nvm/versions/node/v8.9.4/lib/node_modules/@vue/cli/lib/Creator.js:146:32)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 12
  • Comments: 26 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Yes it’s related. So the working version of require.resolve(request, options) is 8.10.0, thanks!

I implemented a fallback resolver for older versions of node:

capture d ecran 2018-05-30 a 09 48 24

Happening for me on Win 7 with 3.0.0-beta.14

@Akryum Yes, Node v8.11.2 works 👍

Are you on windows 10? I think I heard a couple of people report problems with 10