romgrk / termrk

Terminal for atom, using pty.js & term.js
MIT License
33 stars 7 forks source link

Run mocha and other such scripts #14

Closed jacinto123 closed 9 years ago

jacinto123 commented 9 years ago

Not sure if this is planned or even in the scope of the project but I would love to be able to run mocha or nodemon.

romgrk commented 9 years ago

I tested mocha, didn't found any problem. Should work for nodemon. mocha test

jacinto123 commented 9 years ago

Maybe I am missing something but when I try and do it I get the following error:

screen shot 2015-05-27 at 10 27 24 pm

romgrk commented 9 years ago

It appears that node isn't found. Is it on your $PATH?

EDIT: Make sure node is installed globally, not just in your own user path.

jacinto123 commented 9 years ago

Is there a way I can add to my $PATH in this?

romgrk commented 9 years ago

No. That should be done in your ~/.profile. Something like this.

PATH=$PATH:/folder/with/node/bin