In order to build frontend sources on Windows 7 with gulp.js I have a package.json file with node_modules dependencies defined in it:
{
  "name": "custom-repo-name",
  "version": "1.0.0",
  "description": "",
  "main": "gulpfile.js",
  "directories": {
    "doc": "doc"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "gulp-concat": "^2.5.2",
    "gulp-stylus": "^2.0.3",
    "gulp-uglify": "^1.2.0",
    "rimraf": "^2.3.4"
  },
  "devDependencies": {
    "gulp": "^3.9.0",
    "gulp-concat": "^2.5.2",
    "gulp-rev": "^4.0.0",
    "gulp-stylus": "^2.0.3",
    "gulp-uglify": "^1.2.0",
    "gulp-watch": "^4.2.4",
    "rimraf": "^2.3.4"
  }
}
For some reason when I run
npm install
the dependencies are installed locally into .\node_modules folder and gulp command runs properly.
But when I run
npm install -g,
as I can see from the output, a part of dependencies is missing to be installed and running gulp command fails with an error of failed load of dependencies (gulp-uglify.js for instance).
What's wrong?
