Summary
After installing kdm-cli globally via npm, the package installs successfully but the kdm command is not available in the terminal.
The installation completes without errors, however executing the CLI results in:
Steps to Reproduce
1. Install the package globally
npm install -g kdm-cli@latest
2. Run the CLI command
Expected Behavior
The CLI should be accessible globally and execute successfully:
Actual Behavior
Environment
| Component |
Version |
| OS |
Ubuntu Linux |
| Node.js |
v24.15.0 |
| npm |
11.2.1 |
| Package |
kdm-cli@1.2.0 |
Additional Information
The package appears in the global npm package list:
Output:
This indicates the package installs correctly, but no executable binary is being linked globally.
Possible Cause
The package may be missing a valid bin configuration in package.json.
Example:
"bin": {
"kdm": "./bin/cli.js"
}
Additionally, the CLI entry file should begin with:
Suggested Fix
- Add a proper
bin field in package.json
- Ensure the CLI entry file path is correct
- Ensure the CLI file is executable
- Republish the package after updating the configuration
Installation Logs
npm install -g kdm-cli@latest
changed 267 packages in 12s
Then:
Result:
Summary
After installing
kdm-cliglobally via npm, the package installs successfully but thekdmcommand is not available in the terminal.The installation completes without errors, however executing the CLI results in:
Command 'kdm' not foundSteps to Reproduce
1. Install the package globally
2. Run the CLI command
Expected Behavior
The CLI should be accessible globally and execute successfully:
Actual Behavior
Command 'kdm' not foundEnvironment
Additional Information
The package appears in the global npm package list:
Output:
This indicates the package installs correctly, but no executable binary is being linked globally.
Possible Cause
The package may be missing a valid
binconfiguration inpackage.json.Example:
Additionally, the CLI entry file should begin with:
Suggested Fix
binfield inpackage.jsonInstallation Logs
changed 267 packages in 12sThen:
Result:
Command 'kdm' not found