DEV Community

Cover image for Lesser known npm CLI commands

Lesser known npm CLI commands

Christopher Kade on July 10, 2019

We all know and use npm start, npm audit, npm init and many more npm commands on a daily basis, but there are quite a few of them that are underuti...
Collapse
 
briwa profile image
briwa

One trivia for npm is that npm isntall is a legit working command, as an alias to npm install πŸ˜‚For details: github.com/npm/npm/issues/2933#iss...

Collapse
 
analizapandac profile image
Ana Liza Pandac

Hahaha, today I learned πŸ˜†

Collapse
 
christopherkade profile image
Christopher Kade

This made my day, thanks for sharing πŸ˜„

Collapse
 
analizapandac profile image
Ana Liza Pandac • Edited

Great list Christopher. I haven't used some of these commands yet so this is really good to know.

I wanted to add:

npm version <major|minor|patch>

as well for bumping up the version of your app in your package.json for semantic versioning. I honestly didn't know that you could automatically do this until recently 😲

Collapse
 
christopherkade profile image
Christopher Kade

Thank you Ana Liza !

Agreed, npm version is a good one to know, thanks for sharing it.

Collapse
 
dylajwright profile image
Dylan

Wow new to this site. Impressed as articles like this usually are the same shared commands.