安装node.js
cmd内输入npm i less -g
编译less.less
cmd里内输入 lessc less.less css.css
webstorm
npm install -g less出现以下错误,npm config set proxy null也没有用怎么破
npm ERR! Error: connect ECONNREFUSED
npm
ERR!
at errnoException (net.js:878:11)
npm
ERR! at Object.afterConnect [as oncomplete] (net.js:869:19)
npm ERR! { [Error: connect ECONNREFUSED]
npm ERR! code:
'ECONNREFUSED',
npm ERR! errno:
'ECONNREFUSED',
npm ERR! syscall: 'connect'
}
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See:
'npm help config'
为啥还要用Dreamweaver呢?
改为 sudo npm install -g yo 试一下