wasm-by-example icon indicating copy to clipboard operation
wasm-by-example copied to clipboard

Use npx rather than npm global install?

Open ColinEberhardt opened this issue 3 years ago • 3 comments

Rather than globally installing AssemblyScript:

$ npm install -g assemblyscript
$ asinit wasi-hello-world
$ cd wasi-hello-world

Would it be better to use npx instead?

$ npx -p assemblyscript asinit wasi-hello-world
$ cd wasi-hello-world

ColinEberhardt avatar Apr 27 '21 05:04 ColinEberhardt

Yo! Thanks for the issue @ColinEberhardt :smile:

Hmmmmm that's an interesting point! I've always just installed it globally, and have preferred it :upside_down_face:

But! If you think that'd probably be best practice to encourage newcomers to do, than I am happy to change it :smile:

torch2424 avatar Apr 27 '21 18:04 torch2424

I think npx makes more sense for people who might be trying this out for fun, or just experimenting.

ColinEberhardt avatar Apr 27 '21 19:04 ColinEberhardt

@ColinEberhardt Sounds good to me! :smile: I'll go ahead and open up a PR to fix this once I get the change :smile: Thanks dude!

torch2424 avatar May 01 '21 01:05 torch2424