Rust and WebAssembly tutorial Help

I have been following the Rust WebAssembly tutorial, but when I tried to reach the point where I run the command npm run start, I encountered the following error:


Before that, I ran the following commands:

  566  wasm-pack build
  567  npm init wasm-app www
  568  cd www
  569  npm install
  570  npm install
  571  npm run start

I am a beginner, and I don't understand why this error occurred even though I followed the tutorial. Could you help me identify where my setup might be wrong? I need some assistance QwQ

Here is the link to the tutorial I followed :
https://rustwasm.github.io/docs/book/game-of-life/hello-world.html#serving-locally

It's out of date with newer software. (Rust 1.82 is at least one break point.)
Could try this; (which might of just worked but not tested.)
rm -r www
npm init wasm-webpack-app www
Follow other steps and also in package.json change to
"webpack": "^5.97.1",

Thanks, John! I tried it, and it worked perfectly.

I'll keep exploring to understand more.

:heart::heart::heart: