Published on

What is npx?

Authors
  • avatar
    Name
    hwahyeon
    Twitter

npm is a package manager that handles the installation, update, removal, and management of Node.js packages, primarily focusing on dependency management. However, npx stands for Node Package eXecute and allows you to temporarily download and execute packages without installing them. This means npx can run commands once and delete the package automatically afterward.

For example, npx create-react-app my-app temporarily downloads the create-react-app package to set up a new project and removes it once the command is complete.