DEV Community

Cover image for When to Use Global NPM Installs? Rarely

When to Use Global NPM Installs? Rarely

Tally Barak on October 09, 2019

It is widespread to go on a quick start page of some tool and utility and find instructions similar to this one: npm install - global cool-pac...
Collapse
 
tuwang profile image
TuWang

Oh no... what did I do all these time...

Collapse
 
opensas profile image
opensas

Nice article, just a small typo: npx -package @angular/cli ng new my-app should be npx --package @angular/cli ng new my-app or npx -p ... for short

Collapse
 
loujaybee profile image
Lou (πŸš€ Open Up The Cloud ☁️)

Very true, ever since it being able to reference the binary, I've been going through and cleaning these up in all the projects I come across. πŸ˜„

Collapse
 
loujaybee profile image
Lou (πŸš€ Open Up The Cloud ☁️)

Also, nice to see a fellow DX'er!

Collapse
Collapse
 
tallyb profile image
Tally Barak

You are absolutely right. This was the original intent, but lost in editing (I copied the article from a draft elsewhere). Thanks for the comment.