I've written a (canvas) game in HTML5 and I'm now ready to package it for Android (and iOS at a later stage). I've looked at a few options and came to the conclusion Cordova is the way to go. I installed Cordova and was able to create an Android APK that I could test on the emulator and my Android device.
Much to my surprise, it was terribly slow, even though the original HTML5 game ran perfectly in a browser on both the emulator and the Android device. I then stumbled upon the FastCanvas plugin but I don't really understand how to install it. The Git page tells me to install the plugin using plugman:
plugman --platform android --project <your project folder> --plugin https://github.com/FastCanvas/FastCanvas.git
That doesn't work. It simply displays the help file.
Then on another page, it said I can install FastCanvas as follows:
cordova plugin add https://github.com/phonegap/phonegap-plugin-fast-canvas.git
That doesn't work either. If I try that, I get an error message:
(node:28600) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch
plugin https://github.com/phonegap/phonegap-plugin-fast-canvas.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
So I'm at a loss now. How do I install FastCanvas?
BTW, I'm on a Windows 10 machine, Cordova version is 8.0.0
UPDATE AUG 10 2018:
Apparently, the initial error was caused by not having installed Git on my computer. I now installed Git and I still get an error, but a different one:
(node:25356) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch
plugin https://github.com/phonegap/phonegap-plugin-fast-canvas.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! code ENOPACKAGEJSON
npm ERR! package.json Non-registry package missing package.json:
git+https://github.com/phonegap/phonegap-plugin-fast-canvas.git.
npm ERR! package.json npm can't find a package.json file in your current directory.
Still no idea what is causing this.