Installing Meteorite on mac os x 10.8.2

I am trying to install a meteorite

MacBook-Air-Voldemar:packages voldemar$ sudo npm install -g meteorite
Password:

      

and I get the error

sudo: npm: command not found

      

How to solve this problem?

+3


source to share


2 answers


Node already has a node js package for OS X.



Go to http://nodejs.org and click Install to download the nodejs package, when you install npm with it.

+4


source


The message says you haven't installed the node package manager npm

.

Make sure you specify the path to node before installing npm. This is most likely in /usr/local/lib/node

.

Then do,

git clone http://github.com/isaacs/npm.git
cd npm
sudo make install

      

Now add the path to node by adding the following to .bashrc

export NODE_PATH = "/path/to/node"

      



You will also need an executable npm

, so add the path to npm bin,

export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:$PATH"

      

Then save and exit .bashrc

and do

source ~/.bashrc

      

It evaluates changes and changes reflect in the shell. You can now proceedsudo npm install -g meteorite

+2


source







All Articles