cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Jansen (JIRA)" <>
Subject [jira] [Created] (CB-4528) Plugman v0.10.0 fails to publish due to path.join error
Date Wed, 07 Aug 2013 17:56:47 GMT
Steve Jansen created CB-4528:

             Summary: Plugman v0.10.0 fails to publish due to path.join error
                 Key: CB-4528
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugman
    Affects Versions: 3.0.0
         Environment: OS X 10.8.4
node v0.10.2
npm v1.2.15
cordova (cli) v3.0.4
plugman v0.10.0
            Reporter: Steve Jansen
            Assignee: Filip Maj

Publishing to the cordova registry @ fails due to a problem parsing
the `dir` argument to `plugman publish dir`
Steps To Reproduce
sudo npm install -g plugman
plugman adduser steve-jansen
plugman publish --debug --plugin ./cordova-ios-emailcomposer/

Expected Results
This should publish the ./cordova-ios-emailcomposer/ plugin to

     $ ls -l ./cordova-ios-emailcomposer/plugin.xml 
     -rw-r--r--  1 me  staff  1676 Aug  6 22:47 ./cordova-ios-emailcomposer/plugin.xml

This is a local clone of

Actual Results
TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at Object.exports.join (path.js:358:36)
    at Object.generatePackageJsonFromPluginXml (/usr/local/lib/node_modules/plugman/src/registry/manifest.js:16:57)
    at /usr/local/lib/node_modules/plugman/src/registry/registry.js:124:22
    at initSettings (/usr/local/lib/node_modules/plugman/src/registry/registry.js:207:5)
    at Object.module.exports.publish (/usr/local/lib/node_modules/plugman/src/registry/registry.js:121:9)
    at Object.module.exports [as publish] (/usr/local/lib/node_modules/plugman/src/publish.js:5:14)
    at Object.plugman.commands.publish (/usr/local/lib/node_modules/plugman/plugman.js:84:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/plugman/main.js:75:26)

It appears the dir argument passed on the command line is not being passed into registry.js
line 121, which cause the downstream error.  

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message