3 ms·
For those like me who wonder how to use npm without being root, here's an answer that worked for me on Debian: http://stackoverflow.com/a/21712034/323094 http:
by aargh_aargh 11y ago
For those like me who wonder how to use npm without being root, here's an answer that worked for me on Debian:
http://stackoverflow.com/a/21712034/323094 http://stackoverflow.com/a/21712034/323094
- aargh_aargh 11y agoThe app/program is a great idea, thank you. Two comments: 1. It should accept a message from stdin 2. When sending a message via the -t parameter, after clicking the notification in Android, I see "Your identifier is: Hello World!". Is that intentional or a bug?
- brbsix 11y agoFYI you don't need root at all. Just download the node tarball and unpack it somewhere in your user dir. Then add the following to your .profile (or .bashrc or whatever you prefer): # add node.js bin to PATH npath=~/Applications/node-v4.2.1-linux-x64/bin if [ -d "$npath" ]; then PATH=$npath${PATH:+:$PATH} fi Then add the following to your .manpath if you want access to node manpages: # node.js MANPATH_MAP ~/Applications/node-v4.2.1-linux-x64/bin ~/Applications/node-v4.2.1-linux-x64/share/man MANPATH_MAP ~/Applications/node-v4.2.1-linux-x64/bin ~/Applications/node-v4.2.1-linux-x64/lib/node_modules/npm/man Then to install: npm install -g notify-cli Obviously you may need to update the particulars.