Installation of lodash

To install lodash, the first thing you need to grab is just a module name, which is lodash. Once you have that information, you're ready to install it.

Coming to Terminal, we'll run the npm install command. After installing, we'll specify the module, lodash. Now, this command alone would work; what we'll also do, though, is provide the save flag.

The npm install lodash command will install the module, and the save flag, -- (two) hyphens followed by the word save, will update the contents of the package.json file. Let's run this command:

npm install loadsh --save

The preceding command will go off to the npm servers and fetch the code and install it inside your project, and any time you install an npm module, it'll live ...

Get Learning Node.js Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.