title: Gulp error: Path must be a string
body: <p>I've got a problem with gulp.js.</p>
  
  <p>Steps to reproduce:</p>
  
  <pre><code>$ composer global require "laravel/installer=~1.1"
  $ laravel new myproject
  $ cd myproject
  $ php artisan serve 
  $ npm install
  $ npm rm bootstrap-sass —save
  $ npm install foundation-sites —save
  $ npm install motion-ui —save
  </code></pre>
  
  <p>then I copy </p>
  
  <pre><code>_settings.scss 
  </code></pre>
  
  <p>from</p>
  
  <pre><code>node_modules/foundation-sites/scss/settings 
  </code></pre>
  
  <p>to </p>
  
  <pre><code>resources/assets/sass
  </code></pre>
  
  <p>in app.scss then i put every Foundation import</p>
  
  <p>and finally I write Elixir task as reported here:</p>
  
  <p><a href="http://zecipriano.com/en/2015/12/laravel-elixir-and-zurb-foundation-revisited/" rel="nofollow">http://zecipriano.com/en/2015/12/laravel-elixir-and-zurb-foundation-revisited/</a></p>
  
  <p>But when I launch gulp from terminal:</p>
  
  <pre><code> path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));
  </code></pre>
  
  <p>... don't know what to do.</p>
  
  <p>Everything updated, so I think it's not a version problem.</p>
  
  <p><strong>[EDIT]</strong></p>
  
  <pre><code>$ node -v
  
  v6.8.0
  </code></pre>
  
  <p>and here's my gulpfile.js:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const elixir = require('laravel-elixir');
  
  require('laravel-elixir-vue-2');
  
  /*
   |--------------------------------------------------------------------------
   | Elixir Asset Management
   |--------------------------------------------------------------------------
   |
   | Elixir provides a clean, fluent API for defining some basic Gulp tasks
   | for your Laravel application. By default, we are compiling the Sass
   | file for our application, as well as publishing vendor resources.
   |
   */
  
  elixir(function(mix) {
  
      // Sass
      var options = {
          includePaths: [
              'node_modules/foundation-sites/scss',
              'node_modules/motion-ui/src'
          ]
      };
  
      mix.sass('app.scss', null, options);
  
      // Javascript
      var jQuery = '../../../node_modules/jquery/dist/jquery.js';
      var foundationJsFolder = '../../../node_modules/foundation-sites/js/';
  
      mix.scripts([
         jQuery,
         foundationJsFolder + 'foundation.core.js',
         // Include any needed components here. The following are just examples.
         foundationJsFolder + 'foundation.util.mediaquery.js',
         foundationJsFolder + 'foundation.util.keyboard.js',
         foundationJsFolder + 'foundation.util.timerAndImageLoader.js',
         foundationJsFolder + 'foundation.tabs.js',
         // This file initializes foundation
         'start_foundation.js'
      ]);
  
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any ideas?</p>
  
  <p>Thank you in advance.</p>