-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run build: Cannot find module '/home/username/destreamer/node_modules/typescript/bin/tsc #90
Comments
It won't work in WSL, puppeteer can't pop up a browser window. Run it with Windows Node.js in cmd.exe or PowerShell. |
Did I miss this in readme? If not, please consider documenting it. |
You didn't, we left it out by accident. I'll add a note for it right now. Thanks for reporting this one. |
Quick update here, i've tested this on WSL2 and it does work, however you'll need an Xserver so puppeteer can launch the Linux-flavored Chromium that comes down with npm install. You may also be able to plug in a Windows Chromium-based browser (since WSL2 can still launch Windows binaries) by hooking into const browser = await puppeteer.launch({
executablePath: "/mnt/c/path/to/your/chrome.exe"
headless: false,
args: ['--disable-dev-shm-usage']
}); ^ That i didn't test so it's still just speculation. I did however test running an Xserver and exporting DISPLAY to it, and that works - # For WSL1
# Start Xming on Windows
export DISPLAY=:0
./destreamer.sh -i URL_TO_VIDEO
# For WSL2
# Start Xming on Windows
export DISPLAY=$(grep nameserver /etc/resolv.conf | cut -f2 -d ' '):0
./destreamer.sh -i URL_TO_VIDEO |
Just confirming that @snobu 's comment about using your Windows version of Chrome (below) does work.
The XServer solution was not working for me, as the Chromium window was not rendering any content. The only caveat is that you need to manually close the Chrome window after a successful login, as the script will fail to do it. |
Hi, I'm trying to run destreamer on wsl2. In console I get this error: [WARNING] .token_cache not found. Do you know what could be the problem? |
I have the same problem. I can't seem to make it work even with xming |
I think you need to add a back slash
|
I ended up using this tutorial on yt, works as a charm |
I managed to get it working with WSL2 and GWSL (from the Microsoft Store). I had to install these dependencies beforehand:
I'm using an Ubuntu 20.04 distro from the store. After installing GWSL so that the X server is configured, as well as the dependencies above that are required to run GTK apps, it's all working smoothly. I can make a PR that runs these steps / suggests GWSL if WSL2 environments are detected. Thanks for the tool, guys! It's really useful! |
Env
Ubuntu 16.04 on WSL Windows 10 1909
git version 2.7.4
node v14.0.0
npm 6.14.4
Steps
ER: success
AR: error
Log attached.
2020-04-24T07_10_52_463Z-debug.log
The text was updated successfully, but these errors were encountered: