hasen's tech life

Twitter: @hasen

gulpで"Cannot find module 'colone'"というエラーが出たので.

gulpで"Cannot find module 'colone'"というエラーが出たので.

# error
$ node --version
> v0.12.7
$ npm install
$ gulp
> module.js:318
> throw err;
> ^
> Error: Cannot find module 'clone'
> at Function.Module._resolveFilename (module.js:316:15)
> at Function.Module._load (module.js:258:25)
> at Module.require (module.js:345:17)
> at require (module.js:364:17)
> at Object. (/PATH/TO/node_modules/laravel-elixir/node_modules/gulp-util/node_modules/vinyl/index.js:2:13)
> at Module._compile (module.js:410:26)
> at Object.Module._extensions..js (module.js:428:10)
> at Module.load (module.js:335:32)
> at Function.Module._load (module.js:290:12)
> at Module.require (module.js:345:17)
> at require (module.js:364:17)

$ rm -rf node_modules

$ nodebrew use v0.10.38
> use v0.10.38
$ npm install
# success
$ gulp
> [08:27:48] Using gulpfile /PATH/TO/gulpfile.js
> [08:27:48] Starting 'default'...
> [08:27:48] Starting 'sass'...
> [08:27:48] Running Sass: resources/assets/sass/app.scss
> [08:27:48] Finished 'default' after 293 ms
> [08:27:48] gulp-notify: [Laravel Elixir] Sass Compiled!
> [08:27:48] Finished 'sass' after 354 ms