NPM Helper Commands when dealing with errors and issues

A collection of helpful commands

npm help <command> – e.g. npm help cache will give details of that functions description, details, configuration and similar functions. When viewing this information press ‘q’ to quit.

npm clear cache – will clear npm cache. Useful after a failed install of npm packages.

npm list – lists all npm packages, both failed and successful