Introduction to Execute npm Package Binaries with the npx Package Runner

Elijah Manor
InstructorElijah Manor
Share this video with your friends

Social Share Links

Send Tweet
Published 6 years ago
Updated 5 years ago

In this course we are going to be talking about a little utility called npx. If you have npm version 5.2 or above, then you already have npx installed on your machine. It enables you to play around with node packages in a way that wasn’t really easy before.

Have you ever wanted to run a locally installed node_module, but you didn’t really want to jump through hoops to do so? Or how about playing around with a package from the npm registry, but you don’t really want to install it globally yet? Well, npx is the tool for those things. You can even play around with experimental GitHub branches with npx, and so much more.

I find myself using npx all the time. It’s one of those tools, where at first you think, "Ohh that’s simple", but then the more you know about it, it can do so much more than you thought at first. So, sit back and enjoy learning about npx.

Instructor: [00:01] In this course, we're going to be talking about a little utility called npx. If you use Node, then chances are high that you also use the npm package manager that comes with Node. You probably use it to install packages, update packages, run npm scripts, and lots more.

[00:17] However, there's a little tool that comes baked into npm, if you have version 5.2 or above, called npx, that you may or may not know about. It's a handy little utility that enables you to play around with Node packages in a way that wasn't really easy before.

[00:33] Have you ever wanted to run a locally installed Node module, but you really didn't want to jump through hoops to do so? How about playing around with a package from the npm registry, but you really don't want to install it globally just yet?

[00:47] Npx is the tool for these things. You could even play around with an experimental GitHub branch with npx and so much more. I find myself using npx all the time.

[00:58] It's one of those tools where you think at first, "Oh, that's simple." The more that you know about it, it could do so much more than you thought at first. Sit back and enjoy learning about npx.

egghead
egghead
~ 28 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today