Hands-On Server-Side Web Development with Swift
上QQ阅读APP看书,第一时间看更新

Installing the Kitura CLI on Mac

Similar to Vapor Toolbox, you can install the Kitura CLI to simplify the process of creating Kitura applications.

With Homebrew on your Mac, go ahead and install the Kitura CLI:

# Step 3a: Install Kitura on macOS
$ brew install ibm-swift/kitura/kitura

The output is as follows:

==> Installing dependencies for ibm-swift/kitura/kitura: node
==> Installing ibm-swift/kitura/kitura dependency: node
==> Downloading https://homebrew.bintray.com/bottles/node-11.2.0.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring node-11.2.0.high_sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
/usr/local/Cellar/node/11.2.0: 3,936 files, 47MB
==> Installing ibm-swift/kitura/kitura
==> Downloading https://registry.npmjs.org/kitura-cli/-/kitura-cli-0.0.12.tgz
######################################################################## 100.0%
==> npm install -ddd --global --build-from-source --cache=/Users/fyeung1/Library/Caches/Homebrew/npm_cache --prefix=/usr/local/Cellar/kitura/0.0.12/libexec /pri
/usr/local/Cellar/kitura/0.0.12: 676 files, 4.1MB, built in 9 seconds
==> Caveats
==> node
Bash completion has been installed to:
/usr/local/etc/bash_completion.d