rsxdalv / tts-generation-webui

TTS Generation Web UI (Bark, MusicGen + AudioGen, Tortoise, RVC, Vocos, Demucs, SeamlessM4T, MAGNet, StyleTTS2, MMS)
https://rsxdalv.github.io/tts-generation-webui/
MIT License
1.46k stars 160 forks source link

Colab installation fails: "Failed to install node_modules" #264

Closed rowild closed 4 months ago

rowild commented 5 months ago

Does colab not like node? What is the reason for that error?

rsxdalv commented 5 months ago

Could be the reason yes, but the Gradio UI should still work, does it?

rowild commented 5 months ago

Sorry, didn't continue installation...

miaohf commented 5 months ago

`> tts-generation-webui-react@0.1.0 build /content/tts-generation-webui/react-ui

next build

uncaughtException /content/tts-generation-webui/react-ui/node_modules/next/dist/compiled/undici/index.js:1 (()=>{var __webpack_modules__={1900:(A,e,t)=>{"use strict";const{parseContentType:s}=t(4318);function getInstance(A). . . . . . . Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+A.byteLength))}else if(o.isFormDataLike(A)){const e=----formdata-undici-${Math.random()}.replace(".","").slice(0,32);const t=--${e}\r\nContent-Disposition: form-data

SyntaxError: Unexpected token '??=' at wrapSafe (internal/modules/cjs/loader.js:979:16) at Module._compile (internal/modules/cjs/loader.js:1027:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at Object. (/content/tts-generation-webui/react-ui/node_modules/next/dist/telemetry/post-payload.js:17:20) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! tts-generation-webui-react@0.1.0 build: next build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the tts-generation-webui-react@0.1.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I searched error log by google, it says node version is too low, now the version of nodejs is 14, but how to upgrade it?

rsxdalv commented 5 months ago

Interesting, it looks like it might be possible after all. I couldn't find how to update nodejs, but you'll also need ngrok or some other tunnel for the connection.

miaohf commented 5 months ago

I tried it in this way, and it works: !wget https://nodejs.org/dist/v21.6.0/node-v21.6.0-linux-x64.tar.gz !tar xvfz node-v21.6.0-linux-x64.tar.gz !cp -r node-v21.6.0-linux-x64/* /usr/local/

rsxdalv commented 5 months ago

I tried it in this way, and it works: !wget https://nodejs.org/dist/v21.6.0/node-v21.6.0-linux-x64.tar.gz !tar xvfz node-v21.6.0-linux-x64.tar.gz !cp -r node-v21.6.0-linux-x64/* /usr/local/

Wow... Inspiring dedication, thank you. May I include this in the project?

miaohf commented 5 months ago

I tried it in this way, and it works: !wget https://nodejs.org/dist/v21.6.0/node-v21.6.0-linux-x64.tar.gz !tar xvfz node-v21.6.0-linux-x64.tar.gz !cp -r node-v21.6.0-linux-x64/* /usr/local/

Wow... Inspiring dedication, thank you. May I include this in the project?

Of course you can, just do it

rsxdalv commented 4 months ago

Thank you @miaohf ! Added to latest commit.