Skip to content

Inconsistent availability of node and npm binaries after sourcing emsdk_env.sh multiple times #1240

@shakhvit

Description

@shakhvit

Description:

When I source the environment setup file emsdk_env.sh for emsdk (commit c2260b4 -- current main), node and npm binaries are correctly added to my path the first time. However, when I source emsdk_env.sh again, node and npm are no longer accessible. Sourcing a third time brings them back, and this pattern continues with each subsequent sourcing.

Steps to reproduce:

  1. Clone the most recent version of emsdk (commit c2260b4).
  2. Run the commands:
./emsdk install 3.1.3
./emsdk activate 3.1.3
  1. Source the environment with source ./emsdk_env.sh.
  2. Check that node and npm are available by running node -v and npm -v.
  3. Source the environment again with source ./emsdk_env.sh.
  4. Check node and npm availability again. They are not found.
  5. Source the environment again and check node and npm. They are available again.
  6. Continue this cycle of sourcing and checking. You will see that the availability of node and npm alternates with each sourcing.

Environment:

  • OS: Linux
  • Shell: bash
  • Emscripten SDK version: c2260b4

I hope this issue can be addressed. Thank you for your time and help.

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