NPM

NPM is a DOS command, I think released by the NODE group. I think it’s an installation tool for programmers. I use it to install programs on my computer.

For example I was looking for a typescript definition file for google analytics. I found this website: https://www.npmjs.com/package/@types/google.analytics. It gave me an npm command to install it. it went something like this:

1
2
cd \d\dev\node_modules
npm install --save typescriptdefs/google.analytics

what it did was created a folder named
\d\dev\node_modules\google.analytics
and placed the files I needed.

npm –version

This gives you the version of npm you are running.

npm install -g npm@latest

installs the latest version of node.js