Open green-coder opened 8 years ago
I've a similar problem on OS X EL Capitan
$ npm i -g torrential
$ torrential
env: node\r: No such file or directory
it may be line endings problem as discussed here.
hey @green-coder
As per this article http://howtonode.org/introduction-to-npm
you don't want to install as sudo
The article talks about using changing the owner of /usr/local
but I see your install is using
/usr
for some reason.
So you may want to run sudo chown -R $USER /usr
to fix the sudo issue.
It's also weird that it doesn't see torrential
Can you confirm /usr/bin is in your PATH by giving the output of
echo $PATH
Thanks
@dzlab So the last push was from a windows machine and that may have go in the way I have just published 1.0.4 from a *nix box so that should be sorted now Please try a reinstall
On my Ubuntu machine, nodejs
was probably installed using sudo, it is in /user/bin
:
vincent@ghost:~/code/torrential$ which node
/usr/bin/node
The article you linked is 5 years old and many persons left some alarming comments about its content. I don't think it should be used as a reference.
This is how I just resolved the issue (using the version 1.0.4
which you just released):
vincent@ghost:~/code/torrential$ npm install torrential
torrential@1.0.4 node_modules/torrential
├── concat-stream@1.5.1 (inherits@2.0.1, typedarray@0.0.6, readable-stream@2.0.5)
├── which@1.2.1 (is-absolute@0.1.7)
├── parse-torrent@4.1.0 (magnet-uri@4.2.3, parse-torrent-file@2.1.4)
├── workshopper-exercise@2.5.3 (after@0.8.1, visualwidth@0.0.1, chalk@0.4.0, through2@0.4.2, tuple-stream@0.0.2, split@0.3.3, xtend@2.1.2, i18n-core@1.3.3)
├── request@2.67.0 (aws-sign2@0.6.0, forever-agent@0.6.1, tunnel-agent@0.4.2, oauth-sign@0.8.0, caseless@0.11.0, is-typedarray@1.0.0, stringstream@0.0.5, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, tough-cookie@2.2.1, node-uuid@1.4.7, qs@5.2.0, combined-stream@1.0.5, bl@1.0.0, mime-types@2.1.8, form-data@1.0.0-rc3, hawk@3.1.2, http-signature@1.1.0, har-validator@2.0.3)
└── workshopper@2.7.0 (map-async@0.1.1, xtend@3.0.0, visualwidth@0.0.1, mkdirp@0.3.5, chalk@0.4.0, colors-tmpl@0.1.1, optimist@0.6.1, i18n-core@1.3.3, terminal-menu@2.1.1, msee@0.1.2)
vincent@ghost:~/code/torrential$ npm bin -g
/usr/bin
vincent@ghost:~/code/torrential$ npm bin
/home/vincent/code/torrential/node_modules/.bin
vincent@ghost:~/code/torrential$ ./node_modules/.bin/torrential
@No9 thanks, now it works perfectly for me.
I am a nodejs-beginner and I don't know how to use your program. I followed the steps in usage but nothing happens. (I added 'sudo' because it won't install otherwise).
I am on Ubuntu. Please help.