部署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.
誤打誤撞補上這句就好了:文章來源:http://www.zghlxwxcb.cn/news/detail-542034.html
yarn add babel-node
babel-node 版本是v1.22.19文章來源地址http://www.zghlxwxcb.cn/news/detail-542034.html
到了這里,關于NUXT3項目安裝依賴運行后報錯 require() of ES Module xxxxx not supported.的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!