Crunch / postcss-less

MIT License
35 stars 9 forks source link

Somehow had to manually add 'less' to package.json to get this to work? #7

Open uberbrady opened 7 years ago

uberbrady commented 7 years ago

I couldn't get this to work until I added less to my package.json, and re-ran npm install.

I have no idea what might be/might have been going wrong, but even after switching node.js versions, repeatedly deleting out node_modules, and doing whatever it was I could, I still couldn't get this to work - I kept getting a message saying: Cannot find module 'less'.

I finally, on a whim, decided to add 'less' to my devDependencies, and then it magically worked. And I can see that 'less' is prefectly clearly added to your own devDependencies, so I don't know if this is a bug in Node, or what it could be. Still, if that's something that's expected, then maybe that could be added to the README. And if it's not - then maybe there's a bug somewhere?

I'm happy to help try and track it down, just let me know what I can do to help.

Thanks for making a great package!

ben-eb commented 7 years ago

Also ran into this; I think less should be a regular dependency rather than a devDependency.

matthew-dean commented 7 years ago

Hmm, you're probably right.

felixsanz commented 7 years ago

@matthew-dean Do you accept/want a PR with the change? Or can you update the status on this please?

sntran commented 5 years ago

I believe the right place for less would be peerDependencies.