Arbitrary Thoughts

Introducing NPM…and a couple of comments

npm is a package manager for node. You can use it to install and publish your node programs. It manages dependencies and does other cool stuff.

Check it out…
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…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s