Skip to content

Node.js

Mark Friedrich edited this page Jul 21, 2017 · 19 revisions

Node JS

If you are not planning to change the codebase, you don´t have to read on.


PATHFINDER comes along with a simple, Gulp based, build process. There are two predefined Gulp tasks that will help you:

  • default task is designed for "continuous development" environment
  • production task is designed for "production deployment" environment

Gulp is a NPM module, therefore we need to install Node.js with NPM first.

1. Install Node.js >=v6.0.1 with NPM >=v3.8.6

Hint: The Windows installer of Node.js will install NPM as well. You don´t have to install NPM afterwards.

2. Install npm-check-updates [optional]

To keep all your node packages up2date, you should install this module. We do this installation global (-g) in order to easy access the "check for updates" function from the SHELL.

$ npm install -g npm-check-updates

This will global install npm-check-updates

3. Install all required node modules from the /package.json

$ npm install

This will install all required modules and their dependencies local ([PROJECT_ROOT]/node_modules/)

4. Check installation

  • $ node -v should show the current Node.js version (e.g. v6.1.0)
  • $ npm -v should show the current NPM version (e.g. v3.8.6)
  • $ npm list --depth=0 will list all local module installations. The output should look something like this:
Clone this wiki locally