Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having some issues today setting up type script. Heres what I have done...

$ npm install -g typescript
*Package Downloaded

Open Terminal and run

$ tsc
-bash: /usr/local/bin/tsc: Permission denied
$ sudo tsc 
sudo: tsc: command not found

Any suggestions on whats gone wrong here?

As per questions below

Liams-MacBook-Pro:~ Liam$ ls -l /usr/local/bin/tsc

-rw-r--r--@ 1 Liam  staff  679220 18 May 13:03 /usr/local/bin/tsc
share|improve this question
What does ls -l /usr/local/bin/tsc say? – slhck May 18 '13 at 12:19
@slhck Updated question – LiamB May 18 '13 at 13:02
up vote 2 down vote accepted

The file is – for some reason – not marked as executable. To change this, simply run:

chmod +x /usr/local/bin/tsc

If this is an ongoing problem with things you install through npm, consider filing a bug report on their GitHub issue tracker.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .