Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upInstructions for noobies #1277
Closed
Instructions for noobies #1277
Comments
This comment has been minimized.
This comment has been minimized.
|
Node and browser are two different environment. If you want to run that snippet in browser change |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello!
I'm not very into NPM and I'm trying to use this package...
While following the install instructions presented on README.md, I ran:
npm install webtorrentOn a fresh folder. After running this command, I have a folder and a file: node_modules and package.lock.json
How do I get to the point where I can apply the example usage in the browser as showed in the README.md?
Edit: I've managed to call
webtorrent.min.json a HTML file, but when I try to run the snippet above it saysrequire() is not defined.Edit 2: Allright, moved all content from index.html to a test.js file with the contents above, now when I ran
node test.jsit just died out of memory.