I read about that (in node docs and tutorials) but when I build node,
it appears NPM isn't there (at least not in my path).

I set up my node and NPM path prior to building node.

% vi ~/.npmrc

        root =    /home/node/.local/lib/node_modules
        binroot = /home/node/.local/bin
        manroot = /home/node/.local/share/man

Then I download, extract, and build node itself.

% wget http://nodejs.org/dist/v0.8.12/node-v0.8.12.tar.gz;
% tar xzf node-*
% cd ~/node-*
% ./configure --prefix=~/.local && make && make install

The net result is NPM doesn't seem to be installed. What am I missing.

I always just go back to:

% curl https://npmjs.org/install.sh | sh

Of course to make sure everything works I set up my environment first.

% ln -s ~/.local/lib/node_modules ~/.node_modules
% echo 'export PATH=$HOME/.local/bin:${PATH}' >> ~/.bashrc
% source ~/.bashrc

On Tue, Oct 30, 2012 at 4:47 PM, Isaac Schlueter <[email protected]> wrote:
> There's no reason for you to have to do this.  That's how I build the
> man pages used by `npm help`, and the html pages for
> https://npmjs.org/doc/ from the markdown in the doc folder.
>
> If you're just trying to use npm, install node, and npm will be
> installed as well.  If you are changing the npm docs, and trying to
> check your edits, simply run `make install` before running `make doc`,
> and it'll work properly.
>
> On Tue, Oct 30, 2012 at 8:19 AM, Jason Nunnelley <[email protected]> wrote:
>>> [email protected] prepublish .
>>> npm prune ; rm -rf test/*/*/node_modules ; make -j4 doc
>>
>> sh: 1: npm: not found
>> make: Nothing to be done for `doc'.
>>
>> --
>>
>> Does this reflect a plan to add a documentation portion of NPM or am I
>> missing some nuance as a newb?
>>
>> Jason N => Node/NPM Newb
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en



-- 
Cheers and rock n' roll!

Jason A. Nunnelley
http://about.me/imjasonn <= social connect info for me everywhere!

President, CEO dosIQ, Inc.
+1 256 693 2808 Voice and Fax

Also serve as:
Chief Technologist, Member, Tekany, LLC
V.P. Communications, SSGT Defensive Tactics, Inc.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to