安装lessc

安装lessc

(1)先安装nodejs

wget https://nodejs.org/dist/v4.3.1/node-v4.3.1-linux-x64.tar.xz

下载完成后解压:

tar xf node-v4.3.1-linux-x64.tar.xz 

解压之后,把bin设置到path中:

# added by huangwei

PATH=$PATH:/home/whuang/software/node/node-v4.3.1-linux-x64/bin

 

(2)测试安装是否成功:

[root@iZ25tti3rxdZ bin]# ./node  -v

v4.3.1

[root@iZ25tti3rxdZ bin]# ./npm -v

2.14.12

 

 

(3)安装lessc

npm install -g less

[root@iZ25tti3rxdZ chanjet]# npm install -g less

npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.

/home/whuang/software/node/node-v4.3.1-linux-x64/bin/lessc -> /home/whuang/software/node/node-v4.3.1-linux-x64/lib/node_modules/less/bin/lessc

[email protected] /home/whuang/software/node/node-v4.3.1-linux-x64/lib/node_modules/less

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected] ([email protected])

├── [email protected] ([email protected])

├── [email protected] ([email protected])

├── [email protected] ([email protected])

└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

 

你可能感兴趣的:(css)