Support of npm --dev configuration flag.

The "--production" flag has deprecated since the last NPM release.
Now we should set the [--dev](https://npmjs.org/doc/json.html#devDependencies) flag when installing packages on non-production environment.