---
id: 2081
title: Introducing NPM...and a couple of comments
slug: npm
date: '2011-11-27T21:46:05Z'
modified: '2011-11-27T21:46:05Z'
status: publish
type: post
author: pmoelgaard
categories:
  - Arbitrary Thoughts
tags:
  - NodeJS
  - Undocumentation
excerpt: null
canonicalPath: /posts/npm
featuredImage: null
commentCount: 0
wordCount: 185
readingTimeMinutes: 1
hasMedia: true
hasVideos: false
url: 'https://forwardthinking.pemo.me/posts/npm'
---
npm is a package manager for [node](http://nodejs.org/). You can use it to install and publish your node programs. It manages dependencies and does other cool stuff. [![](/media/wp/2011/11/npm.png "npm")](http://blog.petermolgaard.com/2011/11/npm/npm/) Check it out... [http://npmjs.org/](http://npmjs.org/) However, there are a few comments I would like to attach, and that is e.g. for the installation... It states on the npm website, that you can execute a one-line install using cURL by entering the following cURL command...

> curl http://npmjs.org/install.sh | sh

However, if you attempt to do this without using SUDO, you might end up with the following error...

> Error: EACCES, Permission denied '/usr/bin/npm'

So, to make life easier for yourself, add SUDO to the SH part of the cURL command, so it looks like this, and you will be fine...

> curl http://npmjs.org/install.sh | sudo  sh

Secondly,  In mac OSX 10.7 compilation fails if you use "make -j *n"* command , you can use "make". Also, if you get some complaints that make command is not found, its probably because xCode (or another make tool) isn't installed, easiest way around that is to simply install xCode from AppStore...
