Hi! I am trying to deploy this repo, which builds fine on locally.
I tried with the main branch, had the error, created a new deploy branch with the next.js repo as the ./ file, but it still had the erro.
It should run without any deploy details, but it doesn’t
9:55:54 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
9:55:48 PM: build-image version: d68af4ff92f3d66fc07f4cb4ed7d1649da1994aa (focal)
9:55:48 PM: buildbot version: d68af4ff92f3d66fc07f4cb4ed7d1649da1994aa
9:55:48 PM: Fetching cached dependencies
9:55:48 PM: Failed to fetch cache, continuing with build
9:55:48 PM: Starting to prepare the repo for build
9:55:48 PM: No cached dependencies found. Cloning fresh repo
9:55:48 PM: git clone --filter=blob:none https://github.com/virgilxw/momepy-test
9:55:48 PM: Preparing Git Reference refs/heads/website
9:55:50 PM: Starting to install dependencies
9:55:50 PM: Python version set to 3.8
9:55:50 PM: Attempting Ruby version 2.7.2, read from environment
9:55:51 PM: Using Ruby version 2.7.2
9:55:51 PM: Started restoring cached go cache
9:55:51 PM: Finished restoring cached go cache
9:55:51 PM: go version go1.19.10 linux/amd64
9:55:52 PM: Using PHP version 8.0
9:55:53 PM: v18.16.1 is already installed.
9:55:53 PM: Now using node v18.16.1 (npm v9.5.1)
9:55:53 PM: Enabling Node.js Corepack
9:55:53 PM: Started restoring cached build plugins
9:55:53 PM: Finished restoring cached build plugins
9:55:53 PM: Started restoring cached corepack dependencies
9:55:53 PM: Finished restoring cached corepack dependencies
9:55:53 PM: Started restoring cached yarn cache
9:55:53 PM: Finished restoring cached yarn cache
9:55:53 PM: Installing Yarn version 1.22.19
9:55:53 PM: Preparing yarn@1.22.19 for immediate activation...
9:55:53 PM: No yarn workspaces detected
9:55:53 PM: Started restoring cached node modules
9:55:53 PM: Finished restoring cached node modules
9:55:53 PM: Installing npm packages using Yarn version Usage Error: Invalid package.json in package.json
9:55:53 PM: $ yarn ...
9:55:53 PM: Usage Error: Invalid package.json in package.json
9:55:53 PM: $ yarn ...
9:55:53 PM: Error during Yarn install
9:55:53 PM: Build was terminated: dependency_installation script returned non-zero exit code: 1
9:55:53 PM: Failing build: Failed to install dependencies
The package.json looks like
{
"name": "morphometrics-explorer",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@headlessui/react": "^1.7.15",
"@heroicons/react": "^2.0.18",
"@types/d3": "^7.4.0",
"@types/node": "20.3.1",
"@types/react": "18.2.13",
"@types/react-dom": "18.2.6",
"autoprefixer": "^10.4.14",
"classnames": "^2.3.2",
"d3": "^7.8.5",
"d3-pre": "^1.3.0",
"d3-scale": "^4.0.2",
"eslint": "8.43.0",
"eslint-config-next": "13.4.6",
"lodash": "^4.17.21",
"mapbox-gl": "^2.15.0",
"next": "13.4.6",
"papaparse": "^5.4.1",
"postcss": "^8.4.24",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-map-gl": "^7.0.25",
"react-mapbox-gl": "^5.1.1",
"simple-statistics": "^7.8.3",
"tailwindcss": "^3.3.2",
"typescript": "5.1.3",
"usehooks-ts": "^2.9.1"
}
}