question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm run build failed

See original GitHub issue

Version

3.9.3

Reproduction link

https://github.com/DesarrollosAMCH/conquiseven

Environment info

System:
    OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
    CPU: (1) x64 Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
  Binaries:
    Node: 8.11.4 - /usr/bin/node
    Yarn: 1.9.4 - /usr/bin/yarn
    npm: 5.6.0 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmGlobalPackages:
    @vue/cli: 3.9.3

Steps to reproduce

npm install npm run build

What is expected?

make build to deploy project on porduction server

What is actually happening?

npm run build

⠹ Building for production…

ERROR Failed to compile with 36 errors 11:32:59

These dependencies were not found:

  • core-js/modules/es6.array.find in ./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/Tables/UnidadesEvaluadasTable.vue?vue&type=script&lang=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/pages/admin/UnidadesPage.vue?vue&type=script&lang=js&
  • core-js/modules/es6.array.find-index in ./src/components/NotificationPlugin/index.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/Tables/UnidadesEvaluadasTable.vue?vue&type=script&lang=js&
  • core-js/modules/es6.function.name in ./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/Cards/Card.vue?vue&type=script&lang=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/Tables/ClubesTable.vue?vue&type=script&lang=js& and 9 others
  • core-js/modules/es6.number.constructor in ./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/NotificationPlugin/Notification.vue?vue&type=script&lang=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/Tables/UnidadesEvaluadasTable.vue?vue&type=script&lang=js& and 1 other
  • core-js/modules/es6.regexp.replace in ./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/pages/admin/EventosDetallePage.vue?vue&type=script&lang=js&
  • core-js/modules/es6.regexp.search in ./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/pages/app/EvaluarActividadPage.vue?vue&type=script&lang=js&
  • core-js/modules/es6.regexp.to-string in ./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/Cards/ChartCard.vue?vue&type=script&lang=js&
  • core-js/modules/web.dom.iterable in ./src/components/NotificationPlugin/index.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/Tables/EventosTable.vue?vue&type=script&lang=js& and 13 others

To install them, you can run: npm install --save core-js/modules/es6.array.find core-js/modules/es6.array.find-index core-js/modules/es6.function.name core-js/modules/es6.number.constructor core-js/modules/es6.regexp.replace core-js/modules/es6.regexp.search core-js/modules/es6.regexp.to-string core-js/modules/web.dom.iterable ERROR Build failed with errors. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! vue-material-dashboard@1.0.1 build: vue-cli-service build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-material-dashboard@1.0.1 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/forge/.npm/_logs/2019-08-02T11_32_59_427Z-debug.log


i tried execute the command that vue-cli recomends:

npm install --save core-js/modules/es6.array.find core-js/modules/es6.array.find-index core-js/modules/es6.function.name core-js/modules/es6.number.constructor core-js/modules/es6.regexp.replace core-js/modules/es6.regexp.search core-js/modules/es6.regexp.to-string core-js/modules/web.dom.iterable

but this was response:

npm ERR! code ENOLOCAL npm ERR! Could not install from “core-js/modules/es6.array.find” as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in: npm ERR! /home/forge/.npm/_logs/2019-08-02T11_37_00_531Z-debug.log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
novazzcommented, Nov 29, 2019

sorry, i tried npm install --save core-js@2 and the errors are still there

4reactions
sodateacommented, Aug 2, 2019
npm install --save core-js@2

Sorry for the inconvenience. It was a mistake that the old default preset didn’t include this dependency by default. We’ll try to provide a more comprehensible error output.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm run build - fails to compile despite development version ...
I have a react app created with create-react-app , and npm run build is failing to compile a production build. It throws the...
Read more >
npm run build "Failed to compile." · Issue #373 - GitHub
I have attached the logs, while creating a production build, it throws me an error. chum-admin.df4d9596-0969-4065-8063-8698a68a86e4.log.
Read more >
Error when running npm run build : r/react - Reddit
I have a react app done and am attempting to learn how to deploy it for the first time. I type npm run...
Read more >
npm run dev: Module build failed, TypeError - Laracasts
I have created a new project and added fortify, jetstream and livewire. When I ran the final "npn run dev" I got the...
Read more >
npm run build command fails - Salesforce Stack Exchange
Windows still has some tweaks necessary, if you look in package.json in the scripts field you'll see the run command, which probably looks ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found