phantomjs - Make a executable file work anywhere mac os -


i installed phantomjs in mac. thought when input in terminal phantomjs xx.js should work. however, returns

-bash: phantomjs: command not found

then found file phantomjs located in

/usr/local/cellar/phantomjs/2.0.0/bin

only if in directory, can use command phantomjs. question how can make command phantomjs work in other locations, /usr/documents/... thanks!


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -