Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.17 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.17 KB

NodeJS Captcha

Installation

It requires Node.js v8+ to run. Install the dependencies and devDependencies and start the server.

$ git clone https://github.com/rupachowrasia/node-captcha.git
$ cd node-captcha
$ npm install
$ npm start

Screen-shots

Home Page

screenshot from 2018-12-06 10-57-21

Troubleshoot

While npm install you may encounter some error, because captcha module requires canvas as one of its dependency which in turn requires several library to install. Plesae refer this page - https://www.npmjs.com/package/canvas

If your npm install fails, just refer the page above and install pacakges as per your OS type and your are done. Now again do npm install, this time it will not fail. Please note - you don't need to install canvas or captcha module separately, installing packages from link above will work.

I encountered some error during npm install, since I am using ubuntu this command worked for me.

sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev