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] npm help json
errors on Windows
#7374
Labels
Comments
mbtools
added
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 10.x
labels
Apr 14, 2024
milaninfy
added
Priority 2
secondary priority issue
and removed
Needs Triage
needs review for next steps
labels
Apr 17, 2024
lukekarrys
added a commit
that referenced
this issue
May 9, 2024
On Windows, `npm help json` and `npm help global` attempt to display `npm-json.html` and `npm-global.html` files which leads to an error because these files have not been generated. This pull request duplicates the `package-json.md` and `folders.md` files in order to generate these files and make the above-mentioned commands functional. Closes: #7374 Co-authored-by: Luke Karrys <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
On Linux,
npm help json
displays correctlyman/man5/npm-json
.On Windows,
npm help json
attempts to display the corresponding HTML page which leads to the following error:npm help global
has the same problem.Expected Behavior
npm help json
andnpm help global
should display the same documentation on Windows as on LinuxSteps To Reproduce
npm help json
Cause:
The build process duplicates two man pages (
package-json
->npm-json
,folders
->npm-global
). However, it does not duplicate thehtml
pages. Therefore,npm help json
won't find any HTML version of the duplicated man pages:cli/docs/lib/build.js
Lines 96 to 118 in 9622597
man:
html:
Possible solution:
Environment
The text was updated successfully, but these errors were encountered: