riffusion / riffusion-app-hobby

Stable diffusion for real-time music generation (web app)
https://riffusion.vercel.app
MIT License
2.6k stars 190 forks source link

Error on npm run dev #8

Closed ruradium closed 1 year ago

ruradium commented 1 year ago

Project/riffusion-app/node_modules/next/dist/cli/next-dev.js:315 showAll: args["--show-all"] ?? false, ^

SyntaxError: Unexpected token '?' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.dev (/home/ray/Project/riffusion-app/node_modules/next/dist/lib/commands.js:10:30) at Object. (/home/ray/Project/riffusion-app/node_modules/next/dist/bin/next:141:28) at Module._compile (internal/modules/cjs/loader.js:999:30)

hmartiro commented 1 year ago

Perhaps try a newer version of node? We're using v19.2.0

TiagoTiago commented 1 year ago

Perhaps try a newer version of node? We're using v19.2.0

There doesn't seem to be an update available on Linux Mint. Do I need to add some PPA for nodejs?

chrisburrc commented 1 year ago

I ran into the same issue on Linux Mint as well. It worked after updating nodejs to the latest stable version (18.12.1 at the time of writing).

I followed the instructions here. Use n module from npm in order to upgrade node:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

To upgrade to latest version (and not current stable) version, you can use

sudo n latest

ruradium commented 1 year ago

fixed after upgrading to nodejs V18.x

hmartiro commented 1 year ago

Thanks, adding a note to the readme about the node version.

ayushnavtech commented 1 year ago

Not fixed for me, I get this issue on docker, normally on terminal, it would run fine...