-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent availability of node and npm binaries after sourcing emsdk_env.sh multiple times #1240
Comments
Thanks for the report.. I actually noticed this issue the other day myself. Its actually good to know that you noticed this... since I wasn't sure if folks out there were using out embedded version of node outside of the emcc tool. Can I ask what you are using it for? BTW, one temporary solution is to use the $EMSDK_NODE environment variable which we set to point to this copy of node. |
@sbc100, thank you for your response. I've already developed a temporary workaround for this issue. The solution involves creating a wrapper script that guarantees Our project requires both emcc (for compiling C++ code into WASM) and Node.js (for operating certain backend network components). Given that emcc's toolkit already includes Node.js, it makes sense for us to utilize this bundled Node.js. It saves us from having to manage a separate Node.js installation. :) |
I see. Interesting to know that some folks are taking advantage of our bundled version of node. My understanding was that most folks using node in production would actually want something a lot more recent (and more under their own control), but I stand corrected. Another temporary option would be to install your own separate version of node. Even with the current bug |
The first time around `node` was being correctly added to the PATH, but the second time around this code was observing the emsdk copy of node in the PATH and assuming it could be skipped. Fixes: #1240
The first time around `node` was being correctly added to the PATH, but the second time around this code was observing the emsdk copy of node in the PATH and assuming it could be skipped. Fixes: #1240
The first time around `node` was being correctly added to the PATH, but the second time around this code was observing the emsdk copy of node in the PATH and assuming it could be skipped. Fixes: #1240
The first time around `node` was being correctly added to the PATH, but the second time around this code was observing the emsdk copy of node in the PATH and assuming it could be skipped. Fixes: #1240
The first time around `node` was being correctly added to the PATH, but the second time around this code was observing the emsdk copy of node in the PATH and assuming it could be skipped. Fixes: #1240
…ripten-core#1250) The first time around `node` was being correctly added to the PATH, but the second time around this code was observing the emsdk copy of node in the PATH and assuming it could be skipped. Fixes: emscripten-core#1240
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 sourceemsdk_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:
source ./emsdk_env.sh
.node -v
andnpm -v
.source ./emsdk_env.sh
.Environment:
I hope this issue can be addressed. Thank you for your time and help.
The text was updated successfully, but these errors were encountered: