To use npm command you need to install the nodeJS. (In windows)
If you want to install it in Mac or Linux please follow the tips bellow:
Angular 2 typescript Mac npm install: Angular typescript Mac npm install
Angular 2 typescript Linux npm install: Angular typescript Linux npm install
Let’s start then our installation in windows.
Go to the nodeJS website: https://nodejs.org/
Then go to download section: you will see something like in this picture:
download the current version and click to start the install wizard, click next
read the license agreement and click next
select the destination folder and then click next button
you can configure the installation options but if it’s your first time install please keep all by default, and click next
now click the install button and wait until the installation is done.
Click the finish button and it’s ok, you have installed nodeJS to start you angular and typescript project. Now you can run command like npm xxxxxxx , because npm is installed with nodeJS.
Open your terminal or command line (cmd.exe)
And run the command as shown in this picture.
start your project now with angular typescript :