Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Master
-
None
Description
Adding a platform or plugin from the registry will fail if the package was not previously downloaded/cached on the machine.
Steps to recreate:
- Delete the contents of ~/.plugman
- Add a new plugin to an existing cordova app, cordova plugin add <plugin id>
OR - Delete the contents of ~/.cordova/lib/npm_cache
- Create a new cordova app
- Add a platform to the app, e.g. cordova platform add android
Examples of the errors:
10387@ 11:15 AM:~/dev/myapps/web-notifications$ cordova platform add android
Creating android project...
Error: ENOENT, no such file or directory '/Users/chasej/.cordova/lib/npm_cache/cordova-android/3.6.4/package/VERSION'
at Object.fs.openSync (fs.js:432:18)
at Object.fs.readFileSync (fs.js:289:15)
at call_into_create (/Users/chasej/git/cordova/cordova-lib/cordova-lib/src/cordova/platform.js:447:30)
at /Users/chasej/git/cordova/cordova-lib/cordova-lib/src/cordova/platform.js:128:24
at _fulfilled (/Users/chasej/git/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/Users/chasej/git/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/Users/chasej/git/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:749:13)
at /Users/chasej/git/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:557:44
at flush (/Users/chasej/git/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:419:13)
10397@ 01:31 PM:~/dev/myapps/web-notifications$ cordova plugin add org.apache.cordova.inappbrowser
Fetching plugin "org.apache.cordova.inappbrowser" via plugin registry
Error: Could not find plugin info in /Users/chasej/.plugman/cache/org.apache.cordova.inappbrowser/0.5.4/package
at new PluginInfo (/Users/chasej/git/cordova/cordova-lib/cordova-lib/src/PluginInfo.js:229:15)
at copyPlugin (/Users/chasej/git/cordova/cordova-lib/cordova-lib/src/plugman/fetch.js:249:17)
at /Users/chasej/git/cordova/cordova-lib/cordova-lib/src/plugman/fetch.js:150:20
at _fulfilled (/Users/chasej/git/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/Users/chasej/git/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/Users/chasej/git/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:749:13)
at /Users/chasej/git/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:557:44
at flush (/Users/chasej/git/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:108:17)
Attachments
Issue Links
- relates to
-
CB-7736 Vulnerability in qs dependency
- Closed