-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Man pages are deleted, but not reinstalled #2914
Comments
I am of the opinion that man pages are completely broken in npmv7, and this is just a symptom - using npmv7 to install anything, including npm, will result in no man pages. I have been trawling the code all day long, adding debug statements and learning Arborist to try to understand why my package's man page isn't getting installed, and the most I have been able to understand is:
I believe that somewhere there is supposed to be a call to Node.binPaths that doesn't seem to exist. This call would return both the bin and man paths into the Node.package property that would be used later in bin-links/index.binLinks() to link both bins and man pages - but instead of calling Node.binPaths, it is just relying on the Node object having been instantiated with the bin property in the constructor's source data, rather than getting it through Node.binPaths. It should be noted that if Arborist was doing what I think it is supposed to be doing to get the paths and link them using bin-links; bin-links does not follow the NPM documentation which states that man paths can be a string or an Array, as there is a hard-check in bin-links/get-paths.getPaths() for an Array: Additionally, I have seen documentation stating that you can also use package.json sugar to include a man directory in the |
See #4276 for more context |
Current Behavior:
When upgrading npm using npm 7, the man pages are gone.
Expected Behavior:
Man pages are installed.
Steps To Reproduce:
.npmrc
(adapt to your own home directory):npm install -g [email protected]
installs npm 7. Man pages appear in~/.local/share/man
npm install -g npm@latest
installs updates npm 7, but npm man pages are removed from in~/.local/share/man
.Environment:
The text was updated successfully, but these errors were encountered: