DEV Community

Discussion on: How to run multiple Node and Angular versions simultaneously

Collapse
 
weasnerb profile image
Brian Weasner

Instead of creating scripts in every project of yours to run the local version of the angular cli, you can use the npx package! You can install it globally and then whenever you are inside a project with node modules you can run "npx the-tool-name" and it will run the tool local to the project. (In this instance if "the-tool-name" was ng, it would run the local version of the angular cli without the need to add ng as a script in the package.json)

Collapse
 
patricepeartree profile image
Patrícia Pereira

npx is really an useful tool, thanks for the tip!