要安装CoffeeScript的话,会需要先安装Node.js以及Node.js的套件管理工具 – npm (Node Package Manager)。

以下是在Mac系统下的安装过程。如果在安装过程中出现权限不足的错误讯息,请使用sudo暂时取得安装的权限。

安装Node.js。官网:http://nodejs.org/

> git clone git://github.com/joyent/node.git
> cd node
> ./configure
> make
> sudo make install

安装npm。官网:http://npmjs.org/

> curl http://npmjs.org/install.sh | sh

安装CoffeeScript

> brew install coffee-script

验证安装结果:

> coffee -v
CoffeeScript version 1.3.3

相关文章:

  • 2021-06-19
  • 2021-12-15
  • 2021-07-04
  • 2021-09-22
  • 2021-12-14
  • 2022-02-07
  • 2022-01-09
  • 2021-09-11
猜你喜欢
  • 2021-09-06
  • 2022-02-08
  • 2022-12-23
  • 2021-11-19
  • 2021-10-05
  • 2021-04-19
  • 2021-07-31
相关资源
相似解决方案