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!
With CSS border-radius, I showed you how CSS can bridge the gap between design and development by adding rounded corners to elements. CSS gradients are another step in that direction. Now that CSS gradients are supported in Internet Explorer 8+, Firefox, Safari, and Chrome...
Today we get to play amazing games on our super powered game consoles, PCs, VR headsets, and even mobile devices. While I enjoy playing new games these days, I do long for the retro gaming systems I had when I was a kid: the original Nintendo...
Everyone loves the MooTools Accordion plugin but I get a lot of requests from readers asking me how to make each accordion item open when the user hovers over the item instead of making the user click. You have two options: hack the original plugin...
One interesting aspect of web development is geolocation; where is your user viewing your website from? You can base your language locale on that data or show certain products in your store based on the user's location. Let's examine how you can...
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?