在 Ubuntu 网络服务器上安装 Readium Cloud Reader
Install Readium Cloud Reader on a Ubuntu web server
所以我一直在尝试安装 readium cloud reader。我 运行 遇到了一些我解决的问题,我认为我安装正确但我似乎无法让我的任何解压缩或压缩的 epub 工作。
以下是我遵循的安装说明:
- 安装Node.js(具体取决于您的操作系统)
- 使用命令行安装 G运行t 构建工具:
npm install -g grunt-cli
从命令行 运行:git clone https://github.com/readium/readium-js-viewer.git
从命令行 运行 cd readium-js-viewer
- 从命令行 运行
git submodule update --init --recursive
- 从命令行 运行
npm install
(在 readium-js-viewer
目录)
- 从命令行 运行
cd readium-js
- 从命令行 运行
npm install
(第二次在
readium-js 目录)
在此之后,我将目录更改为父目录,然后我 运行 g运行t 命令 grunt cloudReader
但我收到一条错误消息,指出没有 g运行t 文件。我认为 运行 宁最后的 npm 安装也会从 package.json 生成 g运行t 文件。我查看了 npm 调试日志,但看不到任何有意义的错误消息。有人可以帮忙吗?
您需要使用 npm 运行 命令,因为 g运行t 未用作项目的任务 运行ner。您可以在 package.json
.
的 scripts
属性 中看到命令列表
我按照存储库中 Git Initialisation 下的说明进行操作,并在本地 运行 进行了设置:
# replace "BRANCH_NAME" with e.g. "develop"
$ git clone --recursive -b BRANCH_NAME https://github.com/readium/readium-js-viewer.git readium-js-viewer
$ cd readium-js-viewer
$ git submodule update --init --recursive
$ git checkout BRANCH_NAME && git submodule foreach --recursive "git checkout BRANCH_NAME"
$ cd readium-js/ && npm update && cd ../ # had to update as some dependencies were missing
$ npm run http # launch the development server
不过我不知道如何打包或添加内容。 epub_library.opds
似乎以某种方式更新了 epub_content
中的书籍出现在书架中。
所以我一直在尝试安装 readium cloud reader。我 运行 遇到了一些我解决的问题,我认为我安装正确但我似乎无法让我的任何解压缩或压缩的 epub 工作。
以下是我遵循的安装说明:
- 安装Node.js(具体取决于您的操作系统)
- 使用命令行安装 G运行t 构建工具:
npm install -g grunt-cli
从命令行 运行:
git clone https://github.com/readium/readium-js-viewer.git
从命令行 运行
cd readium-js-viewer
- 从命令行 运行
git submodule update --init --recursive
- 从命令行 运行
npm install
(在 readium-js-viewer 目录) - 从命令行 运行
cd readium-js
- 从命令行 运行
npm install
(第二次在 readium-js 目录)
在此之后,我将目录更改为父目录,然后我 运行 g运行t 命令 grunt cloudReader
但我收到一条错误消息,指出没有 g运行t 文件。我认为 运行 宁最后的 npm 安装也会从 package.json 生成 g运行t 文件。我查看了 npm 调试日志,但看不到任何有意义的错误消息。有人可以帮忙吗?
您需要使用 npm 运行 命令,因为 g运行t 未用作项目的任务 运行ner。您可以在 package.json
.
scripts
属性 中看到命令列表
我按照存储库中 Git Initialisation 下的说明进行操作,并在本地 运行 进行了设置:
# replace "BRANCH_NAME" with e.g. "develop"
$ git clone --recursive -b BRANCH_NAME https://github.com/readium/readium-js-viewer.git readium-js-viewer
$ cd readium-js-viewer
$ git submodule update --init --recursive
$ git checkout BRANCH_NAME && git submodule foreach --recursive "git checkout BRANCH_NAME"
$ cd readium-js/ && npm update && cd ../ # had to update as some dependencies were missing
$ npm run http # launch the development server
不过我不知道如何打包或添加内容。 epub_library.opds
似乎以某种方式更新了 epub_content
中的书籍出现在书架中。