Skip to content

sem-version node 18.16.1 fails but prints "success" with exit status 0 anyway #415

@mattbrictson

Description

@mattbrictson

Switching node versions to 18.16.1 doesn't work:

semaphore@semaphore-vm:~$ sem-version node 18.16.1

[16:03 22/06/2023]: Changing 'node' to version 18.16.1
Version '18.16.1' not found - try `nvm ls-remote` to browse available versions.
N/A: version "v18.16.1" is not yet installed.

You need to run `nvm install 18.16.1` to install and use it.

changed 59 packages in 619ms

4 packages are looking for funding
  run `npm fund` for details

[16:03 22/06/2023]: Switch successful.

Confirming it didn't work (this should print v18.16.1):

semaphore@semaphore-vm:~$ node -v
v18.15.0

The sem-version command exits with status 0, so the build proceeds even though the version switch didn't work.

Metadata

Metadata

Assignees

No one assigned

    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