InfoHeap
Tech tutorials, tips, tools and more
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 Mac
  2. NodeJS – npm beginner tutorial
  3. How to use CasperJS to automate website testing
  4. How to install node (node.js) on Mac
  5. How to install node.js on Ubuntu Linux
  6. How to install phantomjs on Ubuntu Linux
  7. How to install casperjs on Mac
  8. How to install AWStats on Ubuntu Linux
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged CasperJS, Node.js, Tutorials, Ubuntu Linux

Follow InfoHeap

facebook
twitter
googleplus
  • Browse site
  • Article Topics
  • Article archives
  • Recent Articles
  • Contact Us
  • Omoney
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | 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

Copyright © 2023 InfoHeap.

Powered by WordPress