I have recently upgraded my website from Bootstrap 2 to Bootstrap 3. In compiling the bootstrap.less, I am running into errors with the semi-colon separated parameters. The fix is apparently to upgrade to the most recent version of Lesscss. I have tried the following:
This doesn't do the trick. What needs to be done to properly update lesscss?
Try to use this code:
npm update less
npm update -g less
If you just want to upgrade, use Slawa Eremkin's answer.
If you really want to see what's going on, open a node.js command prompt and run the following:
// list installed modules
npm list
npm list -g
// uninstall less
npm uninstall less
npm uninstall -g less
// test
npm list
npm list -g
// install
npm install less
npm install -g less
// test again
npm list
npm list -g
Done. Note: the -g flag is for globally install modules. I decided to uninstall and re-install both globally and otherwise, although I am not sure that this is required.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With