Hello,
My site (https://music-lounge.netlify.app) builds locally but when I try to build it on netlify I get the following.
3:10:50 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
3:10:50 PM: build-image tag: v3.4.1
3:10:50 PM: buildbot version: 8c957a6d09a03023cea4239847cc73a9cb64eeb7
3:10:50 PM: Fetching cached dependencies
3:10:50 PM: Failed to fetch cache, continuing with build
3:10:50 PM: Starting to prepare the repo for build
3:10:50 PM: No cached dependencies found. Cloning fresh repo
3:10:50 PM: git clone https://github.com/Iandevstevens/login-profile
3:10:51 PM: Preparing Git Reference refs/heads/master
3:10:52 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'build' versus 'build/' in the Netlify UI
3:10:53 PM: Starting build script
3:10:53 PM: Installing dependencies
3:10:53 PM: Python version set to 2.7
3:10:54 PM: v12.18.0 is already installed.
3:10:55 PM: Now using node v12.18.0 (npm v6.14.4)
3:10:55 PM: Started restoring cached build plugins
3:10:55 PM: Finished restoring cached build plugins
3:10:55 PM: Attempting ruby version 2.7.1, read from environment
3:10:56 PM: Using ruby version 2.7.1
3:10:57 PM: Using PHP version 5.6
3:10:57 PM: 5.2 is already installed.
3:10:57 PM: Using Swift version 5.2
3:10:57 PM: Started restoring cached node modules
3:10:57 PM: Finished restoring cached node modules
3:10:57 PM: Started restoring cached yarn cache
3:10:57 PM: Finished restoring cached yarn cache
3:10:57 PM: Installing yarn at version 1.22.4
3:10:57 PM: Installing Yarn!
3:10:57 PM: > Downloading tarball...
3:10:57 PM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.SNduvMe7eu
3:10:57 PM: % Total % Received % Xferd Average Speed Time Time Time Current
3:10:57 PM: Dload Upload Total Spent Left Speed
3:10:57 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
3:10:57 PM: 100 80 100 80 0 0 256 0 --:--:-- --:--:-- --:--:-- 256
3:10:57 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
3:10:57 PM: 100 93 100 93 0 0 142 0 --:--:-- --:--:-- --:--:-- 673
3:10:58 PM: 100 643 100 643 0 0 701 0 --:--:-- --:--:-- --:--:-- 701
3:10:58 PM: 100 1215k 100 1215k 0 0 886k 0 0:00:01 0:00:01 --:--:-- 886k
3:10:58 PM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.SNduvMe7eu.asc
3:10:58 PM: 100 84 100 84 0 0 3103 0 --:--:-- --:--:-- --:--:-- 3103
3:10:58 PM: 100 97 100 97 0 0 1755 0 --:--:-- --:--:-- --:--:-- 1755
3:10:58 PM: 100 647 100 647 0 0 7340 0 --:--:-- --:--:-- --:--:-- 7340
3:10:58 PM: 100 1028 100 1028 0 0 8004 0 --:--:-- --:--:-- --:--:-- 8004
3:10:58 PM: > Verifying integrity...
3:10:58 PM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
3:10:58 PM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
3:10:58 PM: gpg: WARNING: This key is not certified with a trusted signature!
3:10:58 PM: gpg: There is no indication that the signature belongs to the owner.
3:10:58 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
3:10:58 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
3:10:58 PM: > GPG signature looks good
3:10:58 PM: > Extracting to ~/.yarn...
3:10:58 PM: > Adding to $PATH...
3:10:59 PM: > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.
3:10:59 PM: Installing NPM modules using Yarn version 1.22.4
3:11:00 PM: yarn install v1.22.4
3:11:00 PM: [1/4] Resolving packages...
3:11:01 PM: [2/4] Fetching packages...
3:11:35 PM: info fsevents@2.1.2: The platform "linux" is incompatible with this module.
3:11:35 PM: info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
3:11:35 PM: info fsevents@1.2.13: The platform "linux" is incompatible with this module.
3:11:35 PM: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
3:11:35 PM: info fsevents@2.1.3: The platform "linux" is incompatible with this module.
3:11:35 PM: info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
3:11:35 PM: [3/4] Linking dependencies...
3:11:35 PM: warning " > @testing-library/user-event@7.2.1" has unmet peer dependency "@testing-library/dom@>=5".
3:11:35 PM: warning "craco-less > less-loader@6.2.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
3:11:57 PM: [4/4] Building fresh packages...
3:11:58 PM: error /opt/build/repo/node_modules/node-base64: Command failed.
3:11:58 PM: Exit code: 127
3:11:58 PM: Command: ./install.sh
3:11:58 PM: Arguments:
3:11:58 PM: Directory: /opt/build/repo/node_modules/node-base64
3:11:58 PM: Output:
3:11:58 PM: ./install.sh: 3: ./install.sh: node-waf: not found
3:11:58 PM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
3:12:00 PM: Error during Yarn install
3:12:00 PM: Error running command: Build script returned non-zero exit code: 1
3:12:00 PM: Failing build: Failed to build site
3:12:00 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
3:12:00 PM: Finished processing build request in 1m9.644804906s
and my package.json looks like this.
"name": "login-profile",
"version": "0.1.0",
"private": true,
"dependencies": {
"@ant-design/icons": "^4.2.2",
"@craco/craco": "^5.6.4",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"@types/jest": "^24.0.0",
"@types/jsonwebtoken": "^8.5.0",
"@types/node": "^12.0.0",
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"@types/react-redux": "^7.1.9",
"@types/react-router-dom": "^5.1.5",
"@types/simple-peer": "^9.6.0",
"@types/socket.io-client": "^1.4.33",
"@types/spotify-web-playback-sdk": "^0.1.7",
"@types/uuid": "^8.3.0",
"antd": "^4.6.1",
"craco-less": "^1.17.0",
"jsonwebtoken": "^8.5.1",
"jwt": "^0.2.0",
"node-sass": "^4.14.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-redux": "^7.2.1",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.3",
"recoil": "^0.0.10",
"recoil-persist": "^0.6.0",
"redux": "^4.0.5",
"redux-persist": "^6.0.0",
"simple-peer": "^9.7.2",
"socket.io-client": "^2.3.0",
"typescript": "~3.7.2",
"uuid": "^8.3.0"
},
"scripts": {
"start": "craco start",
"build": "craco build",
"test": "craco test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}