AnyChart NodeJS module Prerequisite is incomplete

in #utopian-io7 years ago (edited)

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 project Agx:

git clone [email protected]: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 ran as expect.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hello, you received a boost courtesy of @steemdunk! Steem Dunk is an automated curation platform that is easy and free for use by everyone. Need an instant boost? Send 0.200 SBD with your full post url as the memo to @steemdunk for an upvote. Join us at https://steemdunk.xyz

Upvote this comment to support the bot and increase your future rewards!

@helo, I like your contribution to open source project, so I upvote to support you.

That's very kind of you. I have one question for you. Bot or Not?

I think It's a bot. It's commenting every posts in 1 minute!

@helo j'ai vraiment essayé de comprendre 😂😂
I am kidding

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @helo I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63501.83
ETH 2650.23
USDT 1.00
SBD 2.81