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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please update the npm package #1376

Open
Kreijstal opened this issue Mar 22, 2024 · 1 comment
Open

Please update the npm package #1376

Kreijstal opened this issue Mar 22, 2024 · 1 comment

Comments

@Kreijstal
Copy link

馃悰 Bug description

Describe your issue in detail

npm ERR! npm ERR! C:\Users\topkek\AppData\Local\npm-cache\_cacache\tmp\git-cloneXXXXXXh89pxf\node_modules\wasm-pack\binary.js:23
npm ERR! npm ERR!   throw new Error(`Unsupported platform: ${type} ${arch}`);
npm ERR! npm ERR!   ^
npm ERR! npm ERR!
npm ERR! npm ERR! Error: Unsupported platform: MINGW32_NT-10.0 x64
npm ERR! npm ERR!     at getPlatform (C:\Users\topkek\AppData\Local\npm-cache\_cacache\tmp\git-cloneXXXXXXh89pxf\node_modules\wasm-pack\binary.js:23:9)
npm ERR! npm ERR!     at getBinary (C:\Users\topkek\AppData\Local\npm-cache\_cacache\tmp\git-cloneXXXXXXh89pxf\node_modules\wasm-pack\binary.js:27:20)
npm ERR! npm ERR!     at install (C:\Users\topkek\AppData\Local\npm-cache\_cacache\tmp\git-cloneXXXXXXh89pxf\node_modules\wasm-pack\binary.js:36:18)
npm ERR! npm ERR!     at Object.<anonymous> (C:\Users\topkek\AppData\Local\npm-cache\_cacache\tmp\git-cloneXXXXXXh89pxf\node_modules\wasm-pack\install.js:4:1)
npm ERR! npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1368:14)
npm ERR! npm ERR!     at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
npm ERR! npm ERR!     at Module.load (node:internal/modules/cjs/loader:1205:32)
npm ERR! npm ERR!     at Module._load (node:internal/modules/cjs/loader:1021:12)
npm ERR! npm ERR!     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12)
npm ERR! npm ERR!     at node:internal/main/run_main_module:28:49

.

馃 Expected Behavior

What should have happened?
You have a MSVC build for windows, can you do a mingw one as well? use the rust target x86_64-pc-windows-gnu

馃憻 Steps to reproduce

Clear steps describing how to reproduce the issue, including commands and flags run. If you are seeing an error, please include the full error message and stack trace.

go to msys2/mingw64
install npm
npm install wasm-pack
get error

馃實 Your environment

Include the relevant details of your environment.
wasm-pack version: master branch
rustc version:rustc 1.76.0 (07dca489a 2024-02-04) (Rev1, Built by MSYS2 project)

@Kreijstal
Copy link
Author

Eh I just saw there was a pull request added recently, is it not published on the npm registry yet?

@Kreijstal Kreijstal changed the title Please support mingw/msys2 platform? add x86_64-pc-windows-gnu target Please update the npm package Mar 22, 2024
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

No branches or pull requests

1 participant