簡體   English   中英

Nuxt 構建失敗,在 ./node_modules/bootstrap-vue/:varisouspath 中找不到 core-js 依賴項

[英]Nuxt build failure with core-js dependencies not found in ./node_modules/bootstrap-vue/:varisouspath

當我構建我的 nuxt.js 項目時,它會吐出不太友好的友好錯誤。我已經完成了全新安裝(刪除了 package.lock 和 node_modules)安裝了 core-js@2 和 @babel/runtime-corejs2,但仍然得到這些錯誤。

 ERROR  Failed to compile with 4 errors        friendly-errors 11:29:16

These dependencies were not found:             friendly-errors 11:29:16
                                               friendly-errors 11:29:16
* core-js/library/fn/array/from in ./node_modules/bootstrap-vue/es/utils/array.js
* core-js/library/fn/array/is-array in ./node_modules/bootstrap-vue/es/utils/array.js
* core-js/library/fn/object/assign in ./node_modules/bootstrap-vue/es/utils/object.js
* core-js/library/fn/object/is in ./node_modules/bootstrap-vue/es/utils/object.js
                                               friendly-errors 11:29:16
To install them, you can run: npm install --save core-js/library/fn/array/from core-js/library/fn/array/is-array core-js/library/fn/object/assign core-js/library/fn/object/is
ℹ Waiting for file changes
npm installl core-js@2 @babel/runtime-corejs2

會解決你的問題

今天在 CI 構建中遇到了這個確切的問題。 問題原來是使用節點的 v6。 將它更新到 v9 解決了這個問題。

我不是 Nuxt 語法專家,但您應該嘗試升級。 對我來說,這是更新的問題:

image: node:6

image: node:9

對於我的碼頭圖像。

如文章中所述, https://github.com/cdqa-suite/cdQA-annotator/issues/37

來自父文件夾的“npm run serve”,而不是 src 文件夾將完成這項工作

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM