node-rsvg icon indicating copy to clipboard operation
node-rsvg copied to clipboard

Can't install rsvg

Open dandaka opened this issue 11 years ago • 10 comments

dandaka-mbp:html dandaka$ npm install rsvg npm WARN package.json [email protected] No repository field. npm http GET https://registry.npmjs.org/rsvg npm http 304 https://registry.npmjs.org/rsvg

[email protected] install /Users/dandaka/projects/oco-web/html/node_modules/rsvg node-gyp rebuild

/bin/sh: pkg-config: command not found gyp: Call to 'pkg-config --libs-only-l librsvg-2.0 cairo-png cairo-pdf cairo-svg' returned exit status 127. gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) gyp ERR! System Darwin 13.4.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/dandaka/projects/oco-web/html/node_modules/rsvg gyp ERR! node -v v0.10.26 gyp ERR! node-gyp -v v0.12.2 gyp ERR! not ok npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is most likely a problem with the rsvg package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls rsvg npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.4.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "rsvg" npm ERR! cwd /Users/dandaka/projects/oco-web/html npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.3 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/dandaka/projects/oco-web/html/npm-debug.log npm ERR! not ok code 0 dandaka-mbp:html dandaka$ node-gyp rebuild -bash: node-gyp: command not found dandaka-mbp:html dandaka$ npm owner ls rsvg npm http GET https://registry.npmjs.org/rsvg npm http 304 https://registry.npmjs.org/rsvg walling [email protected]

dandaka avatar Sep 23 '14 18:09 dandaka

I've installed RSVG with Homebrew. But it did't help. Still same output.

dandaka avatar Sep 23 '14 19:09 dandaka

I'm also getting this as well.

ghost avatar Oct 09 '14 22:10 ghost

Me too.

arianrashidi avatar Dec 01 '14 09:12 arianrashidi

+1 :(

kamilsk avatar Dec 23 '14 18:12 kamilsk

+1

leibnizli avatar Jan 02 '15 10:01 leibnizli

holy crap - me too... no solution in the horizon ?

gkathan avatar Feb 28 '15 17:02 gkathan

FWIW just uninstalling and reinstalling pkg-config via brew fixed this for me.

I also got an error that the post-install step did not succeed. Uninstalling and reinstalling libffi seemed to make that happy.

However I now am seeing issue #7. So.

patternleaf avatar Apr 10 '15 14:04 patternleaf

+1

ali-habibzadeh avatar Aug 05 '15 16:08 ali-habibzadeh

+1

codetker avatar Jun 09 '17 09:06 codetker

@patternleaf This worked for me also to insta librsvg, solving problems with cordova and sugarcrm mobile sdk

rissell avatar May 22 '18 18:05 rissell