npm run serve 报错: ERROR TypeError: transpileDependencies.map is not a functionTypeError: transpil
【代码】npm run serve 报错: ERROR TypeError: transpileDependencies.map is not a functionTypeError: transpil。
·
具体报错信息如下:
ERROR TypeError: transpileDependencies.map is not a function
TypeError: transpileDependencies.map is not a function
at genTranspileDepRegex (E:\asia\20220916\webapps\settle-web\node_modules\@vue\cli-plugin-babel\index.js:5:38)
at module.exports (E:\asia\20220916\webapps\settle-web\node_modules\@vue\cli-plugin-babel\index.js:21:29)
at E:\asia\20220916\webapps\settle-web\node_modules\@vue\cli-service\lib\Service.js:82:9
at Array.forEach (<anonymous>)
at loadedCallback (E:\asia\20220916\webapps\settle-web\node_modules\@vue\cli-service\lib\Service.js:80:20)
at Service.init (E:\asia\20220916\webapps\settle-web\node_modules\@vue\cli-service\lib\Service.js:97:14)
at Service.run (E:\asia\20220916\webapps\settle-web\node_modules\@vue\cli-service\lib\Service.js:247:16)
at Object.<anonymous> (E:\asia\20220916\webapps\settle-web\node_modules\@vue\cli-service\bin\vue-cli-service.js:37:9)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
一番折腾后是因为安装过程中执行了npm audit fix导致,安装过程在如果提示这个,不要执行就可以了。
更多推荐
已为社区贡献4条内容
所有评论(0)