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

[webpack-cli] You need to install 'webpack-dev-server' for running 'webpack serve'. #143

Open
JLUGQQ opened this issue Jan 21, 2022 · 0 comments

Comments

@JLUGQQ
Copy link

JLUGQQ commented Jan 21, 2022

[webpack-cli] You need to install 'webpack-dev-server' for running 'webpack serve'.
Error: Cannot find module 'ajv/dist/compile/codegen'
Require stack:

  • G:\white-jotter\wj-vue\node_modules\ajv-keywords\dist\definitions\typeof.js
  • G:\white-jotter\wj-vue\node_modules\ajv-keywords\dist\keywords\typeof.js
  • G:\white-jotter\wj-vue\node_modules\ajv-keywords\dist\keywords\index.js
  • G:\white-jotter\wj-vue\node_modules\ajv-keywords\dist\index.js
  • G:\white-jotter\wj-vue\node_modules\webpack-dev-server\node_modules\schema-utils\dist\validate.js
  • G:\white-jotter\wj-vue\node_modules\webpack-dev-server\node_modules\schema-utils\dist\index.js
  • G:\white-jotter\wj-vue\node_modules\webpack-dev-server\lib\Server.js
  • G:\white-jotter\wj-vue\node_modules@webpack-cli\serve\lib\index.js
  • G:\white-jotter\wj-vue\node_modules\webpack-cli\lib\webpack-cli.js
  • G:\white-jotter\wj-vue\node_modules\webpack-cli\lib\bootstrap.js
  • G:\white-jotter\wj-vue\node_modules\webpack-cli\bin\cli.js
  • G:\white-jotter\wj-vue\node_modules\webpack-dev-server\bin\webpack-dev-server.js
    npm ERR! code ELIFECYCLE
    npm ERR! errno 2
    npm ERR! [email protected] dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
    npm ERR! Exit status 2
    npm ERR!
    npm ERR! Failed at the [email protected] dev script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Guan Spring\AppData\Roaming\npm-cache_logs\2022-01-21T07_08_01_819Z-debug.log

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

1 participant