vscode里编译mpvue项目无法运行,总是报错
项目地址:https://github.com/9618211/Fr...
npm run dev报错尝试了各种方法仍无用,希望高手解此BUG
已经尝试了试了网上各种方法CSDN、GitHub、MDN、StackOverflow等各处,仍然未解决
npm i -g --save-dev --force webpack-mpvue-vendor-plugin
试了网上各种方法,包括删除node_modules、package-lock.json和重建build文件夹,以及使用各种参数安装webpack-mpvue-vendor-plugin包和cjs-loader包、清缓存等方法,依然报错:
// 请把代码文本粘贴到下方(请勿用图片代替代码)
npm run dev
mergemoney@1.0.0 dev D:USER DATARetail
node build/dev-server.js
internal/modules/cjs/loader.js:583
throw err; ^
Error: Cannot find module 'webpack-mpvue-vendor-plugin'
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:22:18)
at Object.<anonymous> (D:\USER DATA\Retail\build\webpack.dev.conf.js:8:25)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (D:\USER DATA\Retail\build\dev-server.js:15:21)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mergemoney@1.0.0 dev: node build/dev-server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mergemoney@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
你期待的结果是什么?实际看到的错误信息又是什么?
希望高手解此BUG
婷婷同学_
SMILET
相关分类