svg / svgo

⚙️ Node.js tool for optimizing SVG files
https://svgo.dev/
MIT License
21k stars 1.39k forks source link

cleanupIDs.js:123 for (var ID of referencesIDs) #593

Closed alentsch closed 8 years ago

alentsch commented 8 years ago

svgo 0.7.0 fails with the following error message on my Ubuntu 14.04.2 installation:

$ svgo bsb.svg 

/usr/local/lib/node_modules/svgo/plugins/cleanupIDs.js:123
    for (var ID of referencesIDs) {
                ^^

Usage/help shows properly when calling svgo without arguments. Installation was done with "npm install -g svgo" I tried with two different files, one created with Inkscape and the other from https://en.wikipedia.org/wiki/Scalable_Vector_Graphics - same error.

Please advise what I can do :-)

GreLI commented 8 years ago

SVGO requires Node.js 0.12 or higher. Unfortunately, Ubuntu has outdated version of Node.js, so you have to upgrade it. See https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions for instructions.

alentsch commented 8 years ago

Thank you GreLI, this solved my problem!!!

GreLI commented 8 years ago

You're welcome.