---
title: "Discussion on \"Master npm in Under 10 Minutes or Get Your Money Back\" | Hashnode"
description: "Discussion on \"Master npm in Under 10 Minutes or Get Your Money Back\". We’ve all heard about Gulp, Grunt, Webpack or whatever tool that's “cool” at the time you're reading this article. All these tools help with automating your project's build tasks in one way or another.\nWe all know that JavaScript is an interpreted la..."
url: "https://hashnode.com/posts/master-npm-in-under-10-minutes-or-get-your-money-back/5c334357f087928b75833b47"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Master npm in Under 10 Minutes or Get Your Money Back](https://hashnode.com/post/master-npm-in-under-10-minutes-or-get-your-money-back?utm_source=hashnode&utm_medium=feed)

We’ve all heard about Gulp, Grunt, Webpack or whatever tool that's “cool” at the time you're reading this article. All these tools help with automating your project's build tasks in one way or another. We all know that JavaScript is an interpreted la...

Jan 7, 2019 · hashnode.com  
Updated Jan 11, 2019  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#npm](https://hashnode.com/tag/npm)

## Written by

[Fernando Doglio](https://hashnode.com/@deleteman)

@deleteman · Madrid, Spain

  
[View profile](https://hashnode.com/@deleteman)

Dev Advocate - ex Technical Manager - Technical Author - All around geek

Hi there! I'm Fernando, Dev Advocate for OpenReplay and Tech Writer. I write books, publish articles and tweet about nerdy topics!

## Responses 4

Markdown supported · ⌘↵ to post

[Marco Alka](https://hashnode.com/@maruru)

[Jan 7, 2019](https://hashnode.com/posts/master-npm-in-under-10-minutes-or-get-your-money-back/5c334357f087928b75833b47/comment/5c33586d50e41c16028a2319)

Neat tips, thank you for your article!

I just found one little mistake:

> “~”, which although not an exact match, will only allow updates on minor versions,

Did you mean patch versions? The explanation is correct, however the terminology is wrong.

[Fernando Doglio](https://hashnode.com/@deleteman)

[Jan 7, 2019](https://hashnode.com/posts/master-npm-in-under-10-minutes-or-get-your-money-back/5c334357f087928b75833b47/comment/5c33586d50e41c16028a2319#reply-5c33591450e41c16028a231e)

Yes, you're right. I tend to use patch and minor interchangeably in this context. That is totally my bad.

[Kamen Minkov](https://hashnode.com/@kamen)

[Jan 7, 2019](https://hashnode.com/posts/master-npm-in-under-10-minutes-or-get-your-money-back/5c334357f087928b75833b47/comment/5c33578750e41c16028a2314)

One thing I might add to #2:

```
npm config set save-exact true
```

This will make any invocations of `npm i package --save` and `npm i package --save-dev` nail down the latest currently available version of `package` without making you have to remove the caret manually. And yes, `npm i` is a default alias for `npm install` (as is `npm isntall` while I'm at it).

[Fernando Doglio](https://hashnode.com/@deleteman)

[Jan 7, 2019](https://hashnode.com/posts/master-npm-in-under-10-minutes-or-get-your-money-back/5c334357f087928b75833b47/comment/5c33578750e41c16028a2314#reply-5c33597350e41c16028a2321)

Nice tips! I was aware of the alias for `i`, but I didn't know about `isntall`. Very useful alias I imagine :) Thanks!

[Kamen Minkov](https://hashnode.com/@kamen)

[Jan 7, 2019](https://hashnode.com/posts/master-npm-in-under-10-minutes-or-get-your-money-back/5c334357f087928b75833b47/comment/5c33578750e41c16028a2314#reply-5c335c778e02165a599a9a92)

Yup, I suppose someone on the NPM team has made enough typos to include this by default :D

[Mike Albert](https://hashnode.com/@malbert78)

[Jan 7, 2019](https://hashnode.com/posts/master-npm-in-under-10-minutes-or-get-your-money-back/5c334357f087928b75833b47/comment/5c33519e50e41c16028a22f8)

Nice compilation. Do you think `npm` can replace `gulp` or `webpack` as a build tool?

[Fernando Doglio](https://hashnode.com/@deleteman)

[Jan 7, 2019](https://hashnode.com/posts/master-npm-in-under-10-minutes-or-get-your-money-back/5c334357f087928b75833b47/comment/5c33519e50e41c16028a22f8#reply-5c3353fb50e41c16028a230a)

Thanks for reading! I do, but like I always preach: developers need to think what their needs are before choosing the right tool for the job. If you have very complex build needs and prefer to keep it all in the JS world, it might be a good idea to go with one of the usual tools. But if you don't mind having a poliglot setup, you can benefit from the power of other tools that you'll gain access to (such as direct bash access).

In the end, it's all up to the developer, there is nothing you can't do with any language, it's just a matter of preference. The point of this article, is to remind Node developers that there is another way. That's all.

[Joy Dasgupta](https://hashnode.com/@jtyu345)

[Jan 7, 2019](https://hashnode.com/posts/master-npm-in-under-10-minutes-or-get-your-money-back/5c334357f087928b75833b47/comment/5c33471167d364c4577ee3cc)

Thanks for the article! Loved all the tips, especially the "AutoComplete" one. :)

[Fernando Doglio](https://hashnode.com/@deleteman)

[Jan 7, 2019](https://hashnode.com/posts/master-npm-in-under-10-minutes-or-get-your-money-back/5c334357f087928b75833b47/comment/5c33471167d364c4577ee3cc#reply-5c33545a50e41c16028a230e)

Thanks for reading!
