Skip to content
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

NPM Package Fails to Install on Mingw #1354

Closed
nathaniel-daniel opened this issue Dec 27, 2023 · 0 comments · Fixed by #1363
Closed

NPM Package Fails to Install on Mingw #1354

nathaniel-daniel opened this issue Dec 27, 2023 · 0 comments · Fixed by #1363

Comments

@nathaniel-daniel
Copy link
Contributor

🐛 Bug description

The npm package fails to install on mingw:

npm ERR!   throw new Error(`Unsupported platform: ${type} ${arch}`);
npm ERR!   ^
npm ERR!
npm ERR! Error: Unsupported platform: MINGW32_NT-10.0 x64

This is due to the script not detecting the Windows environment correctly. I have a branch at https://github.com/nathaniel-daniel/wasm-pack/tree/mingw that fixes the issue, which I can turn into a PR.

🤔 Expected Behavior

The package should have installed.

👟 Steps to reproduce

  1. Install msys2.
  2. Enter the ucrt64 env (ucrt64)
  3. Install nodejs (pacman -S ucrt64/mingw-w64-ucrt-x86_64-nodejs)
  4. Create a new project with wasm-pack as a dependency or dev dependency.
  5. Run npm i

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version: N/A (Issue with NPM package)
rustc version: N/A (Issue with NPM package)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant