-
Notifications
You must be signed in to change notification settings - Fork 409
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
pack error on Windows 10 17746 #277
Comments
Thanks for the bug report! |
@wangzishi I suspect that @fitzgen Lines 10 to 18 in 89be40d
maybe better to add a binary exsit_or_not checking as you did in test PR here?
|
That sounds good to me! We should probably always do that, just to get good error messages to users |
@csmoe I do have npm and node installed on my machine. |
ah @wangzishi what happens when you run |
@ashleygwilliams what else can I help? |
hrm. thanks so much for the response and sorry this is taking so long to figure out. @steveklabnik do you think you could try this locally? |
I get C:\Users\steve> wasm-pack pack
| 🎒 packed up your package! |
this bug can be reproduced with Chinese-ver Windows7 in my virtualbox, comparing to stevelabnik's comment, I suspect that system locale is the one to be blamed. |
this might help: rust-lang/rust#42791 |
Unfortunately, this issue affects login, pack, and publish on Windows! I verified that the cause suggested by @luotaoyeah is indeed occurring. The recommended solution is to call |
@danwilhelm are you on discord or IRC? feel free to reach out to me on either platfrom (i'm ag_dubs) |
Issue rustwasm#277 - Affects running login, pack, and publish on Windows. `Command::new("npm")` launched `npm` with quotes, `"npm"`, causing a run-time error on Windows. Now, `Command::new` is wrapped by `child::new_command(program: &str)`. This prepends `cmd /c` to the program name if `cfg!(windows)`. See rustc: #42436, #42791, #44542
closed by #489! about to go out! |
Issue #277 - Affects running login, pack, and publish on Windows. `Command::new("npm")` launched `npm` with quotes, `"npm"`, causing a run-time error on Windows. Now, `Command::new` is wrapped by `child::new_command(program: &str)`. This prepends `cmd /c` to the program name if `cfg!(windows)`. See rustc: #42436, #42791, #44542
@wangzishi @csmoe I was not able to test my commit on Chinese-ver Windows! Could you possibly verify whether it is fixed in wasm-pack 0.6.0? |
@danwilhelm thanks for the fix. I'll test then(my locale gussing maybe almost not the cause). |
Issue #277 - Affects running login, pack, and publish on Windows. `Command::new("npm")` launched `npm` with quotes, `"npm"`, causing a run-time error on Windows. Now, `Command::new` is wrapped by `child::new_command(program: &str)`. This prepends `cmd /c` to the program name if `cfg!(windows)`. See rustc: #42436, #42791, #44542
🐛 Bug description
I just try the hello world on my computer.
Project structure is
wasm-pack init
is successbut
wasm-pack pack .
is faildwasm-pack.log
🤔 Expected Behavior
No error occurred
👟 Steps to reproduce
🌍 Your environment
os: windows 10 x64 17746.1000
wasm-pack version: 0.4.2
rustc version: 1.30.0-nightly (02cb8f2a4 2018-08-29)
The text was updated successfully, but these errors were encountered: