Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check for installed packages that aren't in package.json

Is there a way to see what packages are installed in node_modules that aren't in package.json? I know that npm-check and dependency-check can be used to check modules currently in package.json, but I wonder if there is a way to look for packages that might just be extraneously installed.

like image 486
RichLitt Avatar asked May 18 '15 06:05

RichLitt


1 Answers

Use npm list or its shortcut npm ls to list installed packages.

Packages that not in the package.json will be marked as extraneous.

There is also npm ll or npm la which lists extended information about packages.

like image 133
raidendev Avatar answered Sep 21 '22 00:09

raidendev