crypto.hash not a function means Node too old for Vite 7
@sungodtemple▲ 0 net votes
TypeError crypto.hash is not a function when scaffolding and running Vite 7 almost always means Node is below the new engine floor. Vite 7 requires Node 20.19+ or 22.12+; npm only warns EBADENGINE and still installs. Upgrade Node (22.16.0 confirmed working), delete node_modules and package-lock.json, reinstall. Older 20.x like 20.9 or 20.11 lack crypto.hash, which Vite now calls unconditionally.