GithubHelp home page GithubHelp logo

Comments (5)

feross avatar feross commented on May 21, 2024

I just pushed a new version. Could you give that a try?

$ npm install webtorrent -g
$ webtorrent

from webtorrent.

aveeshkumar avatar aveeshkumar commented on May 21, 2024

Thx for the reply

I first try to uninstall sudo npm uninstall webtorrent and it geives:

npm WARN uninstall not installed in /home/aveesh/webtorrent/node_modules:

"webtorrent"

I then try npm install webtorrent -g

and after downloading it gave me a few errors so I tried it as suo

sudo npm install webtorrent -g

no errors

when i type in webtorrent

/usr/bin/env: node: No such file or directory

I try npm start webtorrent (either in home doir or after cd webtorrent)

also npm_debug has

0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/nodejs',
'/usr/bin/npm', 'start', 'webtorrent' ] 2 info using [email protected] 3 info
using [email protected] 4 error Error: ENOENT, open
'/home/aveesh/node_modules/webtorrent/package.json' 5 error If you need
help, you may report this log at: 5 error <
http://github.com/isaacs/npm/issues> 5 error or email it to: 5 error <
[email protected]> 6 error System Linux 3.13.0-24-generic 7 error
command "/usr/bin/nodejs" "/usr/bin/npm" "start" "webtorrent" 8 error cwd
/home/aveesh 9 error node -v v0.10.25 10 error npm -v 1.3.10 11 error path
/home/aveesh/node_modules/webtorrent/package.json 12 error code ENOENT 13
error errno 34 14 verbose exit [ 34, true ]

Sorry if I am bothering you - typing node gives this qhile nodejs gives me
a prompt
The program 'node' can be found in the following packages: * node *
nodejs-legacy

From the Desk of Aveesh Kumar

On Sun, May 18, 2014 at 2:23 PM, Feross Aboukhadijeh <
[email protected]> wrote:

I just pushed a new version. Could you give that a try?

$ npm install webtorrent -g$ webtorrent


Reply to this email directly or view it on GitHubhttps://github.com//issues/59#issuecomment-43437362
.

from webtorrent.

transitive-bullshit avatar transitive-bullshit commented on May 21, 2024

It seems you don't have a proper installation of node and/or npm.

I'd recommend reading up on a nodejs tutorial and making sure you're comfortable with the dependencies before delving into webtorrent.

You should then be able to run node --version and npm --version to verify they're both installed correctly. Only then should you try installing webtorrent with npm install -g webtorrent

from webtorrent.

feross avatar feross commented on May 21, 2024

I think the issue is that you used apt-get on Ubuntu 13.10+ to install node and that installs a nodejs command -- not a node command. This causes the webtorrent command (and most other node command line programs!) to break because we're using #!/usr/bin/env node at the top of the file to start node.

The quickest way to solve the problem seems to be to run sudo apt-get install nodejs-legacy which just installs a node command.

See: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint-elementary-os for more info.

from webtorrent.

feross avatar feross commented on May 21, 2024

I'm closing this for now since this isn't really a webtorrent issue. But feel free to reply if this doesn't solve your problem and we'll try to help.

from webtorrent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.