Vue Build Failed

My Vue app ( builds locally, but throws build errors when deployed, see log:

Any hints? Thx!

Hey there and welcome!

Would you mind showing us the contents of your package.json file? It looks like you’ve got an incorrect dependency on a javascript package named trooia which does not seem to exist on npm.

Sure, but there is no such package in my package.json:
“name”: “trooia”,
“scripts”: {
“start”: “./ && vue-cli-service serve”,
“build”: “./ && vue-cli-service build”
“dependencies”: {
“axios”: “^0.21.1”,
“bootstrap”: “^4.5.0”,
“bootstrap-vue”: “^2.15.0”,
“core-js”: “^3.6.5”,
“geoip-lite”: “^1.4.2”,
“vue”: “^2.6.11”,
“vue-router”: “^3.2.0”,
“vuex”: “^3.4.0”
“devDependencies”: {
@vue/cli-plugin-babel”: “~4.5.0”,
@vue/cli-plugin-eslint”: “~4.5.0”,
@vue/cli-plugin-router”: “~4.5.0”,
@vue/cli-plugin-vuex”: “~4.5.0”,
@vue/cli-service”: “~4.5.0”,
“babel-eslint”: “^10.1.0”,
“eslint”: “^6.7.2”,
“eslint-plugin-vue”: “^6.2.2”,
“vue-template-compiler”: “^2.6.11”

Hey there, @MajorNoobie

Thanks for writing in! Sorry you are having trouble with your build.

This Support Guide contains a ton of useful debugging tips that can likely help you solve your problem :slight_smile:

We also recommend trying to search the forums with the build error you encountered - it’s likely your question was already asked by someone else!

If you are still having problems, please provide as much information as you can on what you have already tried, what your build settings are, etc. Thanks!

I looked into this a bit and it seems to be a known problem with @vue/cli-service and npm unfortunately.

It seems to install fine with yarn though so you could try to remove (if you have one) your package-lock.json and run yarn install in your directory. Then add the yarn.lock to your repository in order for Netlify to pick yarn instead of npm. At least until they fix the underlying issue. You’d probably -not- want to use --legacy-peer-deps as they suggest in the issue since that might mess other things up.

Let us know if that solves it!

Thanks, good to know! I did a clean reinstall and it works so far…