Skip to content

Installing emsdk overwrites node on PATH #1142

Closed
@romatthe

Description

@romatthe

This is a small but annoying issue. When installing the emscripten sdk, or whenever you install a new version of the toolchain, you're told to execute source ./emsdk_env.sh.

This is rather annoying, as the toolchain comes packaged with its own specific version of node, and this conflicts with all other node tools we're used to using. For example, it put node 4.1.1 or my path while I previously had 7.4.0. I've noticed the same goes for clang, but it doesn't bother my that much. Even when relying on a tool like nvm, it's annoying because switching to another version would essentially break emscripten/emsdk?

If emscripten is reliant on a specific version of node, should it not be its own responsibility to make sure its scripts run with its own internally packaged version? This just seems a tad messy.

(Note: One possible temporary workaround is to simply avoid emsdk_env.sh in this case and just manually add emsdk/upstream/emscripten to your path. That is all that should be needed to get emscripten working on many systems).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions