0
votes

I installed Laravel with Scotch Box and I want to use gulp so I can automate some tasks but when I try to install Elixir with npm install I get the following output (created a gist, because it was too long to paste here): npm install output.

The only thing that keeps returning in all my attempts to fix this error is this line:

npm WARN optional dep failed, continuing [email protected]

I already tried to use npm install --no-bin-links and I also tried to remove the node_modules folder from my project and run npm cache clean and then npm install again. Both of these methods didn't work either.

The only thing that works is npm install bootstrap-sass. This will install my bootstrap modules but when I try to install Elixir with npm install laravel-elixir I get the same error.

My package.json looks like this:

{
  "private": true,
  "devDependencies": {
    "gulp": "^3.8.8"
  },
  "dependencies": {
    "laravel-elixir": "^3.0.0",
    "bootstrap-sass": "^3.0.0"
  }
}

Node version in my VM

vagrant@scotchbox:~$ node -v
v4.0.0

Npm version

vagrant@scotchbox:~$ npm -v
2.14.8

Gulp version

vagrant@scotchbox:~$ gulp -v
[17:42:40] CLI version 3.9.0
[17:42:40] Local version 3.9.0
1

1 Answers

1
votes

Don't run npm install in your VM/scotchbox but run it on your local system instead to solve this. Start gulp from there and you're good to go.