Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Execute npm Package Binaries with the npx Package Runner

via egghead.io

Overview

You can’t be everywhere at once. Neither can node packages. But with a utility called npx — included in npm v5.2 and later — you can interact and run with node modules even if they’re not downloaded locally. The same is true for gists and remote branches of GitHub. As long as npm installed, your work can be wherever you are.
This course from Elijah Manor unlocks the power of the npx utility. Over 17 minutes, we will examine the npx package runner and look through various scenarios where the tool is helpful when running node packages from the command line. You’ll learn to use npm to:
test out various versions of a package
run packages without globally installing
run code directly from GitHub
make working with packages much easier

Syllabus

  • Introduction to Execute npm Package Binaries with the npx Package Runner
  • Use npx to run locally installed node modules
  • Use npx to Temporarily Install and Invoke a Package from npm
  • Test Different Node Module Versions with npx
  • Use npx to run commands with different Node.js versions
  • Execute npx commands with $npm_ Environment Variables
  • Execute Code from a Remote GitHub Branch with npx
  • Use npx to execute code from a GitHub gist

Taught by

Elijah Manor

Reviews

4.6 rating at egghead.io based on 275 ratings

Start your review of Execute npm Package Binaries with the npx Package Runner

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.