Closed davidyuk closed 6 months ago
npm i @node-rs/argon2-wasm32-wasi --cpu=wasm32
, see https://github.com/napi-rs/napi-rs/issues/1794 and https://github.com/napi-rs/node-rs/issues/792 for the context
Sounds good to me. I'm planning to use this package in our sdk, will report if I have any other issues. Thank you!
I'm getting the above error trying to install this package as
it works if I add
--force
flagThe problem is https://github.com/napi-rs/node-rs/blob/ee3defdfa60eb8b9da692d0b92387e513c3acb81/packages/argon2/npm/wasm32-wasi/package.json#L4-L6 It is not set correctly, because wasm actually can be executed on
x64
and other platforms. I think the best would be to omitcpu
key at all. NPM version I'm using is 10.2.4.https://docs.npmjs.com/cli/v10/configuring-npm/package-json#cpu