Skip to content

Vite requires node 20.19+ or 22.12+ #1

@rcork

Description

@rcork

I tried installing this on Linux Mint 22.2 (based on Ubuntu 24.04 LTS) and when running npm run tauri dev, i get the following error:

You are using Node.js 18.19.1. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version. error when starting dev server: TypeError: crypto.hash is not a function at getHash (file:///home/rob/Development/video-compare/node_modules/vite/dist/node/chunks/config.js:2444:19) at getLockfileHash (file:///home/rob/Development/video-compare/node_modules/vite/dist/node/chunks/config.js:32382:9) at getDepHash (file:///home/rob/Development/video-compare/node_modules/vite/dist/node/chunks/config.js:32385:23) at initDepsOptimizerMetadata (file:///home/rob/Development/video-compare/node_modules/vite/dist/node/chunks/config.js:31844:53) at createDepsOptimizer (file:///home/rob/Development/video-compare/node_modules/vite/dist/node/chunks/config.js:34032:17) at new DevEnvironment (file:///home/rob/Development/video-compare/node_modules/vite/dist/node/chunks/config.js:34806:109) at Object.defaultCreateClientDevEnvironment [as createEnvironment] (file:///home/rob/Development/video-compare/node_modules/vite/dist/node/chunks/config.js:35218:9) at file:///home/rob/Development/video-compare/node_modules/vite/dist/node/chunks/config.js:25389:52 at Array.map (<anonymous>) at _createServer (file:///home/rob/Development/video-compare/node_modules/vite/dist/node/chunks/config.js:25388:58)

In your README you list Node 18+ as the required dependency. Node 18.19.1 is what is installed via APT so i'll try updating to a newer node but wanted to let you know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions