AnyChart NodeJS module Prerequisite is incomplete

Words
122
Reading
1 min
Listen
Play
9y

Expected behavior

This message should not appear while executing code that requires this library, if you followed the install instructions.

'Warning! Please install rsvglib utility. (https://github.com/AnyChart/AnyChart-NodeJS)'

Actual behavior

As the library test to see if the prerequisite are installed with this code:

childProcess = spawn('rsvg-convert');
childProcess.on('error', function(err) {
  if (err.code === 'ENOENT') {
    console.warn('Warning! Please install rsvglib utility. (https://github.com/AnyChart/AnyChart-NodeJS)');
  }
});

It is clear that rsvg-convert is needed but it could not be found even after installing the repos prerequisites found here.

How to reproduce

Got the error while running aggroed@aggroed project Agx:

git clone git@github.com:aggroed/Agx.git
cd Agx
npm install
npm start
  • Operating system: Ubuntu 17.10

Recording Of The Bug

The bug occurs even after running the install command: apt-get install imagemagick librsvg2-dev

agx.png

The Proposed fix

While they list apt-get install imagemagick librsvg2-dev as a prerequisite, they need one more: librsvg2-bin

After installing the missing package, the Agx from aggroed@aggroed ran as expect.



Posted on Utopian.io - Rewarding Open Source Contributors

AnyChart NodeJS module Prerequisite is incomplete | Ecency