Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have downloaded node.js tarball from its website, and now I would like install the manpage that comes with it so that I can view it by typing:

 man nodejs

How can I do this?

share|improve this question
What is the reason for installing Node.JS from source? If you have a valid reason, that's fine, but it makes things like this more complicated than needed in some cases where you only need a more recent version than in Ubuntu. And have you run the make doc command as suggested in the ? – gertvdijk Jan 18 '13 at 21:07
You said there are manpages that come with the tarball, but I don't see any in the file. – Ken Kinder Jan 18 '13 at 21:08
@Ken Have a closer look. it's in doc/node.1. – gertvdijk Jan 18 '13 at 21:09
Here's the general question: How do I manually install a man page? – Flimm Jan 18 '13 at 21:52
up vote 4 down vote accepted

It's not man nodejs, but man 1 node. And it will be there by default.

It will be installed for you with the regular installation method (e.g. sudo make install) as the tools/ called from the Makefile will take care of it:

if 'freebsd' in sys.platform or 'openbsd' in sys.platform:
  action(['doc/node.1'], 'man/man1/')
  action(['doc/node.1'], 'share/man/man1/')

In other words, it installs node.1 for you in /usr/share/man/man1/.

To read the manpage directly from the source, you can do:

man /path/to/nodejssource/doc/node.1
share|improve this answer
I see I misunderstood the man 1 node syntax. I voted to delete my answer. – chaskes Jan 18 '13 at 21:24
@user117123 No need to delete your answer. It provides a great way for viewing documentation anyway. :) – gertvdijk Jan 18 '13 at 21:25
Ok, I undeleted, but clarified. Thanks. :) – chaskes Jan 18 '13 at 21:28

In addition to the man page, Node sets up its own help server.

npm help <term>

or to get started:

npm help npm

The documentation is also online at: Node.js API docs

share|improve this answer
thanks. I just saw your first comment and edited my answer. – chaskes Jan 18 '13 at 21:20
The node.1 is the exact file I want to link to man so that it will see it when I type man node – Patryk Jan 18 '13 at 21:21
okay :) yeah, other documentation methods like npm help provide a lot more, but the node command also features a manpage, just for the convenience. – gertvdijk Jan 18 '13 at 21:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.