Skip to content

[rush] incorrect Node.js version detection #3613

Description

Summary

Any rush command fails, because of node.js version validation.

$ node --version
v14.20.0

$ rush --debug update


Rush Multi-Project Build Tool 5.56.0 - https://rushjs.io
Node.js version is 16.16.0 (LTS)



ERROR: Your dev environment is running Node.js version v16.16.0 which does not meet the requirements for building this repository.  (The rush.json configuration requires nodeSupportedVersionRange=">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0")

Repro steps

Using Nixos:

  1. Enter a nix-shell where nodejs is v16.16.0.
  2. Then enter another nix-shell where nodejs is v14.20.0
  3. Run any rush command.

Details

Rush is not detecting nodejs verison by actually running node --version.

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version? 5.76.1
rushVersion from rush.json? 5.56.0
useWorkspaces from rush.json? Yes
Operating system? Linux:Nixos
Would you consider contributing a PR? No
Node.js version (node -v)? 16.16.0 then 14.20.0

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions