wasm-pack icon indicating copy to clipboard operation
wasm-pack copied to clipboard

Error on install

Open TheArctesian opened this issue 2 years ago • 1 comments

🐛 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

TheArctesian avatar Aug 31 '22 23:08 TheArctesian

Also hitting this:

Distro : Arch Linux (Manjaro) Kernel : 5.15.62-2-MANJARO rustc version : 1.61.0 (fe5b13d68 2022-05-18)

alexandreLamarre avatar Sep 07 '22 23:09 alexandreLamarre

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

rozhkovdmitrii avatar Nov 24 '22 19:11 rozhkovdmitrii