wasm-pack
wasm-pack copied to clipboard
Error on install
🐛 Bug description
Used the
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
command to install got the error
info: downloading wasm-pack
failed to copy executable to `/sbin/wasm-pack`
Caused by: Permission denied (os error 13)
fixed it by adding sudo
to the front of the sh script like
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sudo sh
Would recommend fixing that or writing a note for that in the docs. Tried the other installers as well (yarn and cargo) and they worked fine
👟 Steps to reproduce
Run the install command on Arch Linux with the sudo
🌍 Your environment
Distro: Arch Linux Kernel: 5.19.5-arch1-1 rustc version: 1.6.1
Also hitting this:
Distro : Arch Linux (Manjaro) Kernel : 5.15.62-2-MANJARO rustc version : 1.61.0 (fe5b13d68 2022-05-18)
Just to notice:
The workaround is to install with cargo
cargo install wasm-pack
It will be placed in ~/.cargo/bin
, this path will have to be added to PATH