vue-cli: "Dependencies were not found" - on npm run serve

Version

3.10.0

Environment info

  System:
    OS: Windows 10
    CPU: (8) x64 Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
  Binaries:
    Node: 10.16.3 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: 44.18362.267.0
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0
    @vue/babel-plugin-transform-vue-jsx:  1.0.0
    @vue/babel-preset-app:  3.10.0
    @vue/babel-preset-jsx:  1.1.0
    @vue/babel-sugar-functional-vue:  1.0.0
    @vue/babel-sugar-inject-h:  1.0.0
    @vue/babel-sugar-v-model:  1.0.0
    @vue/babel-sugar-v-on:  1.1.0
    @vue/cli-overlay:  3.10.0
    @vue/cli-plugin-babel: ^3.10.0 => 3.10.0
    @vue/cli-plugin-eslint: ^3.10.0 => 3.10.0
    @vue/cli-service: ^3.10.0 => 3.10.0
    @vue/cli-shared-utils:  3.10.0
    @vue/component-compiler-utils:  2.6.0 (3.0.0)
    @vue/preload-webpack-plugin:  1.1.1
    @vue/web-component-wrapper:  1.2.0
    eslint-plugin-vue: ^5.0.0 => 5.2.3 (4.7.1)
    vue: ^2.6.10 => 2.6.10
    vue-eslint-parser:  2.0.3 (5.0.0)
    vue-hot-reload-api:  2.3.3
    vue-loader:  15.7.1
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.6.10 => 2.6.10
    vue-template-es2015-compiler:  1.9.1
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

npm install -g @vue/cli npm create [appname] npm run serve

What is expected?

dev server should run

What is actually happening?

PS C:\Users\Sepp\My Documents\dev\Vue\testapp> npm run serve

testapp@0.1.0 serve C:\Users\Sepp\My Documents\dev\Vue\testapp vue-cli-service serve

INFO Starting development server… 98% after emitting CopyPlugin

ERROR Failed to compile with 7 errors 10:57:05 PM

These dependencies were not found:

To install them, you can run: npm install --save C:\Users\Sepp\Documents\dev\Vue\testapp\node_modules\webpack-dev-server\client\index.js?http://192.168.1.215:8080/sockjs-node C:\Users\Sepp\Documents\dev\Vue\testapp\node_modules\webpack-dev-server\client\index.js?http://localhost C:\Users\Sepp\Documents\dev\Vue\testapp\node_modules\webpack\hot\dev-server.js

This relative module was not found:


just installed vue-cli, and a keep getting this issue when trying to run a dev server, attempted npm install --save as it suggest, tried deleted node modules still get this issue

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 16 (3 by maintainers)

Most upvoted comments

@igayamaguchi Try install core-js@2?

@vue/cli-plugin-babel@3 depends on core-js@2. Typically when you use the global vue serve command it will resolve to the correct installation path, I’ve no idea why running it from IntelliJ IDEA’s Terminal causes error. Anyway, a local installation of core-js@2 could be the last resort