These are chat archives for less/less.js

1st
Sep 2018
John
@GreeeneJD
Sep 01 2018 14:59

Hi. I have one simple question
I've never used npm. And in one day the time is come. So I just want to install lessc and use it. But for I need to install this piece of (any rude word) npm. Seem easy, right?
So ...

apt update
apt install npm -y

331mb it's insane, but let's proceed

The last step just to install 'less' package. Seems we are close to the end.....

npm install -g less

ahahhah

npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! errno ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! request to https://registry.npmjs.org/less failed, reason: Hostname/IP does not match certificate's altnames: Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-09-01T13_50_13_648Z-debug.log

What i have to do with this?
Are you seriously use npm?
I google for a solution. Maybe I'm stupid. Maybe I'm blind. But it's not f.... normal.

Thank you. I'm in a rage

PS. 'less' is probably a cool tool, but i have no chance to test it
dimtabu
@taburetkin
Sep 01 2018 15:41
usually there is a special build system based on preferred lib
it can be grunt, gulp, webpack or whatever
then you set up your environment and start to develop.
there are plenty boilerplates for making things easy.
there is also browser lessjs compiler, so you just can embed it into any html file and use it directly
you can find how to do that on http://lesscss.org/
dimtabu
@taburetkin
Sep 01 2018 15:47
its in case you don't know that
node is for npm approach
John
@GreeeneJD
Sep 01 2018 22:25
@taburetkin Thank you!
I'm trying to avoid using unnecessary js on the web page. That's why I want to compile less to css on serer side(actually on the build step)