具体报错信息如下:

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导致,安装过程在如果提示这个,不要执行就可以了。

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐