Build failed due to old lighthouse plugin

Hi, my site front-end-web-dev-notes failed due to an old lighthouse plugin.

After updating it via the Netlify website. Build still failed.

Please let me know what else I need to do.

Here’s the log:

10:29:02 AM: Netlify Build
10:29:02 AM: ────────────────────────────────────────────────────────────────
10:29:02 AM: ​
10:29:02 AM: ❯ Version
10:29:02 AM: @netlify/build 29.20.12
10:29:02 AM: ​
10:29:02 AM: ❯ Flags
10:29:02 AM: baseRelDir: true
10:29:02 AM: buildId: 6501f147e3184c24988f73cb
10:29:02 AM: deployId: 6501f147e3184c24988f73cd
10:29:02 AM: ​
10:29:02 AM: ❯ Current directory
10:29:02 AM: /opt/build/repo
10:29:02 AM: ​
10:29:02 AM: ❯ Config file
10:29:02 AM: No config file was defined: using default values.
10:29:02 AM: ​
10:29:02 AM: ❯ Context
10:29:02 AM: production
10:29:02 AM: ​
10:29:02 AM: Build command from Netlify app
10:29:02 AM: ────────────────────────────────────────────────────────────────
10:29:02 AM: ​
10:29:02 AM: $ npm run build
10:29:03 AM: > @example/basics@0.0.1 build
10:29:03 AM: > astro build
10:29:03 AM: Node.js v16.20.2 is not supported by Astro!
10:29:03 AM: Please upgrade Node.js to a supported version: >=18.14.1
10:29:03 AM: Netlify CI CI Environment Detected!
10:29:03 AM: Additional steps may be needed to set your Node.js version:
10:29:03 AM: Documentation: https://docs.astro.build/guides/deploy
10:29:03 AM: ​
10:29:03 AM: build.command failed
10:29:03 AM: ────────────────────────────────────────────────────────────────
10:29:03 AM: ​
10:29:03 AM: Error message
10:29:03 AM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
10:29:03 AM: ​
10:29:03 AM: Error location
10:29:03 AM: In Build command from Netlify app:
10:29:03 AM: npm run build
10:29:03 AM: ​
10:29:03 AM: Resolved config
10:29:03 AM: build:
10:29:03 AM: command: npm run build
10:29:03 AM: commandOrigin: ui
10:29:03 AM: publish: /opt/build/repo/dist
10:29:03 AM: publishOrigin: ui
10:29:04 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:29:04 AM: Failing build: Failed to build site
10:29:05 AM: Finished processing build request in 24.387s

Ok, rebuilt and then new error :

[vite]: Rollup failed to resolve import 00Git/Assets/areas.png from /opt/build/repo/src/pages/notes/00Git/04-areas.md.

I had previously moved the Assets directory. So updated the few png referencing the old directory and all works fine now.

glad you found your solution!