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!
I get asked loads of questions every day but I'm always surprised that they're rarely questions about code or even tech -- many of the questions I get are more about non-dev stuff like what my office is like, what software I use, and oftentimes...
Before we get started, it's worth me spending a brief moment introducing myself to you. My name is Mark (or @integralist if Twitter happens to be your communication tool of choice) and I currently work for BBC News in London England as a principal engineer/tech...
Back when I created client websites, one of the many things that frustrated me was the initial design handoff. It would always go like this:
Work hard to incorporate client's ideas, dream up awesome design.
Create said design, using Lorem Ipsum text
Send initial design concept to the client...
Last week we created a very simple MooTools slideshow script. The script was very primitive: no events and no next/previous controls -- just cross-fading between images. This tutorial will take the previous slideshow script a step further by:
Adding "Next" and "Previous" controls.
Adding...
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?