Author -  Sai gowtham

How to check if an npm package installed globally or locally

In this tutorial, we are going to learn about how to check whether an npm package (or module) is installed globally or locally using the npm list command.

Checking globally installed packages

To check for all globally installed packages and its dependencies, run the npm list command followed by the -g flag.

npm list -g

This above command prints the all globally installed packages in tree view.

To view the globally installed packages, without their dependencies use:

npm list -g --depth=0

You can also check if a specific package is installed globally or not using the npm list -g followed by package name.

npm list -g express

Checking locally installed packages

To check for all locally installed packages and their dependencies, navigate to the project folder in your terminal and run the npm list command.

npm list

To view the locally installed packages, without their dependencies use:

npm list --depth=0

You can also check if a specific package is installed locally or not using the npm list command followed by package name.

npm list react

Css Tutorials & Demos

How rotate an image continuously in CSS

In this demo, we are going to learn about how to rotate an image continuously using the css animations.

How to create a Instagram login Page

In this demo, i will show you how to create a instagram login page using html and css.

How to create a pulse animation in CSS

In this demo, i will show you how to create a pulse animation using css.

Creating a snowfall animation using css and JavaScript

In this demo, i will show you how to create a snow fall animation using css and JavaScript.

Top Udemy Courses

JavaScript - The Complete Guide 2023 (Beginner + Advanced)
JavaScript - The Complete Guide 2023 (Beginner + Advanced)
116,648 students enrolled
52 hours of video content
$14.99 FROM UDEMY
React - The Complete Guide (incl Hooks, React Router, Redux)
React - The Complete Guide (incl Hooks, React Router, Redux)
631,582 students enrolled
49 hours of video content
$24.99 FROM UDEMY
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
203,937 students enrolled
31.5 hours of video content
$14.99 FROM UDEMY