SwadicalRag / wasm2lua

wasm2lua: converting WASM into Lua
MIT License
194 stars 11 forks source link

Failure to install using npm #38

Open Diminim opened 2 years ago

Diminim commented 2 years ago

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/helper-api-error@1.11.3. 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

Malte0621 commented 1 year ago

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.