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

[BUG] **** npm not installed, skipping npmglobal install **** #972

Closed
1 task done
pathofleastresistor opened this issue Nov 3, 2024 · 3 comments
Closed
1 task done

Comments

@pathofleastresistor
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Name of mod

linuxserver/mods:code-server-nodejs
linuxserver/mods:code-server-npmglobal

Name of base container

lscr.io/linuxserver/code-server:latest

Current Behavior

Setting up libquadmath0:amd64 (14.2.0-4ubuntu2~24.04) ...

Setting up libssl-dev:amd64 (3.0.13-0ubuntu3.4) ...

Setting up libcares2:amd64 (1.27.0-1.0ubuntu1) ...

Setting up libmpc3:amd64 (1.3.1-1build1) ...

Setting up libdpkg-perl (1.22.6ubuntu6.1) ...

Setting up libubsan1:amd64 (14.2.0-4ubuntu2~24.04) ...

Setting up libicu74:amd64 (74.2-1ubuntu3.1) ...

Setting up libhwasan0:amd64 (14.2.0-4ubuntu2~24.04) ...

Setting up libcrypt-dev:amd64 (1:4.4.36-4build1) ...

Setting up libasan8:amd64 (14.2.0-4ubuntu2~24.04) ...

Setting up zsh (5.9-6ubuntu2) ...

Setting up yarn (1.22.22-1) ...

Setting up libtsan2:amd64 (14.2.0-4ubuntu2~24.04) ...

Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ...

Setting up libbinutils:amd64 (2.42-4ubuntu2.3) ...

Setting up node-xtend (4.0.2-3) ...

Setting up libisl23:amd64 (0.26-3build1) ...

Setting up libc-dev-bin (2.39-0ubuntu8.3) ...

Setting up libcc1-0:amd64 (14.2.0-4ubuntu2~24.04) ...

Setting up liblsan0:amd64 (14.2.0-4ubuntu2~24.04) ...

Setting up libitm1:amd64 (14.2.0-4ubuntu2~24.04) ...

Setting up libpython3-stdlib:amd64 (3.12.3-0ubuntu2) ...

Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ...

Setting up node-busboy (1.6.0+~cs2.6.0-2) ...

Setting up libctf0:amd64 (2.42-4ubuntu2.3) ...

Setting up python3.12-venv (3.12.3-1ubuntu0.2) ...

Setting up cpp-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ...

Setting up python3 (3.12.3-0ubuntu2) ...

Setting up python3-wheel (0.42.0-2) ...

Setting up libgprofng0:amd64 (2.42-4ubuntu2.3) ...

Setting up python3-venv (3.12.3-0ubuntu2) ...

Setting up libjs-sphinxdoc (7.2.6-6) ...

Setting up node-undici (5.26.3+dfsg1+~cs23.10.12-2) ...

Setting up libgcc-13-dev:amd64 (13.2.0-23ubuntu4) ...

Setting up libc6-dev:amd64 (2.39-0ubuntu8.3) ...

Setting up libstdc++-13-dev:amd64 (13.2.0-23ubuntu4) ...

Setting up binutils-x86-64-linux-gnu (2.42-4ubuntu2.3) ...

Setting up cpp-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ...

Setting up python3-pkg-resources (68.1.2-2ubuntu1.1) ...

Setting up python3-setuptools (68.1.2-2ubuntu1.1) ...

Setting up cpp-13 (13.2.0-23ubuntu4) ...

Setting up gcc-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ...

Setting up binutils (2.42-4ubuntu2.3) ...

Setting up dpkg-dev (1.22.6ubuntu6.1) ...

Setting up libexpat1-dev:amd64 (2.6.1-2ubuntu0.1) ...

Setting up gcc-13 (13.2.0-23ubuntu4) ...

Setting up python3-pip (24.0+dfsg-1ubuntu1.1) ...

Setting up zlib1g-dev:amd64 (1:1.3.dfsg-3.1ubuntu2.1) ...

Setting up cpp (4:13.2.0-7ubuntu1) ...

Setting up g++-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ...

Setting up gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ...

Setting up libpython3.12-dev:amd64 (3.12.3-1ubuntu0.2) ...

Setting up gcc (4:13.2.0-7ubuntu1) ...

Setting up python3.12-dev (3.12.3-1ubuntu0.2) ...

Setting up g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ...

Setting up g++-13 (13.2.0-23ubuntu4) ...

Setting up libpython3-dev:amd64 (3.12.3-0ubuntu2) ...

Setting up python3-dev (3.12.3-0ubuntu2) ...

Setting up g++ (4:13.2.0-7ubuntu1) ...

update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode

update-alternatives: warning: skip creation of /usr/share/man/man1/c++.1.gz because associated file /usr/share/man/man1/g++.1.gz (of link group c++) doesn't exist

Setting up build-essential (12.10ubuntu1) ...

Setting up node-acorn (8.8.1+ds+~cs25.17.7-2) ...

Setting up libnode109:amd64 (18.19.1+dfsg-6ubuntu5) ...

Setting up nodejs (18.19.1+dfsg-6ubuntu5) ...

update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode

update-alternatives: warning: skip creation of /usr/share/man/man1/js.1.gz because associated file /usr/share/man/man1/nodejs.1.gz (of link group js) doesn't exist

Processing triggers for debianutils (5.17build1) ...

Processing triggers for libc-bin (2.39-0ubuntu8.3) ...

**** npm not installed, skipping npmglobal install ****

[custom-init] No custom files found, skipping...

[2024-11-03T03:23:15.433Z] info  code-server 4.93.1 69df01185ce2f80e99c9e4f8c8de1907cc7a9bc5

[2024-11-03T03:23:15.434Z] info  Using user-data-dir /config/data

[2024-11-03T03:23:15.448Z] info  Using config file /config/.config/code-server/config.yaml

[2024-11-03T03:23:15.448Z] info  HTTP server listening on http://0.0.0.0:8443/

[2024-11-03T03:23:15.448Z] info    - Authentication is enabled

[2024-11-03T03:23:15.448Z] info      - Using password from $PASSWORD

[2024-11-03T03:23:15.448Z] info    - Not serving HTTPS

[2024-11-03T03:23:15.448Z] info  Session server listening on /config/data/code-server-ipc.sock

Connection to 127.0.0.1 8443 port [tcp/*] succeeded!

[ls.io-init] done.

[20:23:17] 

[20:23:17] Extension host agent started.

[20:23:17] [172.16.0.1][4376c5a2][ManagementConnection] Unknown reconnection token (never seen).

[20:23:17] [172.16.0.1][cd86fec5][ExtensionHostConnection] Unknown reconnection token (never seen).

File not found: /app/code-server/lib/vscode/out/vsda.js

File not found: /app/code-server/lib/vscode/out/vsda_bg.wasm

[20:23:37] [172.16.0.1][5a310c90][ManagementConnection] New connection established.

[20:23:38] [172.16.0.1][15202f52][ExtensionHostConnection] New connection established.

[20:23:38] [172.16.0.1][15202f52][ExtensionHostConnection] <2474> Launched Extension Host Process.

Expected Behavior

npm should be installed

Steps To Reproduce

here's my config:

services:
  code-server:
    image: lscr.io/linuxserver/code-server:latest
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Los_Angeles
      - PASSWORD=password! #optional
      - SUDO_PASSWORD=password! #optional
      - DOCKER_MODS=linuxserver/mods:universal-docker|linuxserver/mods:code-server-python3|linuxserver/mods:code-server-zsh|linuxserver/mods:code-server-nodejs|linuxserver/mods:code-server-npmglobal
    volumes:
      - /home/user/projects/code-server:/config
      - /var/run/docker.sock:/var/run/docker.sock:ro
    restart: unless-stopped

Environment

- OS: Ubuntu 20.04
- How docker service was installed: distro's packagemanager

CPU architecture

x86-64

Docker creation

see above

Container logs

see above
@aptalca
Copy link
Member

aptalca commented Nov 3, 2024

See the mod's readme

@pathofleastresistor
Copy link
Author

Thanks! when I added the env var NODEJS_MOD_VERSION =20, it was fixed. The default value of 16 wasn't working.

@aptalca
Copy link
Member

aptalca commented Nov 3, 2024

Because it needs npm specifically.

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

No branches or pull requests

2 participants