Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Could not find a binding for Linux 64-bit with Node.js 12.x #28

Closed
emarchak opened this issue Oct 18, 2021 · 1 comment
Closed

Comments

@emarchak
Copy link

emarchak commented Oct 18, 2021

Hello!

I'm receiving the following error in my builds after installing gatsby-plugin-netlify instead of the old gatsby cache plugin. I've tried Clear cache and deploy site and rebuilding my lock file.

Previouly, node 15 has worked well but something is happening with node-sass. I also have my gastby-config in a ts file that has been transpiling to JS during the build.

Is there anything I could do to inspect this error? I'm not sure how to debug this since it's in the onPreBuild phase.

Plugin "@netlify/plugin-gatsby" failed

Error: Could not load gatsby-config.js
Missing binding /opt/build/repo/node_modules/node-sass/vendor/linux-x64-72/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 12.x

Found bindings for the following environments:

Linux 64-bit with Node.js 15.x

This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass to download the binding for your current environment.
Full build log ```` 6:36:50 PM: Build ready to start 6:36:53 PM: build-image version: dd2f6d8803393d46ac35a4f752a5a46f254c0300 6:36:53 PM: build-image tag: v3.9.1 6:36:53 PM: buildbot version: 349bc0ff8daba7d6ea8d12b21f2f782cbf97d24f 6:36:53 PM: Fetching cached dependencies 6:36:53 PM: Starting to download cache of 965.5MB 6:37:01 PM: Finished downloading cache in 8.007225114s 6:37:01 PM: Starting to extract cache 6:37:41 PM: Finished extracting cache in 40.008764065s 6:37:41 PM: Finished fetching cache in 48.276314496s 6:37:41 PM: Starting to prepare the repo for build 6:37:41 PM: Preparing Git Reference pull/204/head 6:37:43 PM: Parsing package.json dependencies 6:37:44 PM: Starting build script 6:37:44 PM: Installing dependencies 6:37:44 PM: Python version set to 2.7 6:37:45 PM: Started restoring cached node version 6:37:48 PM: Finished restoring cached node version 6:37:48 PM: Attempting node version '15.14.0' from .nvmrc 6:37:49 PM: v15.14.0 is already installed. 6:37:50 PM: Now using node v15.14.0 (npm v7.7.6) 6:37:50 PM: Started restoring cached build plugins 6:37:50 PM: Finished restoring cached build plugins 6:37:50 PM: Attempting ruby version 2.6.2, read from environment 6:37:52 PM: Using ruby version 2.6.2 6:37:52 PM: Using PHP version 5.6 6:37:52 PM: Started restoring cached yarn cache 6:38:07 PM: Finished restoring cached yarn cache 6:38:07 PM: No yarn workspaces detected 6:38:07 PM: Started restoring cached node modules 6:38:07 PM: Finished restoring cached node modules 6:38:08 PM: Installing NPM modules using Yarn version 1.17.0 6:38:08 PM: yarn install v1.17.0 6:38:09 PM: [1/4] Resolving packages... 6:38:10 PM: [2/4] Fetching packages... 6:38:42 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module. 6:38:42 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/local-functions-proxy-darwin-arm64@1.1.1: The platform "linux" is incompatible with this module. 6:38:42 PM: info "@netlify/local-functions-proxy-darwin-arm64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/local-functions-proxy-darwin-arm64@1.1.1: The CPU architecture "x64" is incompatible with this module. 6:38:42 PM: info @netlify/local-functions-proxy-darwin-x64@1.1.1: The platform "linux" is incompatible with this module. 6:38:42 PM: info "@netlify/local-functions-proxy-darwin-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/local-functions-proxy-freebsd-arm64@1.1.1: The platform "linux" is incompatible with this module. 6:38:42 PM: info "@netlify/local-functions-proxy-freebsd-arm64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/local-functions-proxy-freebsd-arm64@1.1.1: The CPU architecture "x64" is incompatible with this module. 6:38:42 PM: info @netlify/local-functions-proxy-freebsd-x64@1.1.1: The platform "linux" is incompatible with this module. 6:38:42 PM: info "@netlify/local-functions-proxy-freebsd-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/local-functions-proxy-linux-arm@1.1.1: The CPU architecture "x64" is incompatible with this module. 6:38:42 PM: info "@netlify/local-functions-proxy-linux-arm@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/local-functions-proxy-linux-arm64@1.1.1: The CPU architecture "x64" is incompatible with this module. 6:38:42 PM: info "@netlify/local-functions-proxy-linux-arm64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/local-functions-proxy-linux-ia32@1.1.1: The CPU architecture "x64" is incompatible with this module. 6:38:42 PM: info "@netlify/local-functions-proxy-linux-ia32@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/local-functions-proxy-linux-ppc64@1.1.1: The CPU architecture "x64" is incompatible with this module. 6:38:42 PM: info "@netlify/local-functions-proxy-linux-ppc64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/local-functions-proxy-openbsd-x64@1.1.1: The platform "linux" is incompatible with this module. 6:38:42 PM: info "@netlify/local-functions-proxy-openbsd-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/local-functions-proxy-win32-ia32@1.1.1: The platform "linux" is incompatible with this module. 6:38:42 PM: info "@netlify/local-functions-proxy-win32-ia32@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/local-functions-proxy-win32-ia32@1.1.1: The CPU architecture "x64" is incompatible with this module. 6:38:42 PM: info @netlify/local-functions-proxy-win32-x64@1.1.1: The platform "linux" is incompatible with this module. 6:38:42 PM: info "@netlify/local-functions-proxy-win32-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/routing-local-proxy-darwin-arm64@0.34.1: The platform "linux" is incompatible with this module. 6:38:42 PM: info "@netlify/routing-local-proxy-darwin-arm64@0.34.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/routing-local-proxy-darwin-arm64@0.34.1: The CPU architecture "x64" is incompatible with this module. 6:38:42 PM: info @netlify/routing-local-proxy-darwin-x64@0.34.1: The platform "linux" is incompatible with this module. 6:38:42 PM: info "@netlify/routing-local-proxy-darwin-x64@0.34.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: info @netlify/routing-local-proxy-win32-x64@0.34.1: The platform "linux" is incompatible with this module. 6:38:42 PM: info "@netlify/routing-local-proxy-win32-x64@0.34.1" is an optional dependency and failed compatibility check. Excluding it from installation. 6:38:42 PM: [3/4] Linking dependencies... 6:38:42 PM: warning "@apollo/react-hooks > @apollo/client@3.4.16" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0". 6:38:42 PM: warning "@apollo/react-hooks > @apollo/client > @graphql-typed-document-node/core@3.1.0" has unmet peer dependency "graphql@^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0". 6:38:42 PM: warning "apollo-boost > graphql-tag@2.12.5" has unmet peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0". 6:38:42 PM: warning " > @bugsnag/plugin-react@7.13.2" has unmet peer dependency "@bugsnag/core@^7.0.0". 6:38:42 PM: warning " > @jagi/jest-transform-graphql@1.0.2" has unmet peer dependency "graphql-tag@^2.10.0". 6:38:42 PM: warning " > apollo-boost@0.4.9" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0". 6:38:42 PM: warning "apollo-boost > apollo-cache@1.3.5" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0". 6:38:42 PM: warning "apollo-boost > apollo-cache-inmemory@1.6.6" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0". 6:38:42 PM: warning "apollo-boost > apollo-client@2.6.10" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0". 6:38:42 PM: warning "apollo-boost > apollo-link@1.2.14" has unmet peer dependency "graphql@^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0 || ^15.0.0". 6:38:42 PM: warning "apollo-boost > apollo-link-http@1.5.17" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0". 6:38:42 PM: warning "apollo-boost > apollo-cache > apollo-utilities@1.3.4" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0". 6:38:42 PM: warning "apollo-boost > apollo-link-error > apollo-link-http-common@0.2.16" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0". 6:38:42 PM: warning " > babel-preset-gatsby@1.14.0" has unmet peer dependency "@babel/core@^7.11.6". 6:38:42 PM: warning " > babel-preset-gatsby@1.14.0" has unmet peer dependency "core-js@^3.0.0". 6:38:42 PM: warning "gatsby > eslint-config-react-app@6.0.0" has unmet peer dependency "babel-eslint@^10.0.0". 6:38:42 PM: warning "gatsby > @typescript-eslint/eslint-plugin > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta". 6:38:42 PM: warning "gatsby-source-graphql > @graphql-tools/utils@7.10.0" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0". 6:38:42 PM: warning "gatsby > eslint-plugin-graphql > graphql-config > @endemolshinegroup/cosmiconfig-typescript-loader > ts-node@9.1.1" has unmet peer dependency "typescript@>=2.7". 6:38:42 PM: warning "gatsby-source-graphql > @graphql-tools/links > @graphql-tools/delegate@7.1.5" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0". 6:38:42 PM: warning "gatsby-source-graphql > @graphql-tools/wrap@7.0.8" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0". 6:38:42 PM: warning " > gatsby-plugin-image@1.14.1" has unmet peer dependency "@babel/core@^7.12.3". 6:38:42 PM: warning " > gatsby-plugin-sass@4.14.0" has unmet peer dependency "sass@^1.30.0". 6:38:42 PM: warning "gatsby-plugin-sass > sass-loader@10.2.0" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0". 6:38:42 PM: warning "gatsby-source-graphql > @graphql-tools/links@7.1.0" has unmet peer dependency "@apollo/client@~3.2.5 || ~3.3.0". 6:38:42 PM: warning "gatsby-source-graphql > @graphql-tools/links@7.1.0" has unmet peer dependency "graphql@^14.0.0 || ^15.0.0". 6:38:42 PM: warning "gatsby-source-graphql > @graphql-tools/links > apollo-upload-client@14.1.3" has unmet peer dependency "graphql@14 - 15". 6:38:42 PM: warning " > babel-jest@27.3.0" has unmet peer dependency "@babel/core@^7.8.0". 6:38:42 PM: warning "babel-jest > babel-preset-jest@27.2.0" has unmet peer dependency "@babel/core@^7.0.0". 6:38:42 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax@1.0.1" has unmet peer dependency "@babel/core@^7.0.0". 6:38:42 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-bigint@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0". 6:38:42 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-import-meta@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0". 6:38:42 PM: warning " > eslint-import-resolver-alias@1.1.2" has unmet peer dependency "eslint-plugin-import@>=1.4.0". 6:39:04 PM: [4/4] Building fresh packages... 6:39:18 PM: Done in 69.33s. 6:39:18 PM: NPM modules installed using Yarn 6:39:18 PM: Started restoring cached go cache 6:39:20 PM: Finished restoring cached go cache 6:39:20 PM: Installing Go version 1.12 6:39:20 PM: unset GOOS; 6:39:20 PM: unset GOARCH; 6:39:20 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64'; 6:39:20 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64/bin:${PATH}"; 6:39:20 PM: go version >&2; 6:39:20 PM: export GIMME_ENV='/opt/buildhome/.gimme_cache/env/go1.12.linux.amd64.env'; 6:39:20 PM: go version go1.12 linux/amd64 6:39:20 PM: Installing missing commands 6:39:20 PM: Verify run directory 6:39:22 PM: ​ 6:39:22 PM: ──────────────────────────────────────────────────────────────── 6:39:22 PM: Netlify Build 6:39:22 PM: ──────────────────────────────────────────────────────────────── 6:39:22 PM: ​ 6:39:22 PM: ❯ Version 6:39:22 PM: @netlify/build 18.17.2 6:39:22 PM: ​ 6:39:22 PM: ❯ Flags 6:39:22 PM: baseRelDir: true 6:39:22 PM: buildId: 616ca582432ee70007ec7531 6:39:22 PM: deployId: 616ca582432ee70007ec7533 6:39:22 PM: ​ 6:39:22 PM: ❯ Current directory 6:39:22 PM: /opt/build/repo 6:39:22 PM: ​ 6:39:22 PM: ❯ Config file 6:39:22 PM: /opt/build/repo/netlify.toml 6:39:22 PM: ​ 6:39:22 PM: ❯ Context 6:39:22 PM: deploy-preview 6:39:23 PM: ​ 6:39:23 PM: ❯ Installing plugins 6:39:23 PM: - @netlify/plugin-gatsby@1.0.3 6:39:32 PM: ​ 6:39:32 PM: ❯ Loading plugins 6:39:32 PM: - @netlify/plugin-gatsby@1.0.3 from Netlify app 6:39:33 PM: ​ 6:39:33 PM: ──────────────────────────────────────────────────────────────── 6:39:33 PM: 1. @netlify/plugin-gatsby (onPreBuild event) 6:39:33 PM: ──────────────────────────────────────────────────────────────── 6:39:33 PM: ​ 6:39:35 PM: Found a Gatsby cache. We’re about to go FAST. ⚡️ 6:39:41 PM: ​ 6:39:41 PM: ──────────────────────────────────────────────────────────────── 6:39:41 PM: Plugin "@netlify/plugin-gatsby" failed 6:39:41 PM: ──────────────────────────────────────────────────────────────── 6:39:41 PM: ​ 6:39:41 PM: Error message 6:39:41 PM: Error: Could not load gatsby-config.js 6:39:41 PM: Missing binding /opt/build/repo/node_modules/node-sass/vendor/linux-x64-72/binding.node 6:39:41 PM: Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 12.x 6:39:41 PM: ​ 6:39:41 PM: Found bindings for the following environments: 6:39:41 PM: - Linux 64-bit with Node.js 15.x 6:39:41 PM: ​ 6:39:41 PM: This usually happens because your environment has changed since running `npm install`. 6:39:41 PM: Run `npm rebuild node-sass` to download the binding for your current environment. 6:39:41 PM: ​ 6:39:41 PM: Plugin details 6:39:41 PM: Package: @netlify/plugin-gatsby 6:39:41 PM: Version: 1.0.3 6:39:41 PM: Repository: git+https://github.com/netlify/netlify-plugin-gatsby.git 6:39:41 PM: npm link: https://www.npmjs.com/package/@netlify/plugin-gatsby 6:39:41 PM: Report issues: https://github.com/netlify/netlify-plugin-gatsby/issues 6:39:41 PM: ​ 6:39:41 PM: Error location 6:39:41 PM: In "onPreBuild" event in "@netlify/plugin-gatsby" from Netlify app 6:39:41 PM: at module.exports (/node_modules/node-sass/lib/binding.js:15:13) 6:39:41 PM: ​ 6:39:41 PM: Resolved config 6:39:41 PM: build: 6:39:41 PM: command: npm run build:production 6:39:41 PM: commandOrigin: ui 6:39:41 PM: environment: 6:39:41 PM: - BUTTONDOWN_API_KEY 6:39:41 PM: - CCN_ENDPOINT 6:39:41 PM: - GATSBY_BUGSNAG_API_KEY 6:39:41 PM: - GATSBY_SHOPIFY_TOKEN 6:39:41 PM: - GRAPHQL_SECRET 6:39:41 PM: - GRAPHQL_SECRETKEY 6:39:41 PM: - GRAPHQL_URL 6:39:41 PM: - GS_COVID_ID 6:39:41 PM: - GS_PRIVATE_EMAIL 6:39:41 PM: - GS_PRIVATE_KEY 6:39:41 PM: - GS_PRIVATE_KEY_ID 6:39:41 PM: - GS_REGISTRATIONPERM_ID 6:39:41 PM: - GS_REGISTRATION_ID 6:39:41 PM: - GTAG_ID 6:39:41 PM: - HASURA_GRAPHQL_ADMIN_SECRET 6:39:41 PM: - PERCY_TOKEN 6:39:41 PM: - REVIEW_ID 6:39:41 PM: - RO_ENDPOINT 6:39:41 PM: - RWGPS_API_KEY 6:39:41 PM: - SENDGRID_API_KEY 6:39:41 PM: - SLACK_REGISTRATION_WEBHOOK 6:39:41 PM: publish: /opt/build/repo/public 6:39:41 PM: publishOrigin: ui 6:39:41 PM: functionsDirectory: /opt/build/repo/functions 6:39:41 PM: plugins: 6:39:41 PM: - inputs: {} 6:39:41 PM: origin: ui 6:39:41 PM: package: '@netlify/plugin-gatsby' 6:39:41 PM: redirects: 6:39:41 PM: - from: /covid 6:39:41 PM: status: 301 6:39:41 PM: to: /registration/covid 6:39:41 PM: - from: /register 6:39:41 PM: status: 301 6:39:41 PM: to: /registration 6:39:41 PM: redirectsOrigin: config 6:39:41 PM: Caching artifacts 6:39:41 PM: Started saving node modules 6:39:41 PM: Finished saving node modules 6:39:41 PM: Started saving build plugins 6:39:41 PM: Finished saving build plugins 6:39:41 PM: Started saving yarn cache 6:40:03 PM: Finished saving yarn cache 6:40:03 PM: Started saving pip cache 6:40:03 PM: Finished saving pip cache 6:40:03 PM: Started saving emacs cask dependencies 6:40:03 PM: Finished saving emacs cask dependencies 6:40:03 PM: Started saving maven dependencies 6:40:03 PM: Finished saving maven dependencies 6:40:03 PM: Started saving boot dependencies 6:40:03 PM: Finished saving boot dependencies 6:40:03 PM: Started saving rust rustup cache 6:40:03 PM: Finished saving rust rustup cache 6:40:03 PM: Started saving go dependencies 6:40:05 PM: Finished saving go dependencies 6:40:05 PM: Build failed due to a user error: Build script returned non-zero exit code: 2 6:40:05 PM: Creating deploy upload records 6:40:05 PM: Failing build: Failed to build site 6:40:05 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 6:40:05 PM: Finished processing build request in 3m12.559617364s ````

Repo: https://github.com/emarchak/randonneurs-to
Failed build in a PR: emarchak/randonneurs-to#204

Thanks for all your hard work!

@emarchak
Copy link
Author

I think this is the wrong repo for this bug. Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant