Installing in a Ubuntu docker image #984
Replies: 4 comments 3 replies
-
|
anyone ? apologize if my question is naive but I tried my best |
Beta Was this translation helpful? Give feedback.
-
|
Ok i made it work, to install and run from a Ubuntu docker image, here is my working docker file It's not ideal because there's a 60 second wait during the deb.nodesource.com setup that i didn't take the time to solve, but it works. and main.js should contain the example in the readme, |
Beta Was this translation helpful? Give feedback.
-
|
Still facing this issue, no matter what I try I get the "Cannot find module 'uWebsockets.js' or its corresponding type declarations." |
Beta Was this translation helpful? Give feedback.
-
|
Just dropping this here, since it’s a problem I encountered not too long ago. Cannot find module 'uwebsockets.js' or its corresponding type declarations.Turns out I work on Windows, and locally (even with WSL), I had no compilation issues... import { App } from 'uWebSockets.js'; |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to install uWebSockets.js on a vanilla Ubuntu docker image, in which I installed node
When running the container, I get the error
Here's my dockerfile
During the creation process, i can see the message
installed uWebSockets.js@github:uNetworking/uWebSockets.js#c10b47cWhich seems to say that uWebSockets has been correctly installed
I'd went to the
node_modulesfolder to confirm if theuWebSockets.jsfolder is there,The command
which nodereturns/usr/bin/nodeand
cd /usr/bin/nodereturnscan't cd to /usr/bin/nodeas if it's a problem of access right
The content of
main.jsis the same as the example in thereadme.Any idea of how to troubleshoot this ?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions