-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
npm run serve command failed in a freshly made project created with @vue/cli. (Cannot find module '\node_modules\eslint\lib\api.js/package.json') #10226
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
Please, open this on vue-cli. From reading the error it seems to be a problem in one of the dev dependencies |
I have this exactly same problem on a project I've just started. My vue/cli was working well, I have created projects on in before but then suddenly it is not possible to create a new project anymore. |
see referenced above. for now this workaround fix the problem |
im using this solution: Steps I fixed it via yarn: remove node_modules and yarn.lock |
@furqon : This worked fo me. |
Uh oh!
There was an error while loading. Please reload this page.
Here's what happened:
Installed vue cli tool.
created a project using it.
tried to start the project with
npm run serve
according to docs.compile process failed, right out of the bat!
Version
2.6.10
Reproduction link
https://github.com/m-ahmadi/vue-issue
Steps to reproduce
npm install @vue/cli -g &&
vue create test_app &&
default (babel, eslint) &&
cd test_app &&
npm run serve
What is expected?
That the app will be served on a local URL.
What is actually happening?
Compile process fails with 1 error: (Cannot find module '\node_modules\eslint\lib\api.js/package.json')
OS: Windows 7 Ultimate Service Pack 1
node -v: v8.11.3
npm -v: 6.9.0
vue -V: 3.9.0
npm run serve
INFO Starting development server...
98% after emitting CopyPlugin
ERROR Failed to compile with 1 errors 20:56:38
Module build failed (from ./node_modules/eslint-loader/index.js):
Error: Cannot find module 'E:\xampp\htdocs\testvue2\node_modules\eslint\lib\api.js/package.json'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.module.exports (E:\xampp\htdocs\testvue2\node_modules\eslint-loader\index.js:170:23)
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
The text was updated successfully, but these errors were encountered: