Skip to content
scottxu edited this page Jan 12, 2019 · 3 revisions

你可以直接点击这里下载最新发行版本,也可以用以下命令安装NPM包。

> npm install openbse

如果你需要重新构建 BulletScreenEngine ,请执行以下命令。

> cd node_modules/openbse
> npm install
> npm run build

在构建之前,请确保已经全局安装Gulp,全局安装Gulp的命令如下。

> npm install --global gulp

提示

在使用 NPM 之前,需要安装 NodeJS。安装方法如下:

Mac:

方法一:Homebrew

完成 homebrew 的安装后

> brew install node

方法二:Git

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

Linux:

通过PPA安装

虽然 Chris Lea 的 PPA 曾经是安装 NodeJS 的最佳方法,但现在已经有些过时了。
安装 NodeJS 的推荐路径是使用 Joyent 的包管理器 向导。

Ubuntu

> curl --silent --location https://deb.nodesource.com/setup_6.x | sudo bash -
> sudo apt-get install --yes nodejs

Debian

> apt-get install curl
> curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
> apt-get install --yes nodejs

Red Hat

> curl --silent --location https://rpm.nodesource.com/setup | bash -
> yum -y install nodejs

Windows:

通过安装程序安装

下载 NodeJs 安装程序

Clone this wiki locally