Cannot start nuxt: crypto.hash is not a function
Hey all,
I'm trying to create a new Nuxt 4 project. However, no matter what I do - I get the following error:
Thys is my machine info:
Is there a way to go around this?
I'm trying to create a new Nuxt 4 project. However, no matter what I do - I get the following error:
ERROR Cannot start nuxt: crypto.hash is not a function 9:27:41 PM
at getHash (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:2788:21)
at getLockfileHash (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:11673:9)
at getDepHash (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:11676:23)
at initDepsOptimizerMetadata (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:11137:53)
at createDepsOptimizer (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:34621:17)
at new DevEnvironment (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:35385:109)
at Object.defaultCreateClientDevEnvironment [as createEnvironment] (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:35804:9)
at _createServer (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:28376:132)
at async buildClient (node_modules/@nuxt/vite-builder/dist/index.mjs:921:24)
at async withLogs (node_modules/@nuxt/vite-builder/dist/index.mjs:1768:3) ERROR Cannot start nuxt: crypto.hash is not a function 9:27:41 PM
at getHash (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:2788:21)
at getLockfileHash (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:11673:9)
at getDepHash (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:11676:23)
at initDepsOptimizerMetadata (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:11137:53)
at createDepsOptimizer (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:34621:17)
at new DevEnvironment (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:35385:109)
at Object.defaultCreateClientDevEnvironment [as createEnvironment] (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:35804:9)
at _createServer (node_modules/vite/dist/node/chunks/dep-Bg4HVnP5.js:28376:132)
at async buildClient (node_modules/@nuxt/vite-builder/dist/index.mjs:921:24)
at async withLogs (node_modules/@nuxt/vite-builder/dist/index.mjs:1768:3)Thys is my machine info:
------------------------------
- Operating System: Darwin
- Node Version: v21.6.0
- Nuxt Version: 4.0.1
- CLI Version: 3.26.4
- Nitro Version: 2.12.3
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, devtools, modules
- Runtime Modules: @nuxt/[email protected]
- Build Modules: -
------------------------------------------------------------
- Operating System: Darwin
- Node Version: v21.6.0
- Nuxt Version: 4.0.1
- CLI Version: 3.26.4
- Nitro Version: 2.12.3
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, devtools, modules
- Runtime Modules: @nuxt/[email protected]
- Build Modules: -
------------------------------Is there a way to go around this?
