InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

CasperJS tutorials

  • Install casperjs on Mac
  • Install casperjs on Ubuntu
  • Use CasperJS to automate testing
 
  • Home
  • > Tutorials
  • > Javascript
  • > CasperJS

How to install casperjs on Mac

on Feb 26, 2016

CasperJS on Mac can be installed using Brew or node npm. We’ll use npm to install casperjs in this tutorial. Here are the steps to install casperjs on Mac command line.

  1. First install node and npm on Mac if not already installed.
  2. Get info about casperjs package

    $ npm info casperjs
    { name: 'casperjs',
      description: 'A navigation scripting & testing utility for PhantomJS and SlimerJS',
      'dist-tags': { latest: '1.1.0-beta5' },
      versions: [ '1.1.0-beta2', '1.1.0-beta3', '1.1.0-beta4', '1.1.0-beta5' ],
      maintainers: [ 'istr ', 'n1k0 ' ],
    ...
    ...
    
  3. Install casperjs using npm in global mode

    $ npm install -g casperjs
    $ npm ls -g | grep casperjs
    ├── casperjs@1.1.0-beta5
    
  4. Check if casperjs is working

    $ casperjs --version
    1.1.0-beta5
    
  5. Check where is casperjs installed

    $ which casperjs
    /usr/local/bin/casperjs
    $ ls -l /usr/local/bin/casperjs
    lrwxrwxr-x  1 user1  admin  41 Feb 26 00:18 /usr/local/bin/casperjs -> ../lib/node_modules/casperjs/bin/casperjs
    

Suggested posts:

  1. How to install phantomjs on Ubuntu Linux
  2. How to install node (node.js) on Mac
  3. How to install phantomjs on Mac
  4. bower – installation and quick start guide
  5. Mac brew – how to find latest available package without installing
  6. Chrome memory usage – some tips to keep it under control
  7. bash – how to use regex in if condition
  8. CSS – style for element having two classes (both)
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged CasperJS, Mac, Mac Command Line, Node.js, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress