Eric Christensen
Eric Christensen

Reputation: 21

jsx command not found on mac terminal

Problem:

Relevant information:

Environment information:

   $ node -v
    v0.12.4
   $ npm
    2.10.1

Best of google:

Adtional Notes:

Solution to my unique problem:

Upvotes: 1

Views: 1349

Answers (1)

Mike Atkins
Mike Atkins

Reputation: 1591

run this:

npm config get prefix

that will give you a clue as to where your global npm modules are installed. you need to add the bin directory under the directory returned by the above to your path. for example, it might return /usr/local, in which case you should add /usr/local/bin to your PATH. You could just do:

export PATH=$PATH:$(npm config get prefix)/bin

Upvotes: 4

Related Questions