DEV Community

Devi
Devi

Posted on

1

NPM vs NPX

NPM:

=> Node Package Manager

=> As mentioned in name NPM is for install, delete, update JavaScript packages on your machine.

=> To install a package locally on a certain project we can use the comment

npm install package-name

NPX:

=>Node Package Executer

=> NPX is a tool that use to execute packages directly, without installing them.

=>npx comes bundled with npm version 5.2+ (or as a standalone package).

=>To execute the locally installed package package-name all you need to do is type:

npx package-name

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay