Support Forums

Build script returned non-zero exit code: 1 vuejs

Hi guys, I have a problem deploying my vuejs project in Netlify. I have tried clearing cache , check all the files and I don’t get that error. In the deploy console I get “npm ERR! code 1” and from there starts all the errors that does not let me deploy the app. Locally it works fine without any problem

4:12:27 PM: npm ERR! code 1
4:12:27 PM: npm ERR! path /opt/build/repo/node_modules/node-sass
4:12:27 PM: npm ERR! command failed
4:12:27 PM: npm ERR! command sh -c node scripts/build.js

My repository is this: GitHub - wiridix/rick-an-morty-api

Hi @wiridix

Without seeing a larger portion of the deploy log this is only a guess, but I suggest it is the version of node-sass which is not compatible with the newest Netlify build image.

If so, you can switch away from node-sass, upgrade to the latest version, or use NODE_VERSION environment variable to downgrade node.js to a compatible version (e.g v14.17.6.)