Laravel 执行 Gulp 命令出错

按照 http://t.laravel-china.org/laravel-tutorial/5.1/3.2 教程, 当执行> gulp 命令时出错.

Laravel 执行 Gulp 命令出错: 

E:\Laravel\FirstLaravel>gulp

[10:27:34] Using gulpfile E:\Laravel\FirstLaravel\gulpfile.js
[10:27:34] Starting 'default'...
[10:27:34] Starting 'sass'...
[10:27:34] 'sass' errored after 36 ms
[10:27:34] Error: Missing binding E:\Laravel\FirstLaravel\node_modules\node-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x


Found bindings for the following environments:
  - Windows 64-bit with Node.js 6.x


This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to build the binding for your current environment.
    at module.exports (E:\Laravel\FirstLaravel\node_modules\node-sass\lib\binding.js:15:13)
    at Object.<anonymous> (E:\Laravel\FirstLaravel\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (E:\Laravel\FirstLaravel\node_modules\gulp-sass\index.js:187:21)
[10:27:34] Error in plugin 'run-sequence(sass)'
Message:
    Missing binding E:\Laravel\FirstLaravel\node_modules\node-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x


Found bindings for the following environments:
  - Windows 64-bit with Node.js 6.x


This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to build the binding for your current environment.
Stack:
Error: Missing binding E:\Laravel\FirstLaravel\node_modules\node-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x


Found bindings for the following environments:
  - Windows 64-bit with Node.js 6.x


This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to build the binding for your current environment.
    at module.exports (E:\Laravel\FirstLaravel\node_modules\node-sass\lib\binding.js:15:13)
    at Object.<anonymous> (E:\Laravel\FirstLaravel\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (E:\Laravel\FirstLaravel\node_modules\gulp-sass\index.js:187:21)

[10:27:34] Finished 'default' after 46 ms


解决方法见这里:

https://github.com/sass/node-sass/issues/1527


具体做法: 

执行命令 > npm rebuild node-sass

之后执行 > gulp 就很正常了.


没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试