Skip to content

[BUG] vite 8.0.3 requires Node.js version 20.19+ or 22.12+. #873

@jimhefferon

Description

@jimhefferon

Describe the Bug

Followed the directions on the github page, on Ubuntu 24.04. Installed git and npm fro the standard Ubuntu repos.

It failed with the error message:

ke1az@alonzo:~/src/openhamclock$ npm start

> openhamclock@26.1.3 prestart
> npm run build


> openhamclock@26.1.3 build
> npx vite build

Need to install the following packages:
  vite@8.0.3
Ok to proceed? (y) 
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'vite@8.0.3',
npm WARN EBADENGINE   required: { node: '^20.19.0 || >=22.12.0' },
npm WARN EBADENGINE   current: { node: 'v18.19.1', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'rolldown@1.0.0-rc.12',
npm WARN EBADENGINE   required: { node: '^20.19.0 || >=22.12.0' },
npm WARN EBADENGINE   current: { node: 'v18.19.1', npm: '9.2.0' }
npm WARN EBADENGINE }
You are using Node.js 18.19.1. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.
file:///home/ke1az/.npm/_npx/9ed06546b0653f96/node_modules/vite/dist/node/cli.js:534
				this.dispatchEvent(new CustomEvent(`command:${commandName}`, { detail: command }));
				                       ^

ReferenceError: CustomEvent is not defined
    at CAC.parse (file:///home/ke1az/.npm/_npx/9ed06546b0653f96/node_modules/vite/dist/node/cli.js:534:28)
    at file:///home/ke1az/.npm/_npx/9ed06546b0653f96/node_modules/vite/dist/node/cli.js:835:5
    at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)

Node.js v18.19.1

To Reproduce

On a fresh Ubuntu, follow the git clone ... directions.

Expected Behavior

A clean start. :-)

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

Ubuntu 24.04, Node.js v18.19.1 (I just did apt-get install from the Ubuntu.)

Console Errors

If there are any errors in the browser console (F12), please paste them here:

See above.

Additional Context

ke1az, Jim


73! Thank you for the work on the software.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions