Tag » Posts Tagged ‘node.js’

How to uninstall npm packages?

To uninstall a npm package we use the npm uninstall command.

npm uninstall [<@scope>/]<package>[@<version>]

To uninstall a globally installed package we need to use the -g or –global option:

npm uninstall -g [<@scope>/]<package>[@<version>]

Continue reading »

How to find the latest stable npm version and upgrade npm?

In order to find the npm latest stable version, you need to visit the npm documentation web page and check the footer.

Earlier it used to mention the version number in footer but now it provides a link to the GitHub hosted repository https://github.com/npm/cli/releases/latest; so, you can directly check go to this link and check the latest stable npm version available.

Continue reading »

Should I install npm package locally or globally?

If I am beginner with npm, then this question will definitely come to my mind. To get an answer to this, you should ask the following questions to yourself:

  • How will I use the installed npm package?
  • Will I use it as a dependency in my module or will I use it as a command line tool?


Install locally


If you are going to include the package (say “slick-carousel”) using statement like “require” in node.js and then use it in your module.

npm install <package_name>

Continue reading »

Understanding & Installing Node.js and NPM

We have been using client side/front end JavaScript to build dynamic pages where we embed the JavaScript code in HTML file, react to events and make AJAX calls for fetching data from the server.

Node.js allows you to write server side and networking applications with JavaScript.

Node.js is an open-source, cross-platform run-time environment that executes JavaScript code server-side. It is build on built on Chrome’s V8 JavaScript engine. It uses an asynchronous event-driven model and is designed for writing scalable internet applications, notably web servers.

Continue reading »

Back to top