Next.js build fails with command not found errors

Hi,

I’m having trouble deploying my Next.js site on Netlify. The build fails with errors like rm: command not found, mkdir: command not found and gimme: command not found.
I haven’t made any changed to the build configuration, everything was working as expected until now.
I tried deleting and recreating the website, redeploying it without cache, but the issue persists.

I configured the Netlify site using the online UI and I’m using Next.js 13.

Site settings

Netlify site name: https://passliss.netlify.app/

Build settings

Runtime: Next.js
Base directory: Passliss Web/passliss
Build command: npm run build
Publish directory: Passliss Web/passliss/.next
Deploy log visibility: Logs are public
Build status: Active

Branches and deploy contexts

Production branch: vNext
Branch deploys: Deploy only the production branch
Deploy Previews: Any pull request against your production branch / branch deploy branches

Build image selection

Build image: Ubuntu Focal 20.04 (default)

Log

Here is the deploy log:

9:09:04 AM: build-image version: a89f4ad50402ec92ae85e9b83fc50dcfb293df2e (focal)
9:09:04 AM: buildbot version: a89f4ad50402ec92ae85e9b83fc50dcfb293df2e
9:09:04 AM: Fetching cached dependencies
9:09:04 AM: Failed to fetch cache, continuing with build
9:09:04 AM: Starting to prepare the repo for build
9:09:04 AM: No cached dependencies found. Cloning fresh repo
9:09:04 AM: git clone --filter=blob:none https://github.com/Leo-Corporation/Passliss
9:09:05 AM: Preparing Git Reference refs/heads/vNext
9:09:05 AM: Parsing package.json dependencies
9:09:06 AM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'Passliss Web/passliss/.next' versus '.next' in the Netlify UI
9:09:07 AM: Starting to install dependencies
9:09:07 AM: Attempting Ruby version 2.7.2, read from environment
9:09:07 AM: Using Ruby version 2.7.2
9:09:08 AM: Using PHP version 8.0
9:09:09 AM: v16.19.1 is already installed.
9:09:09 AM: Now using node v16.19.1 (npm v8.19.3)
9:09:09 AM: Enabling Node.js Corepack
9:09:09 AM: Started restoring cached build plugins
9:09:09 AM: Finished restoring cached build plugins
9:09:09 AM: Started restoring cached corepack dependencies
9:09:09 AM: Finished restoring cached corepack dependencies
9:09:09 AM: No npm workspaces detected
9:09:09 AM: Started restoring cached node modules
9:09:09 AM: Finished restoring cached node modules
9:09:09 AM: Installing npm packages using npm version 8.19.3
9:09:12 AM: npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
9:09:12 AM: npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
9:09:24 AM: added 753 packages, and audited 754 packages in 14s
9:09:24 AM: 133 packages are looking for funding
9:09:24 AM:   run `npm fund` for details
9:09:24 AM: found 0 vulnerabilities
9:09:24 AM: npm packages installed
9:09:24 AM: /opt/build/env_store/.env: line 12: export: `Web/passliss/node_modules/.bin:/opt/buildhome/.nvm/versions/node/v16.19.1/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2@global/bin:/opt/buildhome/.rvm/rubies/ruby-2.7.2/bin:/home/linuxbrew/.linuxbrew/bin:/opt/buildhome/.envman:/opt/buildhome/.swiftenv/bin:/opt/buildhome/.swiftenv/shims:/opt/buildhome/.php:/opt/buildhome/.binrc/bin:/opt/buildhome/.deno/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/buildhome/.cask/bin:/opt/buildhome/.gimme/bin:/opt/buildhome/.dotnet/tools:/opt/buildhome/.dotnet:/opt/buildhome/.cargo/bin:/opt/buildhome/.rvm/bin': not a valid identifier/opt/buildhome/python3.8/bin/activate: line 67: basename: command not found
9:09:24 AM: Python version set to 3.8
9:09:24 AM: /opt/build/env_store/.env: line 12: export: `Web/passliss/node_modules/.bin:/opt/buildhome/.nvm/versions/node/v16.19.1/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2@global/bin:/opt/buildhome/.rvm/rubies/ruby-2.7.2/bin:/home/linuxbrew/.linuxbrew/bin:/opt/buildhome/.envman:/opt/buildhome/.swiftenv/bin:/opt/buildhome/.swiftenv/shims:/opt/buildhome/.php:/opt/buildhome/.binrc/bin:/opt/buildhome/.deno/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/buildhome/.cask/bin:/opt/buildhome/.gimme/bin:/opt/buildhome/.dotnet/tools:/opt/buildhome/.dotnet:/opt/buildhome/.cargo/bin:/opt/buildhome/.rvm/bin': not a valid identifier/opt/buildhome/python3.8/bin/activate: line 67: basename: command not found
9:09:24 AM: Started restoring cached go cache
9:09:24 AM: /opt/build-bin/install: line 915: rm: command not found
9:09:24 AM: /opt/build-bin/install: line 917: dirname: command not found
9:09:24 AM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
9:09:24 AM: /opt/build-bin/install: line 917: mkdir: command not found
9:09:24 AM: /opt/build-bin/install: line 918: mv: command not found
9:09:24 AM: Finished restoring cached go cache
9:09:24 AM: /opt/build-bin/install: line 792: gimme: command not found
9:09:24 AM: Failed to resolve Go version '1.19.5'
9:09:24 AM: Build was terminated: dependency_installation script returned non-zero exit code: 1
9:09:24 AM: Failing build: Failed to install dependencies
9:09:24 AM: Finished processing build request in 20.521s

Hi @leo-p,

Welcome! Would you mind sharing the command or script which npm run build is executing?

Gr,

Andy

Sure, npm run build executes next build.

Hmm ok, that’s not what I expected. I was wondering where the rm dirname mkdir mv and gimme commands where comming from.

Could you tell me what the script dependency_installation does or is it part of a module?

Gr,

Andy

dependency_installation script is not made by me, but I think it restores all the build dependencies that Netlify provides by default.

However, it might be related to restoring Go dependencies, which I’m not using.

9:09:24 AM: Started restoring cached go cache

After this it goes wrong. Have you tried to trigger Clear cache and retry?

Yes, tried it, still does nothing, same errors:

12:18:12 PM: build-image version: f16fe5e1d2fb705a244177206285638af584a46c (focal)
12:18:12 PM: buildbot version: f16fe5e1d2fb705a244177206285638af584a46c
12:18:12 PM: Building without cache
12:18:12 PM: Starting to prepare the repo for build
12:18:12 PM: No cached dependencies found. Cloning fresh repo
12:18:12 PM: git clone --filter=blob:none https://github.com/Leo-Corporation/Passliss
12:18:12 PM: Preparing Git Reference refs/heads/vNext
12:18:13 PM: Parsing package.json dependencies
12:18:14 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'Passliss Web/passliss/.next' versus '.next' in the Netlify UI
12:18:14 PM: Starting to install dependencies
12:18:14 PM: Attempting Ruby version 2.7.2, read from environment
12:18:15 PM: Using Ruby version 2.7.2
12:18:15 PM: Started restoring cached go cache
12:18:15 PM: Finished restoring cached go cache
12:18:15 PM: Installing Go version 1.19.5 (requested 1.19.5)
12:18:20 PM: go version go1.19.5 linux/amd64
12:18:20 PM: Using PHP version 8.0
12:18:21 PM: v16.19.1 is already installed.
12:18:21 PM: Now using node v16.19.1 (npm v8.19.3)
12:18:21 PM: Enabling Node.js Corepack
12:18:22 PM: Started restoring cached build plugins
12:18:22 PM: Finished restoring cached build plugins
12:18:22 PM: Started restoring cached corepack dependencies
12:18:22 PM: Finished restoring cached corepack dependencies
12:18:22 PM: No npm workspaces detected
12:18:22 PM: Started restoring cached node modules
12:18:22 PM: Finished restoring cached node modules
12:18:22 PM: Installing npm packages using npm version 8.19.3
12:18:25 PM: npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
12:18:25 PM: npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
12:18:33 PM: added 753 packages, and audited 754 packages in 11s
12:18:33 PM: 133 packages are looking for funding
12:18:33 PM:   run `npm fund` for details
12:18:33 PM: found 0 vulnerabilities
12:18:33 PM: npm packages installed
12:18:34 PM: /opt/build/env_store/.env: line 13: export: `Web/passliss/node_modules/.bin:/opt/buildhome/.nvm/versions/node/v16.19.1/bin:/opt/buildhome/.gimme/versions/go1.19.5.linux.amd64/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2@global/bin:/opt/buildhome/.rvm/rubies/ruby-2.7.2/bin:/home/linuxbrew/.linuxbrew/bin:/opt/buildhome/.envman:/opt/buildhome/.swiftenv/bin:/opt/buildhome/.swiftenv/shims:/opt/buildhome/.php:/opt/buildhome/.binrc/bin:/opt/buildhome/.deno/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/buildhome/.cask/bin:/opt/buildhome/.gimme/bin:/opt/buildhome/.dotnet/tools:/opt/buildhome/.dotnet:/opt/buildhome/.cargo/bin:/opt/buildhome/.rvm/bin': not a valid identifier/opt/buildhome/python3.8/bin/activate: line 67: basename: command not found
12:18:34 PM: Python version set to 3.8
12:18:34 PM: /opt/build/env_store/.env: line 13: export: `Web/passliss/node_modules/.bin:/opt/buildhome/.nvm/versions/node/v16.19.1/bin:/opt/buildhome/.gimme/versions/go1.19.5.linux.amd64/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2@global/bin:/opt/buildhome/.rvm/rubies/ruby-2.7.2/bin:/home/linuxbrew/.linuxbrew/bin:/opt/buildhome/.envman:/opt/buildhome/.swiftenv/bin:/opt/buildhome/.swiftenv/shims:/opt/buildhome/.php:/opt/buildhome/.binrc/bin:/opt/buildhome/.deno/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/buildhome/.cask/bin:/opt/buildhome/.gimme/bin:/opt/buildhome/.dotnet/tools:/opt/buildhome/.dotnet:/opt/buildhome/.cargo/bin:/opt/buildhome/.rvm/bin': not a valid identifier/opt/buildhome/python3.8/bin/activate: line 67: basename: command not found
12:18:34 PM: /opt/build/env_store/.env: line 13: export: `Web/passliss/node_modules/.bin:/opt/buildhome/.nvm/versions/node/v16.19.1/bin:/opt/buildhome/.gimme/versions/go1.19.5.linux.amd64/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2@global/bin:/opt/buildhome/.rvm/rubies/ruby-2.7.2/bin:/home/linuxbrew/.linuxbrew/bin:/opt/buildhome/.envman:/opt/buildhome/.swiftenv/bin:/opt/buildhome/.swiftenv/shims:/opt/buildhome/.php:/opt/buildhome/.binrc/bin:/opt/buildhome/.deno/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/buildhome/.cask/bin:/opt/buildhome/.gimme/bin:/opt/buildhome/.dotnet/tools:/opt/buildhome/.dotnet:/opt/buildhome/.cargo/bin:/opt/buildhome/.rvm/bin': not a valid identifier/opt/buildhome/python3.8/bin/activate: line 67: basename: command not found
12:18:34 PM: Install dependencies script success
12:18:34 PM: Starting build script
12:18:34 PM: /opt/build-bin/build: line 38: cd: too many arguments
12:18:34 PM: Using stage install dependencies
12:18:34 PM: /opt/build/env_store/.env: line 13: export: `Web/passliss/node_modules/.bin:/opt/buildhome/.nvm/versions/node/v16.19.1/bin:/opt/buildhome/.gimme/versions/go1.19.5.linux.amd64/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2/bin:/opt/buildhome/.rvm/gems/ruby-2.7.2@global/bin:/opt/buildhome/.rvm/rubies/ruby-2.7.2/bin:/home/linuxbrew/.linuxbrew/bin:/opt/buildhome/.envman:/opt/buildhome/.swiftenv/bin:/opt/buildhome/.swiftenv/shims:/opt/buildhome/.php:/opt/buildhome/.binrc/bin:/opt/buildhome/.deno/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/buildhome/.cask/bin:/opt/buildhome/.gimme/bin:/opt/buildhome/.dotnet/tools:/opt/buildhome/.dotnet:/opt/buildhome/.cargo/bin:/opt/buildhome/.rvm/bin': not a valid identifier/opt/buildhome/python3.8/bin/activate: line 67: basename: command not found
12:18:35 PM: Detected 0 framework(s)
12:18:35 PM: Section completed: initializing
12:18:35 PM: /opt/build-bin/build: line 47: date: command not found
12:18:35 PM: /opt/build-bin/build: line 92: which: command not found
12:18:36 PM: ​
12:18:36 PM:   Netlify Build                                                 
12:18:36 PM: ────────────────────────────────────────────────────────────────
12:18:36 PM: ​
12:18:36 PM: ❯ Version
12:18:36 PM:   @netlify/build 29.7.1
12:18:36 PM: ​
12:18:36 PM: ❯ Flags
12:18:36 PM:   baseRelDir: true
12:18:36 PM:   buildId: 641c356be9abc11244d8748a
12:18:36 PM:   deployId: 641c356be9abc11244d8748c
12:18:36 PM: ​
12:18:36 PM: ❯ Current directory
12:18:36 PM:   /opt/build/repo/Passliss Web/passliss
12:18:36 PM: ​
12:18:36 PM: ❯ Config file
12:18:36 PM:   No config file was defined: using default values.
12:18:36 PM: ​
12:18:36 PM: ❯ Context
12:18:36 PM:   production
12:18:36 PM: ​
12:18:37 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
12:18:36 PM: ❯ Installing plugins
12:18:36 PM:    - @netlify/plugin-nextjs@4.32.2
12:18:36 PM: ​
12:18:36 PM:   Dependencies installation error                               
12:18:36 PM: ────────────────────────────────────────────────────────────────
12:18:36 PM: ​
12:18:36 PM:   Error message
12:18:36 PM:   Error while installing dependencies in /opt/build/repo/Passliss Web/passliss/.netlify/plugins/
12:18:36 PM: ​​
12:18:36 PM:   Resolved config
12:18:36 PM:   build:
12:18:36 PM:     base: /opt/build/repo/Passliss Web/passliss
12:18:36 PM:     command: npm run build
12:18:36 PM:     commandOrigin: ui
12:18:36 PM:     publish: /opt/build/repo/Passliss Web/passliss/.next
12:18:36 PM:     publishOrigin: ui
12:18:36 PM:   plugins:
12:18:36 PM:     - inputs: {}
12:18:36 PM:       origin: ui
12:18:36 PM:       package: '@netlify/plugin-nextjs'
12:18:37 PM: /opt/build-bin/build: line 47: date: command not found
12:18:37 PM: /opt/build-bin/build: line 47: date: command not found
12:18:37 PM: Caching artifacts
12:18:37 PM: Started saving node modules
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 839: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: dirname: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: mkdir: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 842: mv: command not found
12:18:37 PM: Finished saving node modules
12:18:37 PM: Started saving build plugins
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 839: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: dirname: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: mkdir: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 842: mv: command not found
12:18:37 PM: Finished saving build plugins
12:18:37 PM: Started saving corepack cache
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 839: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: dirname: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: mkdir: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 842: mv: command not found
12:18:37 PM: Finished saving corepack cache
12:18:37 PM: Started saving pip cache
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 839: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: dirname: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: mkdir: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 842: mv: command not found
12:18:37 PM: Finished saving pip cache
12:18:37 PM: Started saving emacs cask dependencies
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 839: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: dirname: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: mkdir: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 842: mv: command not found
12:18:37 PM: Finished saving emacs cask dependencies
12:18:37 PM: Started saving maven dependencies
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 839: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: dirname: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: mkdir: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 842: mv: command not found
12:18:37 PM: Finished saving maven dependencies
12:18:37 PM: Started saving boot dependencies
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 839: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: dirname: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: mkdir: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 842: mv: command not found
12:18:37 PM: Finished saving boot dependencies
12:18:37 PM: Started saving rust rustup cache
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 839: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: dirname: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: mkdir: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 842: mv: command not found
12:18:37 PM: Finished saving rust rustup cache
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 789: chmod: command not found
12:18:37 PM: Started saving go dependencies
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 839: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: dirname: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 841: mkdir: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 842: mv: command not found
12:18:37 PM: Finished saving go dependencies
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 795: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 796: mkdir: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 797: mv: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 815: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 816: rm: command not found
12:18:37 PM: /opt/build-bin/run-build-functions.sh: line 830: rm: command not found
12:18:37 PM: /opt/build-bin/build: line 47: date: command not found
12:18:37 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:18:37 PM: Failing build: Failed to build site
12:18:37 PM: Finished processing build request in 25.422s

Logs: Netlify App

You do have the plugin @netlify/plugin-nextjs installed?

Yes, Netlify automatically detected it was a Next.js site and installed the plugin. It used to work before; I haven’t made any changes in the configuration.

Maybe try adding @netlify/plugin-nextjs to your devDependencies,
and add the following to your netlify.toml:

[[plugins]]
  package = "@netlify/plugin-nextjs"

Hi @leo-p & @andylemaire this could have been caused by a migration we are making. I have rolled back the changes please try and let me know if it works.

I have already added this to the netlify.toml file

I retried to clear cache and deploy, still getting the same errors:

12:34:12 PM: build-image version: f16fe5e1d2fb705a244177206285638af584a46c (focal)
12:34:12 PM: buildbot version: f16fe5e1d2fb705a244177206285638af584a46c
12:34:12 PM: Building without cache
12:34:12 PM: Starting to prepare the repo for build
12:34:12 PM: No cached dependencies found. Cloning fresh repo
12:34:12 PM: git clone --filter=blob:none https://github.com/Leo-Corporation/Passliss
12:34:13 PM: Preparing Git Reference refs/heads/vNext
12:34:13 PM: Parsing package.json dependencies
12:34:15 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'Passliss Web/passliss/Passliss Web/passliss/.next' versus '.next' in the Netlify UI
12:34:15 PM: Starting to install dependencies
12:34:15 PM: Using PHP version 8.0
12:34:15 PM: Python version set to 3.8
12:34:15 PM: Started restoring cached go cache
12:34:15 PM: Finished restoring cached go cache
12:34:15 PM: Installing Go version 1.19.5 (requested 1.19.5)
12:34:20 PM: go version go1.19.5 linux/amd64
12:34:21 PM: v16.19.1 is already installed.
12:34:21 PM: Now using node v16.19.1 (npm v8.19.3)
12:34:21 PM: Enabling Node.js Corepack
12:34:21 PM: Started restoring cached build plugins
12:34:21 PM: Finished restoring cached build plugins
12:34:21 PM: Started restoring cached corepack dependencies
12:34:21 PM: Finished restoring cached corepack dependencies
12:34:21 PM: No npm workspaces detected
12:34:21 PM: Started restoring cached node modules
12:34:21 PM: Finished restoring cached node modules
12:34:21 PM: Installing npm packages using npm version 8.19.3
12:34:24 PM: npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
12:34:24 PM: npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
12:34:33 PM: added 753 packages, and audited 754 packages in 11s
12:34:33 PM: 133 packages are looking for funding
12:34:33 PM:   run `npm fund` for details
12:34:33 PM: found 0 vulnerabilities
12:34:33 PM: npm packages installed
12:34:33 PM: /opt/build/env_store/.env: line 13: export: `Web/passliss/node_modules/.bin:/opt/buildhome/.nvm/versions/node/v16.19.1/bin:/opt/buildhome/.gimme/versions/go1.19.5.linux.amd64/bin:/opt/buildhome/python3.8/bin:/home/linuxbrew/.linuxbrew/bin:/opt/buildhome/.envman:/opt/buildhome/.swiftenv/bin:/opt/buildhome/.swiftenv/shims:/opt/buildhome/.php:/opt/buildhome/.binrc/bin:/opt/buildhome/.deno/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/buildhome/.cask/bin:/opt/buildhome/.gimme/bin:/opt/buildhome/.dotnet/tools:/opt/buildhome/.dotnet:/opt/buildhome/.cargo/bin': not a valid identifier/opt/buildhome/.rvm/scripts/rvm: line 12: uname: command not found
12:34:33 PM: /opt/buildhome/.rvm/scripts/rvm: line 29: ps: command not found
12:34:33 PM: Attempting Ruby version 2.7.2, read from environment
12:34:33 PM: /opt/build-bin/install: line 487: rvm: command not found
12:34:33 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
12:34:33 PM: /opt/build-bin/install: line 508: rvm: command not found
12:34:33 PM: Failed to install Ruby version '2.7.2'
12:34:33 PM: Build was terminated: dependency_installation script returned non-zero exit code: 1
12:34:33 PM: Failing build: Failed to install dependencies
12:34:34 PM: Finished processing build request in 21.382s

Logs: Netlify App

Right, can you retry the build again?

It works! Thank you for your help!

1 Like

yay! Thanks so much for confirming you found your solution. (: