From the course: Learning npm: A Package Manager

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Introduction to npx

Introduction to npx

- Have you ever experienced installing CLI tools from MPM packages that you used only once in order to create new projects? Good examples are Yo Man or the Create React app tool or the Angular CLI tool. What can result from installing these tools is package pollution in your global directories. And most of us rarely go checking on what is installed globally, if ever. The main purpose of creating NPX was to resolve these issues. And as you'll see, there are many use NPX can be used, and we'll explore a few. Also make sure you have MPM version 5.2 or above to have access to NPX. So let's go ahead and stop our server. I'm going to go and do control c, and then I'm going to clear this and let's do an example in this project. Let's say for example, we want to use Angular CLI and create a new app. Well in this case we would have to go completely out of this container. So I suggest you do this on a brand new…

Contents