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

JavaScript

Using Angular CLI on my Linux machine, but it says "command 'ng' not found". How to go about it?

Node v8.10 NPM v3.5.2 Ubuntu 18.04

2 Answers

Hi Pranav,

You don't provide any context, so I'm not sure how ng was supposed to get onto your system, or what it's needed by. You can install it on Ubuntu 18.04 by typing sudo apt install ng-common.

Hope that helps

Alex

Trying to start a new Angular app using angular cli installed globally

Maybe install the angular cli globally? npm install -g @angular/cli

Did install angular cli globally, still..

Can you try installing it again just to double check? Make sure it's not giving giving you an error on the install.