如图:

执行npm audit fix,貌似执行成功;

之后npm run serve,报错Error: Cannot find module '@webassemblyjs/wasm-gen/lib/encoder'

解决办法
卸载webpack
npm uninstall webpack -g
npm uninstall webpack-cli -g
再安装webpack:
cnpm install webpack webpack-cli –g
cnpm install webpack webpack-cli --save-dev
网友评论