LoginSignup
6
7

More than 5 years have passed since last update.

CasperJSをnpmでローカルにインストールして使う

Posted at

CasperJSを試してみるなんて記事を書いたんですが、casperjs以外にphantomjsをローカルにインストールしてあげればグローバルにインストールする必要がないことがわかったのでメモです。

Terminal
$ npm install casperjs phantomjs
package.json
{
  "private": true,
  "scripts": {
    "start": "casperjs --version"
  }
}
Terminal
$ npm start
1.1.0-beta3

頻繁に使うわけではない人はこちらの方が楽なのかもしれません。

6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7