Closed webern closed 5 years ago
Actually I solved this when I went to edit the original post with my node and npm versions. Turns out I was hitting node 8.x due to some emscripten thing. When I straightened it out to 10.16.X it worked as expected.
Actually I want to reopen this. I think the documentation would be improved by adding something like this:
Run
node --version
You need to be running a node version 10.x Runnpm --version
You need to be running an npm version 6.x
Adjust the versions as necessary. That would have helped me spot the issue much faster.
Thanks!
Where in the docs did you come across this?
4.2 Putting it into a Web Page
https://rustwasm.github.io/book/game-of-life/hello-world.html#putting-it-into-a-web-page
Describe what about it does not make sense
There is a link to a project
create-wasm-app
, but I'm not clear if I need to install this. Runningnpm init wasm-app www
does not create awww
directory for me, it only creates apackage.json
file (which is what I would expect npm init to do).Why does it not make sense?
Immediately after the instruction to run
npm init wasm-app www
, it saysThis did not happen for me. Instead npm init only created a package.json file which looks like this:
How could we improve it?
Better explain how to generate these files