cargo-web icon indicating copy to clipboard operation
cargo-web copied to clipboard

Installing cargo web errors out when emscripten uninstalled

Open elichai opened this issue 4 years ago • 2 comments

Hi I'm trying to install emscripten using #52 in my CI like this:

rustup target add asmjs-unknown-emscripten && cargo install --force cargo-web && cargo web prepare-emscripten

but cargo install --force cargo-web fails with this:

  Installing C:\Users\appveyor\.cargo\bin\cargo-web.exe
   Installed package `cargo-web v0.6.26` (executable `cargo-web.exe`)
error: you don't have Emscripten installed!
Download and install emscripten from the official site: http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html

elichai avatar Aug 09 '19 17:08 elichai

This subcommand is only supported on Linux; unfortunately on windows the Emscripten has to be installed manually.

koute avatar Aug 13 '19 20:08 koute

Yeah I figured that out :/ I'm running this long thing instead: git clone https://github.com/emscripten-core/emsdk.git && cd emsdk && emsdk install latest && emsdk activate latest --global && emsdk_env.bat

elichai avatar Aug 13 '19 20:08 elichai