Install NPM from Command Line
I was trying to update my version of NPM using NPM but long story short, a permissions issue allowed NPM to be removed but not re-installed, and thus I was hosed -- NPM was nowhere to be found on "Walshbook Pro." Eeeek. Well, you can install NPM via command line with this command:
curl https://www.npmjs.org/install.sh | sh
Life without NPM is no life worth living at all. AT ALL! Keep this handy in case you do something stupid like me!
Feature detection via JavaScript is a client side best practice and for all the right reasons, but unfortunately that same functionality hasn't been available within CSS. What we end up doing is repeating the same properties multiple times with each browser prefix. Yuck. Another thing we...
It's no secret that Facebook has become a major traffic driver for all types of websites. Nowadays even large corporations steer consumers toward their Facebook pages instead of the corporate websites directly. And of course there are Facebook "Like" and "Recommend" widgets on every website. One...
We've always been able to create links with protocols other than the usual HTTP, like mailto, skype, irc ,and more; they're an excellent convenience to visitors. With mobile phone browsers having become infinitely more usable, we can now extend that convenience to phone numbers:
The tel
...
If you use Debian you can just install it with
Installing npm with sudo can later cause problems with permissions for some packages (for me it was yeoman)
If you’ve installed node via Homebrew, there was an issue where you could’t update NPM itself if you installed it via Homebrew Node. This is fixed in latest version Homebrew Node package, so you can delete Node and install it again.
I think using NVM is better than anything else: https://github.com/creationix/nvm
Piping curl to sh? Eeesshh…
http://output.chrissnell.com/post/69023793377/stop-piping-curl-1-to-sh-1
If you can trust installing a binary from a website, why can’t you trust running a script?