0

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
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │   ├─┬ [email protected]
│ │   │ ├── [email protected]
│ │   │ └── [email protected]
│ │   ├── [email protected]
│ │   ├── [email protected]
│ │   └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │   └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │   └── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│   ├── [email protected]
│   ├── [email protected]
│   └── [email protected]
└── UNMET DEPENDENCY socket.io-redis@^0.1.4

npm ERR! missing: minimist@^1.1.0, required by [email protected]
npm ERR! missing: express@^4.10.4, required by [email protected]
npm ERR! missing: redis@^0.12.1, required by [email protected]
npm ERR! missing: socket.io-redis@^0.1.4, required by [email protected]

now i understand they are missing . how do i install them ?
i did npm update -g

user63898
  • 29,839
  • 85
  • 272
  • 514

1 Answers1

1

I just setup an empty project with your dependencies and did a simple npm install. Everything worked as expected - maybe this is already the solution.

If it does not work just try this - sometimes helps:

rm -rf node_modules
npm install

You also have some outdated packages:

Package            Current  Wanted  Latest  Location
browser-sync         1.9.2   1.9.2  2.10.1  test
browserify           7.1.0   7.1.0  12.0.1  test
del                  1.2.1   1.2.1   2.2.0  test
gulp-jasmine         1.0.1   1.0.1   2.2.1  test
gulp-jshint         1.12.0  1.12.0   2.0.0  test
gulp-minify-css     0.3.13  0.3.13   1.2.2  test
jasmine-reporters    1.0.2   1.0.2   2.0.7  test
redis               0.12.1  0.12.1   2.4.2  test
socket.io-redis      0.1.4   0.1.4   1.0.0  test

If you want to update all of those you should read this: How do I update each dependency in package.json to the latest version?

I hope this helps.

Community
  • 1
  • 1
Patrick Meier
  • 444
  • 1
  • 6
  • 14