使用带有makefile的节点使用LESS编译Bootstrap

时间:2012-02-08 21:29:50

标签: node.js less twitter-bootstrap

我已阅读Bootstrap指令但无法获取要编译的文件。是否有更详细的教程,或者任何人都可以把我说得对,谢谢。

我打开一个终端并输入

npm install less

这似乎是安装文件,然后我将目录更改为我的Bootstrap目录的根目录并输入

make

我收到以下错误:

`make` is not recognised as an internal or external command

2 个答案:

答案 0 :(得分:1)

您获得的错误意味着未安装make。安装因您运行的操作系统而异。我会使用包管理器,例如用于mac的homebrew或macports,用于Ubuntu / Debian的apt-get。

该命令应如下所示:

sudo apt-get install make

答案 1 :(得分:1)

在Windows上获取:

  

less.js-windows

正确设置路径...... 然后运行:

  

lessc bootstrap.less