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 Ubuntu Linux

on Feb 26, 2016

CasperJS on Ubuntu linux can be installed using apt-get or node npm. We’ll use npm to install casperjs in this tutorial. Here are the steps to install casperjs on Ubuntu Linux.

  1. First install node and npm on Ubuntu 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

    $ sudo npm install -g casperjs
    $ npm ls -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/bin/casperjs
    $ ls -l /usr/bin/casperjs
    lrwxrwxrwx 1 root root 41 Jan 23 09:53 /usr/bin/casperjs -> ../lib/node_modules/casperjs/bin/casperjs
    

Suggested posts:

  1. How to install phantomjs on Ubuntu Linux
  2. How to install phantomjs on Mac
  3. jQuery toggleClass() examples
  4. Mac brew – how to find latest available package without installing
  5. How to install node (node.js) on Mac
  6. bower – installation and quick start guide
  7. Python re search vs match
  8. WordPress – query to dump all categories
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged CasperJS, Node.js, Tutorials, Ubuntu Linux
  • 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