Closed olgabot closed 9 years ago
Have you tried npm install bionode-sra -g
?
Usually when you want to use a Node module as a command line tool you use -g
to install it globally. If you want to install it locally in a project folder to use the JS API instead, then you don't use -g
and do var sra = require(bionode-sra)
in your code. However, even if you installed it locally, you can still find the bionode-sra
executable in ./node_modules/.bin/bionode-sra
and use it as a CLI tool.
You shouldn't need to mess with PATH and chmod.
I've just tried it in zsh and it worked (btw, I use fish).
Yes, that was the issue, thanks!
Olga Botvinnik PhD Program in Bioinformatics and Systems Biology Gene Yeo Laboratory http://yeolab.ucsd.edu/yeolab/Home.html | Sanford Consortium for Regenerative Medicine University of California, San Diego www http://olgabotvinnik.com | blog http://blog.olgabotvinnik.com/ | github http://github.com/olgabot | twitter http://twitter.com/olgabot | linkedin http://www.linkedin.com/in/olgabotvinnik
2014-12-02 6:08 GMT-08:00 Bruno Vieira notifications@github.com:
Have you tried npm install bionode-sra -g? Usually when you want to use a Node module as a command line tool you use -g to install it globally. If you want to install it locally in a project folder to use the JS API instead, then you don't use -g and do var sra = require(bionode-sra) in your code. However, even if you installed it locally, you can still find the bionode-sra executable in ./node_modules/.bin/bionode-sra and use it as a CLI tool. You shouldn't need to mess with PATH and chmod. I've just tried it in zsh and it worked (btw, I use fish http://fishshell.com).
— Reply to this email directly or view it on GitHub https://github.com/bionode/bionode-sra/issues/3#issuecomment-65235093.
I'm able to
npm install
this module, and I recently switched to oh-my-zsh as my shell instead of bash, and I can't seem to use it, despite putting the$HOME/node_modules
into my path. The full log is below.Full log