Showing posts with label NodeJS. Show all posts
Showing posts with label NodeJS. Show all posts

Tuesday, 1 August 2017

How to check the node, npm, typescript (tsc) versions in your machine

To check current versions of different packages running on your machine:

For Node:
node -v

For NPM:
npm -v

For TypeScript:
tsc -v

To install above packages in MacOS, check here.

Tuesday, 24 November 2015

Building the Development Environment for Laravel

* Download and install the latest Composer
                https://getcomposer.org/Composer-Setup.exe

 Once installed, check the version by typing:
                $ composer -V

* Download and install the latest Laravel
$ composer global require "laravel/installer=~1.1"

* Install the NodeJS (globally)
                Go to the NodeJS website and download the stable version.
                https://nodejs.org/en

                OR

                Direct Link: https://nodejs.org/dist/v5.1.0/node-v5.1.0-x64.msi
                Then, Run the app with all default setting.
                And, Restart the machine.

                To check the NodeJs version:
                $ npm -v

* Download and install the latest Gulp (globally)
$ npm install -g gulp

Now, let’s install the Gulp into project dependency.

Create a package.json (if it is not already exist):
$ vi package.json 

* To install Bower
Bower is a command line utility. Install it with npm.
Bower requires node, npm and git.

$ npm install -g bower

To install Angular Material

                $ bower install  angular-material --save

(--save) will save the package on vendor directory.