I've installed the following package:
https://github.com/JeffreyWay/laravel-elixir-stylus
And it's working. Now I want to use https://github.com/peterramsing/lost lost with stylus. So I've added that but it's not working.
My 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'])]
});
});
When I try npm install I receive the error:
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
When I run gulp I receive:
Cannot find module 'postcss-position'
What should I do?