Compressing the man pages in /lib/node_modules/npm/man prevents npm from finding them which breaks the `npm help` command. For example `npm help view` displays a list of top hits instead of the man page for npm view: $ npm help view Top hits for "view" ———————————————————————————————————————————————————————————————————————————————— npm help view view:17 npm help index view:4 npm help faq view:3 npm help help view:3 npm help config view:3 npm help npm view:2 npm help star view:1 npm help docs view:1 npm help search view:1 npm help cache view:1 npm help list view:1 npm help bugs view:1 npm help changelog view:1 npm help shrinkwrap view:1 npm help scripts view:1 ———————————————————————————————————————————————————————————————————————————————— (run with -l or --long to see more context)
+ 29 Aug 2012; Patrick Lauer <patrick@gentoo.org> +nodejs-0.6.21-r1.ebuild, + +nodejs-0.8.8-r1.ebuild, +nodejs-0.9.0-r2.ebuild: + Fix for npm docs, #425520
It seems that the line docompress -x /lib/node_modules/npm/man introduced in nodejs-0.9.0-r2.ebuild is no longer necessary. The man pages are now installed into /usr/lib/node_modules/npm/man, so the above line just triggers a warning about a nonexistent path.
Nodejs-6.2.2's help command is also broken: $ npm help npm No results for "npm" I hope those docs are not behind the doc use flag. (If that is the case, then a proper use description is missing.)
*** Bug 571332 has been marked as a duplicate of this bug. ***
I'll confirm this is also busted on ARM64. https://www.dropbox.com/sh/gfsfqv3p4lvnzi6/AAAE-Mb_8ko1oX3xSROVkP8ia?dl=0 /packages...
Michael, could you please attach your information here, or write it in the text field?
(In reply to Marijn Schouten (RETIRED) from comment #3) > Nodejs-6.2.2's help command is also broken: > > $ npm help npm > No results for "npm" > > I hope those docs are not behind the doc use flag. (If that is the case, > then a proper use description is missing.) The original bug was fixed in 2012. Anyone having similar problems with current versions should file a brand new bug report about them.