Npx uses the local version (defined by package.json) by default. Only if it can't find the package locally, it will fall back to the global version. See: prntscr.com/r404st
I think using npm scripts is definitely a good idea. But npx is also fine in terms of ensuring it uses the correct version as defined in the package.json.
Good tutorial thanks!
You should use npm script instead of npx commands to make sure you use the version written in the package.json.
Thanks for the feedback.
Npx uses the local version (defined by package.json) by default. Only if it can't find the package locally, it will fall back to the global version. See: prntscr.com/r404st
I think using npm scripts is definitely a good idea. But npx is also fine in terms of ensuring it uses the correct version as defined in the package.json.
Ok, Good to know, thanks.