To install them, you can run: npm install --save core-js/modules/es.array.push.js

这篇具有很好参考价值的文章主要介绍了To install them, you can run: npm install --save core-js/modules/es.array.push.js。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

在拉取代码后,下载依赖都没有报错,但是在启动项目的时候还是报错了。

报错如下:

These dependencies were not found:

* core-js/modules/es.array.push.js in ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js, ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Breadcrumb/index.vue?vue&type=script&lang=js& and 3 others
* core-js/modules/es.error.cause.js in ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js, ./src/utils/request.js and 1 other
* core-js/modules/es.object.proto.js in ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js

To install them, you can run: npm install --save core-js/modules/es.array.push.js core-js/modules/es.error.cause.js core-js/modules/es.object.proto.js

按照网上搜索的解决方法

删除node-modules文件夹下的

core-js
core-js-compat
core-util-is

然后再次下载依赖并启动。

在这里出现了两种情况

第一种、还是报之前的错误。

第二种、报错找不到core-util-is。

  1. 下载了core-util-is的依赖,还是报错找不到 core-js-compat

  1. 下载 core-js-compat 的依赖,重启项目。

一般到这项目就可以启动成功了。如果如果到这你还是没启动成功,你可以尝试一下再次下载一下core-js的依赖。如下:

npm install core-js@3 --save

上面都是我遇到的,希望大家可以补充

对了网上还有说降低core-js版本、重启解决问题的。大家都可以试试,说不定你的就可以成功了。文章来源地址https://www.toymoban.com/news/detail-406562.html

到了这里,关于To install them, you can run: npm install --save core-js/modules/es.array.push.js的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • npm install:npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not reco

    运行npm install报错:npm WARN deprecated core-js@2.6.12: core-js@3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade

    2024年02月16日
    浏览(12)
  • vue中执行npm install提示:npm WARN deprecated core-js@2.6.12

    vue中执行npm install提示:npm WARN deprecated core-js@2.6.12

    在执行npm install时提示npm WARN deprecated core-js@2.6.12,导致安装不了   提示的意思是:版本低不再维护了,让升级upgrade your dependencies to the actual version of core-js. npm WARN deprecated core-js@2.6.12: core-js@3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 eng

    2024年02月13日
    浏览(16)
  • npm install 报错 run `npm audit fix` to fix them, or `npm audit\` for details

    npm install 报错 run `npm audit fix` to fix them, or `npm audit\` for details

    现象:打开项目,执行 npm install ,报错: 原因: 猜测一:依赖包存在严重漏洞,需要更新 解决方法: 1. npm audit fix : 扫描您的项目以了解漏洞,并自动安装任何与易受攻击的依赖关系兼容的更新 2. npm audit fix --force :为主要依赖关系安装半主要更新 3. npm audit :扫描您的项目

    2024年02月13日
    浏览(10)
  • Module not found: Error: Can‘t resolve ‘core-js/modules/es.promise.js‘

     具体错误:  原因是未安装core-js 在package.json所在目录   npm i core-js -D  

    2024年02月04日
    浏览(19)
  • Module not found: Error: Can‘t resolve ‘core-js/modules/es.error.cause.js‘

    在自己笔记本上运行好好的,没什么问题,在jenkins编译的电脑上就出现了Can’t resolve ‘core-js/modules/es.error.cause.js’ npm run dev出现以下错误 npm install的时候提示如下: 我用的core-js@3.19.1版本有点老了,不再维护了。 我的jenkins服务器上面的node版本比笔记本的高,高版本的node对

    2024年02月11日
    浏览(13)
  • Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of

    Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of

    1、在 Terminal 上输入命令: gradlew app:dependencies --configuration releaseRuntimeClasspath ,执行了: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.,翻译: Android Gradle插件需要Java 11才能运行。您目前正在使用Java 1.8。 解决问题:如何下载安装的JDK11       2、android studio

    2024年02月16日
    浏览(13)
  • These dependencies were not found:core-js/modules/es.object.to-string.js in ./src/router/index.js

    These dependencies were not found:core-js/modules/es.object.to-string.js in ./src/router/index.js

    ERROR Failed to compile with 3 errors These dependencies were not found: * core-js/modules/es.object.to-string.js in ./src/router/index.js * core-js/modules/es.string.iterator.js in ./src/router/index.js * core-js/modules/web.dom-collections.iterator.js in ./src/router/index.js To install them, you can run: npm install --save core-js/modules/es.object.to-str

    2024年02月06日
    浏览(13)
  • vue项目启动npm install和npm run serve时出现错误Failed to resolve loader:node-sass

    vue项目启动npm install和npm run serve时出现错误Failed to resolve loader:node-sass

    解决方法: 解决方法: node sass-node loader-sass 14.16.0 4.14.1 8.0.2

    2024年04月26日
    浏览(14)
  • npm install 中 --save 和 --save-dev 是什么?

    npm install 中 --save 和 --save-dev 是什么?

    npm,全名 Node Package Manager,套件管理工具,package.json 会记下你在项目中安装的所有套件。 假设在项目中安装 lodash 这样在 dependencies 中会出现: 如果修改了导入方式: 就会看到 lodash 跑到了 devDependencies 中: 官方解释: “dependencies”: Packages required by your application in productio

    2024年02月12日
    浏览(12)
  • npm install 的 --save 选项是什么?

    我看到了一些教程,命令是: –save 选项是什么意思? huntsbot.com – 程序员副业首选,一站式外包任务、远程工作、创意产品分享订阅平台。 更新 npm 5: 从 npm 5.0.0 开始,已安装的模块默认添加为依赖项,因此不再需要 --save 选项。其他保存选项仍然存在,并在 npm install 的

    2024年02月03日
    浏览(13)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包