Package Details: svgo 2.8.0-1

Git Clone URL: (read-only, click to copy)
Package Base: svgo
Description: Tool for optimizing SVG files
Upstream URL:
Licenses: MIT
Conflicts: nodejs-svgo
Provides: nodejs-svgo
Replaces: nodejs-svgo
Submitter: flacks
Maintainer: alerque
Last Packager: simon04
Votes: 25
Popularity: 0.024729
First Submitted: 2018-07-24 18:35 (UTC)
Last Updated: 2021-11-13 21:50 (UTC)

Required by (6)

Sources (1)

Latest Comments

alerque commented on 2021-08-18 05:13 (UTC)

@Tjuh That looks like something is wrong with your system, not this package. I compiled this the other day and just did it again now to check. In a clean chroot using makechrootpkg this builds just fine (if you want a really easy way to build that way install devtools then run extra-x86_64-build instead of makepkg to build). As for your system, perhaps reinstall npm / nodejs?

Tjuh commented on 2021-08-17 23:20 (UTC)

Won't build;

==> Starting package()...
/home/tjuh/Desktop/svgo/PKGBUILD: line 17: 20040 Segmentation fault      (core dumped) npm install -g --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz"
==> ERROR: A failure occurred in package().
==> Removing installed dependencies...

simon04 commented on 2021-03-27 09:36 (UTC)

Thanks, fixed in 2.2.2-2 (what a lucky number) –

eugene commented on 2021-03-23 16:16 (UTC)

npm install line should not have --user root as new guidelines suggest

flipflop97 commented on 2021-03-23 14:42 (UTC)


Same issue with package semver

1ace commented on 2021-03-20 11:18 (UTC)

This package installs a bunch of files in /usr/lib/node_modules/root/ (as well as the normal /usr/lib/node_modules/svgo/), which conflicts with vscode-html-languageserver for instance as that package tries to do the same; I'm not sure if this "root" module is really a thing that should be installed ("root" may very well be a placeholder name), but I'm guessing neither packages should be doing this :)

PanisSupraOmnia commented on 2019-04-25 20:36 (UTC) (edited on 2019-04-25 20:44 (UTC) by PanisSupraOmnia)

Correct me if I'm wrong, but shouldn't the npm install line have --user root passed to it, per the Arch wiki? The current PKGBUILD causes the files to be owned by the installing user.

Edit: Also, you specify that the license is MIT; however, Arch takes MIT as a special case of a custom license, in that you need to install the license in the PKGBUILD because it has a copyright line. See the Arch wiki for details. I happened to notice these issues because I ran namcap on the package.

tensor5 commented on 2018-02-09 17:05 (UTC)

I've seen this issue in other npm packages, it didn't show up in my build though.

Calimero commented on 2018-02-09 14:35 (UTC) (edited on 2018-02-09 14:39 (UTC) by Calimero)

I wanted to ask for a fix of the permission issues: there are lots of files and directories with mode 777. But installing a second time fixes that, I'm not sure what's happening.

tensor5 commented on 2017-11-17 10:51 (UTC)

@Enverex, do you have that permission mismatch only on /usr/bin?

Enverex commented on 2017-11-16 15:40 (UTC)

Also worth fixing this... warning: directory permissions differ on /usr/bin/ filesystem: 755 package: 777

JP-Ellis commented on 2017-05-30 01:20 (UTC)

@tensor5, could you either update the PKGBUILD or disown it? It's been flagged out-of-date since October last year :/

krevedko commented on 2015-08-29 12:28 (UTC)

Thank you for your answer! I've found the root cause: svgo >= 0.5.1 breaks svg-fonts by default.

bchretien commented on 2015-08-29 05:31 (UTC)

@krevedko: works for me. $ svgo -i test.svg -o out.svg Done in 373 ms! 170.614 KiB - 48.2% = 88.369 KiB Have you tried with another SVG file? It may be due to some SVG features that are not properly supported by svgo.

krevedko commented on 2015-08-28 11:17 (UTC)

Hmm, all latest versions >= 0.5.1 including 0.5.6 outputs empty svg files for me. Looks like, i've build something wrong... Could you please confirm or refute this issue? $ svgo -i transport.svg -o transport3.svg Done in 546 ms! 493.805 KiB - 100% = 0.04 KiB

bchretien commented on 2015-08-05 16:03 (UTC)

@krevedko: done, thanks!

krevedko commented on 2015-08-05 14:19 (UTC)

Please add "npm" to makedepends. Thanks.