npm

A 3-post collection

How to use npm global without sudo on OSX

When running npm and node, you may find yourself getting permission errors that ultimately lead you to using `sudo` in your commands. While this helps get around the issue in the short-term, it also places stricter permissions on those installs and it becomes a slippery slope where soon you may need sudo for more than you bargained for. Also, do you really want to be using `sudo` to install npm packages? I went down this path and some experienced Mac developers helped me see why I needed to relieve myself of `sudo` for npm. Since then I've read several great posts with directions on how to do this including Dan Herbert's fixing npm for Homebrew users and Sindre Sorhus's No...


Tips for Running Node and NPM on Windows

I recently helped a few folks get node and npm up and running on Windows. Here are some of the steps we were able to follow to make this all work. Requirements The systems already had the latest version of Visual Studio 2015 Preview or the free Visual Studio Community edition. I highly encourage starting there. Also, make sure git is install. Latest version of Visual Studio git Chocolatey Running Node and NPM on Windows First get node via chocolatey. You may have to update your paths. Sometimes paths were updated for us, sometimes they were not. Your mileage may vary. Run these from an administrator command prompt or console2 or whatever your favorite terminal is. choco install nodejs choco...


Get Up and Running With Node and Visual Studio

If you’ve decided to immerse yourself in modern web development with JavaScript libraries such as AngularJS, Bootstrap, React, or Knockout then you’ve undoubtedly heard of Bower, NPM, Grunt, Gulp, and Node somewhere along the way. If you’ve been meaning to learn them, then this post should help you get started. There are plenty of articles on the topic but I wanted to take a different approach to talk less about what node does and instead show you. So let’s use node to get an app up and running and then try it in Visual Studio. The Landscape Many developers have lived in their own stack for a long time, and very successfully...