我已经安装了以下软件包:
https://github.com/JeffreyWay/laravel-elixir-stylus
它正在工作。现在我想使用https://github.com/peterramsing/lost lost with stylus。所以我添加了它,但它不起作用。
我的package.json:
{
"private": true,
"scripts": {
"prod": "gulp --production",
"dev": "gulp watch"
},
"devDependencies": {
"bootstrap-sass": "^3.3.0",
"gulp": "^3.9.1",
"laravel-elixir": "^5.0.0",
"laravel-elixir-stylus": "^1.0.1",
"postcss": "^5.0.21",
"poststylus": "^0.2.3"
}
}
gulpfile.js
var elixir = require('laravel-elixir');
var postStylus = require('poststylus');
elixir(function(mix) {
mix.stylus('app.styl', null, {
use: [postStylus(['lost', 'postcss-position'])]
});
});
当我尝试 npm install 时,我收到错误:
npm WARN unmet dependency /Users/Janssen/Code/forum/node_modules/autoprefixer-core requires postcss@'~4.1.12' but will load
npm WARN unmet dependency /Users/egen/Code/forum/node_modules/postcss,
npm WARN unmet dependency which is version 5.0.21
npm WARN unmet dependency /Users/egen/Code/forum/node_modules/gulp-autoprefixer requires postcss@'^4.1.5' but will load
npm WARN unmet dependency /Users/egen/Code/foru
当我运行 gulp 时,我收到:
Cannot find module 'postcss-position'
我应该怎么办?