I’ve just built a new site using a Gatsby starter, and it’s supposed to deploy from my GitHub repo GitHub - VincenzoDelre/Portfolio .
The deploy failed with both commands
“scripts”: {
“build”: “gatsby build”,
“Failed during stage ‘building site’: build script returned non-zero exit code: 2”
“scripts”: {
“build”: "npm run build ",
“Failed during stage ‘building site’: build script returned non-zero exit code: 137”
json.lock
{
“name”: “gatsby-starter-default”,
“private”: true,
“description”: “A simple starter to get up and developing quickly with Gatsby”,
“version”: “0.1.0”,
“author”: “Kyle Mathews mathews.kyle@gmail.com”,
“dependencies”: {
“@emotion/react”: “^11.4.1”,
“@emotion/styled”: “^11.3.0”,
“gatsby”: “^3.12.1”,
“gatsby-background-image”: “^1.5.3”,
“gatsby-cli”: “^4.5.2”,
“gatsby-plugin-emotion”: “^6.12.0”,
“gatsby-plugin-gatsby-cloud”: “^2.11.0”,
“gatsby-plugin-image”: “^1.12.0”,
“gatsby-plugin-manifest”: “^3.12.0”,
“gatsby-plugin-offline”: “^4.12.0”,
“gatsby-plugin-react-helmet”: “^4.12.0”,
“gatsby-plugin-sass”: “^4.13.0”,
“gatsby-plugin-sharp”: “^3.12.0”,
“gatsby-plugin-smoothscroll”: “^1.2.0”,
“gatsby-source-datocms”: “^2.6.16”,
“gatsby-source-filesystem”: “^3.12.0”,
“gatsby-transformer-sharp”: “^3.12.0”,
“prop-types”: “^15.7.2”,
“react”: “^17.0.1”,
“react-dom”: “^17.0.2”,
“react-helmet”: “^6.1.0”,
“swiper”: “^7.0.5”
},
“devDependencies”: {
“prettier”: “2.3.2”
},
“keywords”: [
“gatsby”
],
“license”: “0BSD”,
“scripts”: {
“build”: “gatsby build”,
“develop”: “gatsby develop”,
“format”: “prettier --write “**/*.{js,jsx,ts,tsx,json,md}””,
“start”: “npm run develop”,
“serve”: “gatsby serve”,
“clean”: “gatsby clean”,
“test”: “echo “Write tests! → Unit Testing” && exit 1”
},
“repository”: {
“type”: “git”,
“url”: “GitHub - gatsbyjs/gatsby-starter-default: The default Gatsby starter”
},
“bugs”: {
“url”: “Issues · gatsbyjs/gatsby · GitHub”
}
}