Hi,
I'm stuck with this problem in a couple of days and I can't find a solution yet.
My objective is install Bootstrap from Elixir.
I'll try to detail every step.
O.S.: Ubuntu 14.04 on Digital Ocean droplet (but the same error occurs on my Virtual Box machine with the same O.S.)
Laravel 5.1
Installing node.js:
$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ sudo apt-get install -y build-essential
On the project diretory:
$ sudo npm install --global gulp
No errors or problem until this step, but when I try to run the command above:
$ sudo npm install
npm WARN optional dep failed, continuing fsevents@1.0.5
npm WARN peerDependencies The peer dependency vueify-insert-css@^1.0.0 included from vueify will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency babel-runtime@^5.8.25 included from vueify will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency vue-hot-reload-api@^1.2.0 included from vueify will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN optional dep failed, continuing fsevents@1.0.5
I ignored the warnings and edited and uncommented the app.scss file:
$ sudo nano resources/assets/sass/app.scss
Then I run the gulp:
$ gulp
module.js:339
throw err;
^
Error: Cannot find module 'lodash'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/var/www/marte/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/lib/globule.js:14:9)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
Consulting this forum and Google, I tryed to reinstall the npm:
$ sudo rm -rf node_modules/
$ sudo npm cache clean
But I got the exact same errors.
Then I read a bit more and tryed to run the npm with this parameter:
$ rm -rf node_modules/
$ npm cache clean
$ npm install --no-bin-links
npm WARN optional dep failed, continuing fsevents@1.0.5
npm WARN peerDependencies The peer dependency vueify-insert-css@^1.0.0 included from vueify will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency babel-runtime@^5.8.25 included from vueify will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency vue-hot-reload-api@^1.2.0 included from vueify will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN optional dep failed, continuing fsevents@1.0.5
The error on gulp it's different now, instead 'lodash' module, it cannot find the 'isarray' module:
$ sudo gulp
module.js:339
throw err;
^
Error: Cannot find module 'isarray'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/var/www/marte/node_modules/gulp/node_modules/gulp-util/node_modules/multipipe/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_readable.js:25:15)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
I really don't know what to do. I really need help! :)
Thanks in advance.