You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Clone the most recent version of emsdk (commit c2260b4).
Run the commands:
./emsdk install 3.1.3
./emsdk activate 3.1.3
Source the environment with source ./emsdk_env.sh.
Check that node and npm are available by running node -v and npm -v.
Source the environment again with source ./emsdk_env.sh.
Check node and npm availability again. They are not found.
Source the environment again and check node and npm. They are available again.
Continue this cycle of sourcing and checking. You will see that the availability of node and npm alternates with each sourcing.