如何在Laravel 5.3中编译使用指南针的scss文件?

时间:2016-08-04 16:51:52

标签: npm sass compass-sass npm-install laravel-5.3

这是Laravel 5.3的gulpfile.js

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

require('laravel-elixir-vue');

elixir(function(mix) {
    mix.sass('app.scss')
       .webpack('app.js');
});

它可以编译scss和js文件,但是,如果scss文件使用指南针,如何编译它?

我尝试了“laravel-elixir-sass-compass”:“^ 0.5.0”,但无法成功安装。

$ npm install
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.0.0-nightly2016080329e49fc286
npm ERR! npm  v3.10.5

npm ERR! cb is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.0.0-nightly2016080329e49fc286
npm ERR! npm  v3.10.5

npm ERR! cb is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     D:\wnmp\www\laravel-5-3-demo\npm-debug.log

我该怎么办?

0 个答案:

没有答案