Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.