-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm #45 #48
npm #45 #48
Conversation
Add prepublishOnly https://docs.npmjs.com/misc/scripts Add bin https://docs.npmjs.com/files/package.json#bin
This is required because file is run from package.json:7 bin
At the moment the npm readme#from-npm has a bad npm install instruction and cannot be updated until the next version is published, |
Hi @lil5, Thanks for the effort! This looks good, although I wouldn't recommend the users to use
I'd write something like this instead: mkdir peer-calls
cd peer-calls
npm install peer-calls
npx peer-calls --NODE_CONFIG={"baseUrl":"",iceServers:[...]}
# or
NODE_CONFIG=$(cat node_modules/peer-calls/config/default.json) npx peer-calls |
That's only a problem when running multiple instances on the same os, running different versions, not really a usual use case for peercalls imho Upgrades are still possible in global npm
|
True installing and updating will then require root access,
Running it will not, you could even run in different user: |
I don't understand why one would need
|
The You would only need to run
True, but most users won't have that configured and do not understand the implications of installing third party packages as root. One the other hand, complex installation instructions could prevent the users from trying out this package 🙂 Whenever I need a global package, I just run the
Correct. But this is coming from my Linux sysadmin experience and I do not like running things as root when they do not absolutely require it. There are also a lot of articles/discussions about this very issue 1, 2, 3, 4. |
Thanks for the read ;) Here is an interesting npm issue
This is an important point. I suggest adding a notice warning not to use |
How to prevent permissions errors | npm Documentation - https://docs.npmjs.com/getting-started/fixing-npm-permissions |
@jeremija I've noticed you've published on npm Close PR? Or could this still be merged, if so what's your view, having discussed |
Thanks for the merge 🎊 |
https://www.npmjs.com/package/peer-calls
@jeremija I've given you write access to the npm package via your npm account: https://www.npmjs.com/~jeremija