Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
removed canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
welkinwong committed Jul 10, 2017
1 parent f2ba2c6 commit 37350d7
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,12 @@ $ npm install --production
$ npm start
```

推荐安装在 Linux 系统上,若是在 Windows 下安装,需先行安装 Canvas 依赖(请参考官网安装帮助教程)

```bash
$ npm install canvas --msvs_version=2015
```
(其中 2015 是你安装图形库依赖时安装的 Visual Studio 版本,目前最新的是 2015)

完成后访问 http://localhost:3000/admin/install 进入安装程序

**环境要求:**

1. [Node.js](https://www.nodejs.org) v4.4.3 及以上
2. [Mongodb](https://www.mongodb.org) v3.0.6 及以上
3. [Cairo](http://www.cairographics.org) v1.8.6 及以上(图形库)

如果你没有安装过 Cairo,你可以使用操作系统的命令来快速安装

OS | Command
----- | -----
OS X | `brew install pkg-config cairo libpng jpeg giflib`
Ubuntu | `sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++`
Fedora | `sudo yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel`
Solaris | `pkgin install cairo pkg-config xproto renderproto kbproto xextproto`
Windows | [Windows 下安装教程](http://www.nodercms.com/help/installation/windows-xia-an-zhuang-tu-xing-ku-cairo-jiao-cheng)

Mac OS X El Capitan 用户:如果你在安装时遇到编译错误等,运行以下命令 `xcode-select --install`,详情请查看:[Stack Overflow](http://stackoverflow.com/a/32929012/148072)

## 重新安装
1. 清空数据库
Expand Down

0 comments on commit 37350d7

Please sign in to comment.