简体   繁体   English

错误:找不到模块 '.../webpack' Vue js

[英]Error: Cannot find module '…/webpack' Vue js

npm run build throwing error. npm run build抛出错误。 Where is the problem?问题出在哪里?

Used用过的

npm install --save-dev webpack

npm install --save-dev webpack-dev-server

I'ts not working, any idea?我不工作,你知道吗?

Try to delete node_modules directory and then run npm install and then try tu use npm run build let me know if it works尝试删除node_modules目录,然后运行npm install然后尝试使用npm run build让我知道它是否有效

Just do this.. if you want to clean up the webpack package entirely from Vue只需这样做.. 如果您想完全从 Vue 清理 webpack package

Delete the node_modules

Delete the package-lock.json

npm install

npm run build

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM