samcogan's avatar

npm ERR! cb() never called!

When I try to run NPM install to setup Elixir I am getting this error:

npm ERR! cb() never called!

If I remove Elixor from the package.json it does install OK, so it appears to be something with that causing the issue. I am using the defualt package.json that came with Laravel:

{
  "private": true,
  "scripts": {
    "prod": "gulp --production",
    "dev": "gulp watch"
  },
  "devDependencies": {
    "bootstrap-sass": "^3.3.7",
    "gulp": "^3.9.1",
    "jquery": "^3.1.0",
    "laravel-elixir": "^6.0.0-14",
    "laravel-elixir-vue-2": "^0.2.0",
    "laravel-elixir-webpack-official": "^1.0.2",
    "lodash": "^4.16.2",
    "vue": "^2.0.1",
    "vue-resource": "^1.0.3"
  }
}
0 likes
3 replies
ejdelmonico's avatar
Level 53

What system are you on? I have never seen that error on a Mac or Linux system.

Ok, I researched it for you...you have an old node version and need to upgrade to the node 7.3.0 and npm 4.1.

samcogan's avatar

This is on a Windows system. I thought I had upgraded but I'll doible check that.

samcogan's avatar

Yep, manually updating the Node version to 7.30 fixed it, thanks very much!

Please or to participate in this conversation.