Bower: command not found

My site is: https://tgp-dev.netlify.app

I have been building the same way for years. I deployed yesterday just fine. Today, I changed a bit of HTML and deployed but am getting errors about bower.

Comparing today’s failing build log to yesterday’s successful one, I see today has the line: “Installing Bower with npm”. This occurs just after npm packages are installed, which is strange because bower is one of my npm packages.

After the suspicious install of bower, it fails to find bower and gives this error:

12:14:00 PM: /opt/build-bin/install: line 402: bower: command not found

My build log is below (using NETLIFY_BUILD_DEBUG):

12:13:29 PM: build-image version: f08aef85328588c2df4a7e5364750fbb1626dcf4 (focal)
12:13:29 PM: buildbot version: f08aef85328588c2df4a7e5364750fbb1626dcf4
12:13:29 PM: Fetching cached dependencies
12:13:29 PM: Starting to download cache of 173.3MB
12:13:31 PM: Finished downloading cache in 2.233s
12:13:31 PM: Starting to extract cache
12:13:33 PM: Finished extracting cache in 1.758s
12:13:33 PM: Finished fetching cache in 4.034s
12:13:33 PM: Starting to prepare the repo for build
12:13:34 PM: Preparing Git Reference refs/heads/feature/matchmaker-popup
12:13:35 PM: Parsing package.json dependencies
12:13:36 PM: ​❯ Initial build environmentbaseRelDir: falsebranch: feature/matchmaker-popupcontext: branch-deploycwd: /opt/build/repofeatureFlags: []mode: buildbotrepositoryRoot: /opt/build/repositeId: f5fdd7e8-cc52-4ef9-80b0-d8827d592f10​❯ UI build settingsbaseRelDir: falsebuild:  command: grunt  --gruntfile Gruntfile.coffee simplebuild  environment:    - AWS_COGNITO_CLIENT_ID    - AWS_COGNITO_USERPOOL    - GENESIS_API_IPADDRESS    - NETLIFY_BUILD_DEBUG    - PUBLIC_ASSETS_URL    - TGP_API_URL  publish: AppBuild/​❯ Resolved build environmentbranch: feature/matchmaker-popupbuildDir: /opt/build/repoconfigPath: /opt/build/repo/netlify.tomlcontext: branch-deployenv: []​❯ Resolved configbuild:  command: grunt  --gruntfile Gruntfile.coffee simplebuild  commandOrigin: ui  environment:    - AWS_COGNITO_CLIENT_ID    - AWS_COGNITO_USERPOOL    - GENESIS_API_IPADDRESS    - NETLIFY_BUILD_DEBUG    - PUBLIC_ASSETS_URL    - TGP_API_URL  publish: /opt/build/repo/AppBuild  publishOrigin: uiredirects:  - from: /*    status: 200    to: /index.htmlredirectsOrigin: config
12:13:36 PM: Starting to install dependencies
12:13:37 PM: Python version set to 3.8
12:13:37 PM: Started restoring cached go cache
12:13:37 PM: Finished restoring cached go cache
12:13:37 PM: Installing Go version 1.19.5 (requested 1.19.5)
12:13:42 PM: go version go1.19.5 linux/amd64
12:13:42 PM: go version go1.19.5 linux/amd64
12:13:42 PM: go version go1.19.5 linux/amd64
12:13:42 PM: go version go1.19.5 linux/amd64
12:13:42 PM: go version go1.19.5 linux/amd64
12:13:42 PM: go version go1.19.5 linux/amd64
12:13:42 PM: Started restoring cached Node.js version
12:13:43 PM: Finished restoring cached Node.js version
12:13:43 PM: Attempting Node.js version '14' from .node-version
12:13:43 PM: v14.21.3 is already installed.
12:13:43 PM: Now using node v14.21.3 (npm v6.14.18)
12:13:43 PM: Enabling Node.js Corepack
12:13:43 PM: Started restoring cached build plugins
12:13:43 PM: Finished restoring cached build plugins
12:13:43 PM: Started restoring cached corepack dependencies
12:13:43 PM: Finished restoring cached corepack dependencies
12:13:44 PM: No npm workspaces detected
12:13:44 PM: Started restoring cached node modules
12:13:44 PM: Finished restoring cached node modules
12:13:44 PM: Installing npm packages using npm version 6.14.18
12:13:48 PM: npm WARN react-native-get-random-values@1.7.0 requires a peer of react-native@>=0.56 but none is installed. You must install peer dependencies yourself.
12:13:48 PM: npm WARN viagenetics@1.0.0 No repository field.
12:13:48 PM: npm WARN viagenetics@1.0.0 No license field.
12:13:48 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
12:13:48 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:13:48 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/watchpack/node_modules/fsevents):
12:13:48 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:13:48 PM: audited 1466 packages in 4.138s
12:13:48 PM: 41 packages are looking for funding
12:13:48 PM:   run `npm fund` for details
12:13:48 PM: found 238 vulnerabilities (33 low, 57 moderate, 121 high, 27 critical)
12:13:48 PM:   run `npm audit fix` to fix them, or `npm audit` for details
12:13:48 PM: npm packages installed
12:13:49 PM: Installing Bower with npm
12:13:59 PM: npm WARN react-native-get-random-values@1.7.0 requires a peer of react-native@>=0.56 but none is installed. You must install peer dependencies yourself.
12:13:59 PM: npm WARN viagenetics@1.0.0 No repository field.
12:13:59 PM: npm WARN viagenetics@1.0.0 No license field.
12:13:59 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/watchpack/node_modules/fsevents):
12:13:59 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:13:59 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
12:13:59 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:13:59 PM: + bower@1.8.14
12:13:59 PM: updated 1 package and audited 1466 packages in 10.397s
12:14:00 PM: 41 packages are looking for funding
12:14:00 PM:   run `npm fund` for details
12:14:00 PM: found 238 vulnerabilities (33 low, 57 moderate, 121 high, 27 critical)
12:14:00 PM:   run `npm audit fix` to fix them, or `npm audit` for details
12:14:00 PM: Started restoring cached bower components
12:14:00 PM: Finished restoring cached bower components
12:14:00 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
12:14:00 PM: Installing Bower packages
12:14:00 PM: /opt/build-bin/install: line 402: bower: command not found
12:14:00 PM: Error installing Bower packages
12:14:00 PM: Build was terminated: dependency_installation script returned non-zero exit code: 1
12:14:00 PM: Failing build: Failed to install dependencies
12:14:00 PM: Finished processing build request in 31.397s

Hi @epowell-tgp this must be because of a release we are rolling out. We have rolled back. Please try again.

Yup, that fixed it. Thank you so much for the extremely quick response and resolution.