i have node.js application which have package.json file in the root , in there i can see i have :
"dependencies": {
"minimist": "^1.1.0",
"express": "^4.10.4",
"redis": "^0.12.1",
"socket.io": "^1.2.1",
"socket.io-redis": "^0.1.4"
},
"devDependencies": {
"gulp": "^3.8.10",
"gulp-jasmine": "^1.0.1",
"gulp-concat": "^2.4.2",
"gulp-jshint": "^1.9.0",
"gulp-myth": "^1.0.2",
"gulp-minify-css": "^0.3.11",
"gulp-uglify": "^1.0.2",
"vinyl-source-stream": "^1.0.0",
"jasmine-reporters": "^1.0.1",
"browserify": "^7.0.0",
"browser-sync": "^1.7.2",
"del": "^1.1.0",
"read": "^1.0.5"
},
i understand that node js need those js libs to run , when i do : npm ls
i get :
├── UNMET DEPENDENCY express@^4.10.4
├── UNMET DEPENDENCY minimist@^1.1.0
├── UNMET DEPENDENCY redis@^0.12.1
├─┬ socket.io@1.3.7
│ ├─┬ debug@2.1.0
│ │ └── ms@0.6.2
│ ├─┬ engine.io@1.5.4
│ │ ├── base64id@0.1.0
│ │ ├── debug@1.0.3
│ │ ├─┬ engine.io-parser@1.2.2
│ │ │ ├── after@0.8.1
│ │ │ ├── arraybuffer.slice@0.0.6
│ │ │ ├── base64-arraybuffer@0.1.2
│ │ │ ├── blob@0.0.4
│ │ │ └── utf8@2.1.0
│ │ └─┬ ws@0.8.0
│ │ ├─┬ bufferutil@1.2.1
│ │ │ ├── bindings@1.2.1
│ │ │ └── nan@2.1.0
│ │ ├── options@0.0.6
│ │ ├── ultron@1.0.2
│ │ └── utf-8-validate@1.2.1
│ ├─┬ has-binary-data@0.1.3
│ │ └── isarray@0.0.1
│ ├─┬ socket.io-adapter@0.3.1
│ │ ├── debug@1.0.2
│ │ ├── object-keys@1.0.1
│ │ └─┬ socket.io-parser@2.2.2
│ │ └── debug@0.7.4
│ ├─┬ socket.io-client@1.3.7
│ │ ├── backo2@1.0.2
│ │ ├── component-bind@1.0.0
│ │ ├── component-emitter@1.1.2
│ │ ├── debug@0.7.4
│ │ ├─┬ engine.io-client@1.5.4
│ │ │ ├── component-inherit@0.0.3
│ │ │ ├── debug@1.0.4
│ │ │ ├─┬ has-cors@1.0.3
│ │ │ │ └── global@2.0.1
│ │ │ ├── parsejson@0.0.1
│ │ │ ├── parseqs@0.0.2
│ │ │ ├── parseuri@0.0.4
│ │ │ └── xmlhttprequest@1.5.0
│ │ ├── has-binary@0.1.6
│ │ ├── indexof@0.0.1
│ │ ├── object-component@0.0.3
│ │ ├─┬ parseuri@0.0.2
│ │ │ └─┬ better-assert@1.0.2
│ │ │ └── callsite@1.0.0
│ │ └── to-array@0.1.3
│ └─┬ socket.io-parser@2.2.4
│ ├── benchmark@1.0.0
│ ├── debug@0.7.4
│ └── json3@3.2.6
└── UNMET DEPENDENCY socket.io-redis@^0.1.4
npm ERR! missing: minimist@^1.1.0, required by app@0.1.5
npm ERR! missing: express@^4.10.4, required by app@0.1.5
npm ERR! missing: redis@^0.12.1, required by app@0.1.5
npm ERR! missing: socket.io-redis@^0.1.4, required by app@0.1.5
now i understand they are missing .
how do i install them ?
i did npm update -g