apache / cordova-plugman

Apache Cordova Plugman
https://cordova.apache.org/
Apache License 2.0
400 stars 151 forks source link

command not found: plugman #133

Open rimaad opened 3 years ago

rimaad commented 3 years ago

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.

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

raphinesse commented 3 years ago

Please tell us, step by step, what you did to get that error.

rimaad commented 3 years ago

Please tell us, step by step, what you did to get that error.

Steps added.

breautek commented 3 years ago

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

raphinesse commented 3 years ago

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.