Monday, May 6, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 864  / 3 Years ago, wed, august 4, 2021, 7:45:47

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?


More From » command-line

 Answers
4

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/install.py 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/')
else:
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

[#33140] Thursday, August 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
soahan

Total Points: 230
Total Questions: 123
Total Answers: 123

Location: Maldives
Member since Tue, Dec 21, 2021
2 Years ago
soahan questions
Fri, May 7, 21, 06:17, 3 Years ago
Mon, Jan 16, 23, 05:49, 1 Year ago
Mon, Dec 13, 21, 14:40, 2 Years ago
;