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#c10b47c
Which seems to say that uWebSockets has been correctly installed
I'd went to the
node_modules
folder to confirm if theuWebSockets.js
folder is there,The command
which node
returns/usr/bin/node
and
cd /usr/bin/node
returnscan't cd to /usr/bin/node
as if it's a problem of access right
The content of
main.js
is 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