cordova-plugman
cordova-plugman copied to clipboard
command not found: plugman
Bug Report
Problem
What is expected to happen?
Plugman command not recognised after plugman help executed.
What does actually happen?
command not found: plugman
Information
I am planning to create plugin for Android and iOS after following steps from your documentation.
- npm install -g plugman
- After successfully installed try to run plugman help : "recived plugman command not found".
Tried with sudo same happening.
Command or Code
plugman help -> command not found.
Environment, Platform, Device
MacOS Catalina 10.15
Version information
Cordova 10.0.0 Plugman 3.0.0 MacOS Catalina 10.15. Node v15.3.0
Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
Please tell us, step by step, what you did to get that error.
Please tell us, step by step, what you did to get that error.
Steps added.
Using the provided steps I am unable to reproduce this in my environment, which includes:
Ubuntu 20.04 plugman 3.0.0 | 3.0.1 Node v12.19.0 | v15.3.0
I strongly doubt this has anything to do with Cordova. My best guess would be that the bin directory for your globally installed node_modules is not in your PATH
.
Run which plugman
to check. If necessary, add $(npm config get prefix)/bin
to your PATH
.
As a side note: I'm not sure how up-to-date the plugin code is, that would be generated by plugman. I think it does not even create a package.json by default (which is required by cordova). So maybe you are better off looking at an official plugin and replicating what you see there. That's just my personal opinion.