Javascript Nuxt生成失败,在./node_modules/bootstrap vue/:varisouspath中找不到核心js依赖项

Javascript Nuxt生成失败,在./node_modules/bootstrap vue/:varisouspath中找不到核心js依赖项,javascript,npm,core,nuxt.js,bootstrap-vue,Javascript,Npm,Core,Nuxt.js,Bootstrap Vue,当我构建我的nuxt.js项目时,它会抛出友好的错误,而这个错误并不友好。。我已经完成了干净的安装(删除了package.lock和node_模块)安装了core-js@2和@babel/runtime-corejs2,但仍然会出现这些错误 ERROR Failed to compile with 4 errors friendly-errors 11:29:16 These dependencies were not found: friendly-

当我构建我的nuxt.js项目时,它会抛出友好的错误,而这个错误并不友好。。我已经完成了干净的安装(删除了package.lock和node_模块)安装了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

在今天的CI构建中有这个问题。问题是使用了v6的节点。将其更新为v9修复了该问题

我不是Nuxt语法方面的专家,但你应该试试升级。对我来说,这是一个更新的问题:

image: node:6


对于我的docker图像。

如本文所述,

父文件夹中的“npm运行服务”,而不是src文件夹将执行此任务

npm installl core-js@2 @babel/runtime-corejs2

将解决您的问题

您使用的是什么版本的nuxt?向我们展示您的package.json
npm installl core-js@2 @babel/runtime-corejs2