question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module '@vue/cli-plugin-eslint'

See original GitHub issue

Version

3.0.0-rc.11

Node and OS info

node v10.8.0, npm 6.2.0, macOS High Sierra

Steps to reproduce

vue create test -p default && cd test && vue-cli-service build

What is expected?

build

What is actually happening?

internal/modules/cjs/loader.js:583
    throw err;
    ^

Error: Cannot find module '@vue/cli-plugin-eslint'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at idToPlugin (/usr/local/lib/node_modules/@vue/cli-service/lib/Service.js:136:14)
    at Array.map (<anonymous>)
    at Service.resolvePlugins (/usr/local/lib/node_modules/@vue/cli-service/lib/Service.js:162:10)
    at new Service (/usr/local/lib/node_modules/@vue/cli-service/lib/Service.js:33:25)
    at Object.<anonymous> (/usr/local/lib/node_modules/@vue/cli-service/bin/vue-cli-service.js:16:17)
    at Module._compile (internal/modules/cjs/loader.js:689:30)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

24reactions
tdrachcommented, Aug 31, 2018

I’m getting this same problem with npm run build:

Version: 3.0.0-beta.9 Node: 10.0.0 macOS: 10.13.5

$ npm run build
> vue-cli-service build

internal/modules/cjs/loader.js:573
    throw err;
    ^

Error: Cannot find module '@vue/cli-plugin-eslint'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)
    at Function.Module._load (internal/modules/cjs/loader.js:497:25)
    at Module.require (internal/modules/cjs/loader.js:626:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at idToPlugin (/Users/thomasdrach/Documents/code/p/node_modules/@vue/cli-service/lib/Service.js:136:14)
    at Array.map (<anonymous>)
    at Service.resolvePlugins (/Users/thomasdrach/Documents/code/p/node_modules/@vue/cli-service/lib/Service.js:162:10)
    at new Service (/Users/thomasdrach/Documents/code/p/node_modules/@vue/cli-service/lib/Service.js:33:25)
    at Object.<anonymous> (/Users/thomasdrach/Documents/code/p/node_modules/@vue/cli-service/bin/vue-cli-service.js:16:17)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
5reactions
sodateacommented, Aug 8, 2018

vue-cli-service should not be called directly. You need to call it by npm run build or with a path prefix ./node_modules/.bin/vue-cli-service build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

@vue/cli-plugin-eslint - npm
Start using @vue/cli-plugin-eslint in your project by running `npm i @vue/cli-plugin-eslint`. There are 167 other projects in the npm ...
Read more >
How to solve Error: Cannot find module 'vue-cli-plugin-vuetify'
Run:npm i / npm install. That worked for me.
Read more >
@vue/cli-plugin-eslint - npm Package Health Analysis | Snyk
The npm package @vue/cli-plugin-eslint was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as...
Read more >
vue/cli-plugin-eslint
Vue CLI is in Maintenance Mode! For new projects, it is now recommended to use create-vue to scaffold Vite-based projects.
Read more >
Error: Cannot find module '@vue/cli-plugin-babel/preset'
[Solved]-Error: Cannot find module '@vue/cli-plugin-babel/preset'-Vue.js ... Adding @vue/cli-plugin-babel/preset as one of the devDependencies should solve the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found