Install wasm-pack globally using npm i -g wasm-pack and install the rest through a regular npm i. Make sure to build the wasm file first using npm run wasm, before running npm run dev the first time!
npm i -g wasm-pack
npm i
npm run wasm
npm run dev