搜尋

首頁  >  問答  >  主體

Laravel運行gulp的時候出錯

Laravel運行gulp的時候出錯,下面是錯誤訊息:

dell@DESKTOP-MVU77SM MINGW64 /d/wnmp/www/laravel-5-3-demo
$ node -v
v7.0.0-nightly2016080329e49fc286

dell@DESKTOP-MVU77SM MINGW64 /d/wnmp/www/laravel-5-3-demo
$ npm -v
3.10.5

dell@DESKTOP-MVU77SM MINGW64 /d/wnmp/www/laravel-5-3-demo
$ gulp --production
(node:6536) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[00:17:55] Using gulpfile D:\wnmp\www\laravel-5-3-demo\gulpfile.js
[00:17:55] Starting 'all'...
[00:17:55] Starting 'sass'...
[00:17:55] 'sass' errored after 33 ms
[00:17:55] Error: ENOENT: no such file or directory, scandir 'D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\vendor'
    at Error (native)
    at Object.fs.readdirSync (fs.js:944:18)
    at Object.getInstalledBinaries (D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\lib\extensions.js:119:13)
    at foundBinariesList (D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\lib\errors.js:20:15)
    at foundBinaries (D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\lib\errors.js:15:5)
    at Object.module.exports.missingBinary (D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\lib\errors.js:45:5)
    at Object.<anonymous> (D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\lib\index.js:15:28)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
[00:17:55] 'all' errored after 37 ms
[00:17:55] Error in plugin 'run-sequence(sass)'
Message:
    ENOENT: no such file or directory, scandir 'D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\vendor'
Details:
    errno: -4058
    code: ENOENT
    syscall: scandir
    path: D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\vendor
Stack:
Error: ENOENT: no such file or directory, scandir 'D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\vendor'
    at Error (native)
    at Object.fs.readdirSync (fs.js:944:18)
    at Object.getInstalledBinaries (D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\lib\extensions.js:119:13)
    at foundBinariesList (D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\lib\errors.js:20:15)
    at foundBinaries (D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\lib\errors.js:15:5)
    at Object.module.exports.missingBinary (D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\lib\errors.js:45:5)
    at Object.<anonymous> (D:\wnmp\www\laravel-5-3-demo\node_modules\node-sass\lib\index.js:15:28)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)

上面錯誤訊息主要表達了幾個意思?

下面是gulpfile.js:

var elixir = require('laravel-elixir');

require('laravel-elixir-vue');


elixir(function(mix) {
    mix.sass('app.scss')
       .webpack('app.js');
});
我想大声告诉你我想大声告诉你2754 天前411

全部回覆(1)我來回復

  • 世界只因有你

    世界只因有你2017-05-16 16:53:21

    npm 重建node-sass

    回覆
    0
  • 取消回覆