Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Optimizing SVG

Kabolobari Benakole
PLUS
Kabolobari Benakole
Courses Plus Student 14,278 Points

Command Not Found Using "svgo truck.svg" in Terminal

What might I have done wrong here:

kb-mac:~ kabolobari$ cd downloads/ kb-mac:downloads kabolobari$ cd graphics/ kb-mac:graphics kabolobari$ svgo truck.svg -bash: svgo: command not found kb-mac:graphics kabolobari$

So, SVGO refuses to work. I did install it using npm install -g svgo

kb-mac:~ kabolobari$ npm install -g svgo /usr/local/Cellar/node/7.0.0/bin/svgo -> /usr/local/Cellar/node/7.0.0/lib/node_modules/svgo/bin/svgo svgo@0.7.2 /usr/local/Cellar/node/7.0.0/lib/node_modules/svgo ├── sax@1.2.2 ├── whet.extend@0.9.9 ├── colors@1.1.2 ├── mkdirp@0.5.1 (minimist@0.0.8) ├── coa@1.0.1 (q@1.4.1) ├── js-yaml@3.7.0 (esprima@2.7.3, argparse@1.0.9) └── csso@2.3.1 (source-map@0.5.6, clap@1.1.2)