How to Install canvas NPM Packages on Ubuntu / Debian

How to Install canvas software package in NPM Packages

canvas : Canvas graphics API backed by Cairo. You can installing canvas npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.

$ sudo npm install canvas
$ sudo npm install -g canvas

If want to update the canvas package execute the command as below,

$ sudo npm update canvas

Update package globally,

$ npm install -g canvas

Git clone:

$ sudo  git clone https://github.com/rektide/canvas.git
$ sudo  npm install -g ./canvas

canvas@1.6.7 /usr/lib/node_modules/canvas

How to remove canvas package :

You can uninstall or remove this package from your node_modules run the command as below,

$ sudo npm uninstall canvas

Basic Information of canvas NPM Package:

Package Name canvas
Version 1.6.7
Description Canvas graphics API backed by Cairo
Released Date 2017-09-08T09:36:43.811Z
Published by linusu
How to Learn https://www.npmjs.com/package/canvas/tutorial