RTK / cordova-cookie-emperor

MIT License
13 stars 17 forks source link

Can't install in MacOS 11 #6

Open LousyJohnny opened 3 years ago

LousyJohnny commented 3 years ago

I can't install the plugin using command line nor cordova build It's weird because a few moments before, I was able to install it on a ubuntu laptop, build and test for the same App on a Android platform

I tried to remove "ios" directory, rebuild from scratch but same error

Here is the message log :

Discovered plugin "cordova-plugin-androidx-adapter". Adding it to the project
Installing "cordova-plugin-androidx-adapter" for ios
Adding cordova-plugin-androidx-adapter to package.json
Discovered plugin "cordova-plugin-cookieemperor". Adding it to the project
Failed to fetch plugin git+https://github.com/RTK/cordova-cookie-emperor.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
CordovaError: CordovaError: Could not determine package name from output:
up to date, audited 1689 packages in 13s

9 low severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
[ERROR] An error occurred while running subprocess cordova.
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:140:43
    at processTicksAndRejections (node:internal/process/task_queues:93:5)

here"s the line in package.json "cordova-plugin-cookieemperor": "git+https://github.com/RTK/cordova-cookie-emperor.git",

I don't know which other info could be useful

RTK commented 3 years ago

As the output says it seems to be a connection problem, I don't think it comes from this plugin.

You can add the plugin via "cordova-plugin-cookieemperor": "RTK/cordova-cookie-emperor" (as described here https://medium.com/@jonchurch/use-github-branch-as-dependency-in-package-json-5eb609c81f1a)

You may want to checkout this fork https://github.com/nim901/cordova-cookie-emperor as you can install it via https://www.npmjs.com/package/cordova-plugin-cookieemperor-v1

"cordova-plugin-cookieemperor": "cordova-plugin-cookieemperor-v1"