Skip to content

features/node: Error occurs when building Debian containers #1534

Description

@ejiman

I have entered the following in devcontainer.json:

...
"build": {
    "dockerfile": "Dockerfile"
},
...
"features": {
    "ghcr.io/devcontainers/features/node:1": {
        "version": "18.2.1"
    }
},
...

The Dockerfile is as follows:

from: debian:bookworm
...

The following error occurs, causing the container build to fail.

/bin/sh: 10: source: not found

Using source causes errors when building Debian containers (Debian has /bin/sh → /bin/dash).
Shouldn't this be changed to . ?

[ -s "${NVM_DIR}/nvm.sh" ] && source "${NVM_DIR}/nvm.sh"

Activity

  1. sireeshajonnalagadda commented on Dec 30, 2025

    @sireeshajonnalagadda
    Contributor

    Hi EJIMAN (@ejiman) ,
    Thank you for reporting the issue!
    Could you please share the devcontainer.json file along with the Dockerfile, if possible? That way I can better assist you with the issue.

  2. sireeshajonnalagadda commented on Jan 8, 2026

    @sireeshajonnalagadda
    Contributor

    "Hi EJIMAN (@ejiman),
    It looks like you’re currently using Node version 18, which is not supported. Please upgrade to Node version 22.

    Thanks,
    Sireesha

  3. vralle commented on Jan 24, 2026

    @vralle
    100.0%
    #27 5.129 Computing checksum with sha256sum
    #27 5.269 Checksums matched!
    [2026-01-24T12:28:52.353Z] #27 7.500 Now using node v24.13.0 (npm v11.6.2)
    [2026-01-24T12:28:52.484Z] #27 7.648 Creating default alias: default -> lts/* (-> v24.13.0 *)
    [2026-01-24T12:28:52.720Z] #27 7.734 => Node.js version lts/* has been successfully installed
    #27 7.734 => Close and reopen your terminal to start using nvm or run the follow
    ing to use it now:
    #27 7.734
    #27 7.734 export NVM_DIR="/usr/local/share/nvm"
    #27 7.734 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
    [2026-01-24T12:28:52.753Z] 
    [2026-01-24T12:28:52.820Z] #27 7.965 default -> lts/* (-> v24.13.0 *)
    [2026-01-24T12:28:52.952Z] #27 7.967 Updating /etc/bash.bashrc and /etc/zsh/zshrc...
    [2026-01-24T12:28:53.052Z] #27 8.212 Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
    [2026-01-24T12:28:53.159Z] #27 8.228 Get:2 https://dl.yarnpkg.com/debian stable InRelease
    #27 8.252 Err:2 https://dl.yarnpkg.com/debian stable InRelease
    #27 8.252   Sub-process /usr/bin/sqv returned an error code (1), error message i
    s: Signing key on 72ECF46A56B4AD39C907BBB71646B01B86E50310 is bad:            Th
    e subkey is not live   because: Expired on 2023-01-24T19:06:41Z
    #27 8.310 Get:3 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
    [2026-01-24T12:28:53.385Z] #27 8.359 Get:4 http://deb.debian.org/debian-security trixie-security InRelease
    [43.4 kB]
    #27 8.396 Get:5 http://deb.debian.org/debian trixie/main amd64 Packages [9670 kB
    ]
    [2026-01-24T12:28:53.785Z] #27 8.947 Get:6 http://deb.debian.org/debian trixie-updates/main amd64 Packages
    [5412 B]
    [2026-01-24T12:28:53.986Z] #27 8.979 Get:7 http://deb.debian.org/debian-security trixie-security/main amd64
     Packages [97.9 kB]
    [2026-01-24T12:28:54.519Z] #27 9.683 Reading package lists...
    [2026-01-24T12:28:55.020Z] 
    [2026-01-24T12:28:55.188Z] #27 10.19 W: OpenPGP signature verification failed: https://dl.yarnpkg.com/debia
    n stable InRelease: Sub-process /usr/bin/sqv returned an error code (1), error m
    essage is: Signing key on 72ECF46A56B4AD39C907BBB71646B01B86E50310 is bad:
          The subkey is not live   because: Expired on 2023-01-24T19:06:41Z
    #27 10.19 E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is
    not signed.
    #27 10.19 ERROR: Feature "Node.js (via nvm), yarn and pnpm" (ghcr.io/devcontaine
    rs/features/node) failed to install! Look at the documentation at https://github
    .com/devcontainers/features/tree/main/src/node for help troubleshooting this err
    or.
    [2026-01-24T12:28:55.388Z] #27 ERROR: process "/bin/sh -c cp -ar /tmp/build-features-src/node_2 /tmp/dev-co
    ntainer-features  && chmod -R 0755 /tmp/dev-container-features/node_2  && cd /tm
    p/dev-container-features/node_2  && chmod +x ./devcontainer-features-install.sh
     && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/no
    de_2" did not complete successfully: exit code: 100
    [2026-01-24T12:28:55.454Z] ------
     > [dev_containers_target_stage 6/6] RUN --mount=type=bind,from=dev_containers_f
    eature_content_source,source=node_2,target=/tmp/build-features-src/node_2     cp
     -ar /tmp/build-features-src/node_2 /tmp/dev-container-features  && chmod -R 075
    5 /tmp/dev-container-features/node_2  && cd /tmp/dev-container-features/node_2
    && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-insta
    ll.sh  && rm -rf /tmp/dev-container-features/node_2:
    8.252   Sub-process /usr/bin/sqv returned an error code (1), error message is: S
    igning key on 72ECF46A56B4AD39C907BBB71646B01B86E50310 is bad:            The su
    bkey is not live   because: Expired on 2023-01-24T19:06:41Z
    8.310 Get:3 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
    8.359 Get:4 http://deb.debian.org/debian-security trixie-security InRelease [43.
    4 kB]
    8.396 Get:5 http://deb.debian.org/debian trixie/main amd64 Packages [9670 kB]
    8.947 Get:6 http://deb.debian.org/debian trixie-updates/main amd64 Packages [541
    2 B]
    8.979 Get:7 http://deb.debian.org/debian-security trixie-security/main amd64 Pac
    kages [97.9 kB]
    
    10.19 W: OpenPGP signature verification failed: https://dl.yarnpkg.com/debian st
    able InRelease: Sub-process /usr/bin/sqv returned an error code (1), error messa
    ge is: Signing key on 72ECF46A56B4AD39C907BBB71646B01B86E50310 is bad:
      The subkey is not live   because: Expired on 2023-01-24T19:06:41Z
    10.19 E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not
    signed.
    10.19 ERROR: Feature "Node.js (via nvm), yarn and pnpm" (ghcr.io/devcontainers/f
    eatures/node) failed to install! Look at the documentation at https://github.com
    /devcontainers/features/tree/main/src/node for help troubleshooting this error.
    
  4. sireeshajonnalagadda commented on Feb 3, 2026

    @sireeshajonnalagadda
    Contributor

    Hi Vitaliy Ralle (@vralle),
    Thanks for reaching out!
    This should be resolved by the update/fix. Please use the latest version of the feature (version-1.7.0).

    Please feel free to reach out if you have any further concerns on this.

  5. vralle commented on Feb 4, 2026

    @vralle

    Hi sireeshajonnalagadda! Containers with ghcr.io/devcontainers/features/node:1 now start without errors. The issue is resolved for me.

  6. sireeshajonnalagadda commented on Feb 16, 2026

    @sireeshajonnalagadda
    Contributor

    Hi Vitaliy Ralle (@vralle),

    Thank you for confirming.

    Hi EJIMAN (@ejiman),

    As it has been some time since the last communication, I am closing this issue as resolved. Please feel free to reopen it or create a new issue if you have any further concerns.

    Thank you,
    Sireesha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions