Let me start out by giving you the command to list all your globally installed npm packages:
npm list -g --depth=0
And now for the backstory:
VS Code had to reload once it was installed and I recieved an error loading ESLint. The error said I was missing the eslint-react-plugin package.
The only problem is that I had installed a number of packages for ESLint. I couldn’t remember the exact names at this point and my terminal history was erased from restarting VS Code.
I needed a listing of my globally installed npm packages. So I issued the command from the beginning of this article. This gave me a nice list of all my global npm packages along with their version. I finally issued an npm uninstall command on the ESLint packages and moved on with my life.
Maybe I will revisit ESLint one day if I start getting into React.
The npm list results look something like:
C:\Program Files\nodejs +-- @email@example.com +-- firstname.lastname@example.org +-- email@example.com +-- firstname.lastname@example.org +-- email@example.com +-- firstname.lastname@example.org +-- email@example.com +-- firstname.lastname@example.org `-- email@example.com
EDIT: After doing some ES2015 & ES6 coding using JSHint, I might have to switch over to ESLint. None of the new ECMAScript features are recognized by JSHint! 🤔