DEV Community

loading...

Discussion on: Continuously Integrating Angular with Azure DevOps

Collapse
raymsdev profile image
Rayms

Good tutorial thanks!

You should use npm script instead of npx commands to make sure you use the version written in the package.json.

Collapse
frederikprijck profile image
Frederik Prijck Author

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.

Collapse
raymsdev profile image
Rayms

Ok, Good to know, thanks.