wasm2lua
wasm2lua copied to clipboard
Failure to install using npm
When following the installation instructions in the README.md in a clean environment I ran into this error.
npm i -g wasm2lua npm ERR! code ETARGET npm ERR! notarget No matching version found for @webassemblyjs/[email protected]. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.
When checking https://www.npmjs.com/package/@webassemblyjs/helper-api-error I found that there was no version 1.11.3
I speculate that this is a result of destructive changes upstream. Likely related: #https://github.com/xtuc/webassemblyjs/issues/1132
A workaround I found for this is to install from source and change "@webassemblyjs/wasm-parser": "^1.8.5",
to "@webassemblyjs/wasm-parser": "1.11.1",
or another version.