![]() |
VOOZH | about |
|
Details
Description:
There is a subcommand of npm: "npm help". (Usage: `npm help [npm subcommand here]`. For example: `npm help ci`.) On Linux/macOS, `npm help` can show the manpage for any npm subcommand. This is not working in the Arch package, but it's working in npm directly from the npm package registry. Additional info: * package version(s): npm 7.6.3-1, Node 15.11.0-1 * link to upstream bug report: https://github.com/npm/cli/issues/2857 (It was determined that this was an Arch packaging bug, not an upstream bug, since it's fully working everywhere outside of the custom Arch package.) Steps to reproduce: - With npm from the Arch package, do `npm help ci`. Expected: Manpage for "npm-ci" is shown. Actual: ``` $ npm help ci Top hits for "ci" —————————————————————————————————————————————————————————————————————————————— npm help package-json ci:76 npm help install ci:73 npm help config ci:62 npm help package-lock-json ci:24 npm help exec ci:17 npm help scripts ci:16 npm help npx ci:15 npm help update ci:14 npm help ls ci:13 npm help ci ci:13 —————————————————————————————————————————————————————————————————————————————— (run with -l or --long to see more context) Did you mean this? ci ``` - Counter-example: Working npm directly from the npm package registry: - mkdir get_npm_as_modules && cd get_npm_as_module - npm install npm@7 - npx npm help ci Output: ``` NPM-CI(1) NPM-CI(1) NAME npm-ci - Install a project with a clean slate Synopsis npm ci Description [ . . . ] ``` |
|