Skip to content
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

Dockerfile nodejs-lts-11 not found #433

Open
millsoft opened this issue Oct 28, 2021 · 1 comment
Open

Dockerfile nodejs-lts-11 not found #433

millsoft opened this issue Oct 28, 2021 · 1 comment

Comments

@millsoft
Copy link

millsoft commented Oct 28, 2021

Hi,

just wanted to try nodetube using docker (docker-compose.yml)
It fails to install nodejs because the package is not available:

$>   docker-compose up -d

Building node
Sending build context to Docker daemon  17.56MB
Step 1/24 : FROM bougyman/voidlinux as void
 ---> de3203b3c713
Step 2/24 : RUN xbps-install -Syu git tar python nodejs-lts-11 base-devel
 ---> Running in 5e1c3ab29d39
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: [1700KB 0%] 57MB/s ETA: 00m00s
x86_64-repodata: [1700KB 2%] 252KB/s ETA: 00m34s
x86_64-repodata: [1700KB 38%] 546KB/s ETA: 00m03s
x86_64-repodata: 1700KB [avg rate: 1414KB/s]
Package 'nodejs-lts-11' not found in repository pool.
The command '/bin/sh -c xbps-install -Syu git tar python nodejs-lts-11 base-devel' returned a non-zero code: 2
ERROR: Service 'node' failed to build : Build failed

I also tried to replace nodejs-lts-* with any newer version.

I replaced the nodejs-lts-10 with nodejs only, it installed the newest version (v16) and it seemed to work but the asset compilation generated many errors, probably newest npm / nodejs is no more compatible nodetube, many deprecated libraries):

npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/app/node_modules/node-gyp/lib/build.js:262:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 5.13.0-7614-generic
npm ERR! gyp ERR! command "/usr/bin/node" "/app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd /app/node_modules/node-sass
npm ERR! gyp ERR! node -v v16.9.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok 
npm ERR! Build failed with error code: 1
@Karan1458
Copy link

Came up with same issue. They are using VoidLinux image and under that. There is 12 version available under nodejs-lts.
https://voidlinux.org/packages/?arch=x86_64&q=nodejs-lts

Simply remove the '-10' version and everything will be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants