NUXT3项目安装依赖运行后报错 require() of ES Module xxxxx not supported.
Cannot start nuxt:require() of ES Module /www/wwwroot/xxx/node_modules/escape-string-regexp/index.js from /www/wwwroot/xxx/node_modules/@babel/highlight/node_modules/chalk/index.js not supported.误打误撞补
·
部署nuxt3项目(VUE3),使用cnpm i 和yarn install安装完依赖,报错如下:
Cannot start nuxt: require() of ES Module /www/wwwroot/xxx/node_modules/escape-string-regexp/index.js from /www/wwwroot/xxx/node_modules/@babel/highlight/node_modules/chalk/index.js not supported.
误打误撞补上这句就好了:
yarn add babel-node
babel-node 版本是v1.22.19
更多推荐
已为社区贡献1条内容
所有评论(0)