jxcore/jxcore-cordova

Not found!

0x4139 opened this issue · 4 comments

cordova plugins add io.jxcore.node
Fetching plugin "io.jxcore.node" via npm
Fetching plugin "io.jxcore.node" via cordova plugins registry
Failed to fetch plugin io.jxcore.node via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: 404 Not Found: io.jxcore.node

@0x4139 Yeap, I guess you didn't download and unpack io.jxcore.node.jx package. Take a look at link provided by @obastemur .

@ktrzeciaknubisa @obastemur I had the same issue, I believe the readme.MD needs to be updated or the issue fixed.
This is the sequence
Installed the plugin manually.

C:\Users\TCSPRO~1\Desktop\SUDHAR~1\PROGRE~1\MyApp>jxc install
Latest jxcore-cordova version: 0.1.1
Downloading: http://az836273.vo.msecnd.net/0.1.1/io.jxcore.node.jx
Progress: Done
Downloading: https://jxcore.s3.amazonaws.com/0311/jx_win32v8.zip
Progress: Done
Unzipping: Done
Extracting plugin package...
Done.
Removing plugin from project...
Adding plugin to project...
Cleaning up...
Done.

But when executing the last steps in the readme.MD, got this error.

C:\Users\TCSPRO~1\Desktop\SUDHAR~1\PROGRE~1\MyApp>cordova platform remove ios

C:\Users\TCSPRO~1\Desktop\SUDHAR~1\PROGRE~1\MyApp>cordova platform remove android

C:\Users\TCSPRO~1\Desktop\SUDHAR~1\PROGRE~1\MyApp>cordova plugins remove io.jxcore.node
Uninstalling io.jxcore.node from browser
Removing "io.jxcore.node"

C:\Users\TCSPRO~1\Desktop\SUDHAR~1\PROGRE~1\MyApp>cordova plugins add io.jxcore.node
Fetching plugin "io.jxcore.node" via npm
Error: Failed to fetch plugin io.jxcore.node via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on https://registry.npmjs.org/io.jxcore.node

I reinstalled the plugin manually through jxc install.

C:\Users\TCSPRO~1\Desktop\SUDHAR~1\PROGRE~1\MyApp>jxc install
Latest jxcore-cordova version: 0.1.1
Downloading: http://az836273.vo.msecnd.net/0.1.1/io.jxcore.node.jx
Progress: Done
Downloading: https://jxcore.s3.amazonaws.com/0311/jx_win32v8.zip
Progress: Done
Unzipping: Done
Extracting plugin package...
Done.
Removing plugin from project...
Adding plugin to project...
Cleaning up...
Done.

But this step never worked.

C:\Users\TCSPRO~1\Desktop\SUDHAR~1\PROGRE~1\MyApp>cordova plugins add io.jxcore.node
Fetching plugin "io.jxcore.node" via npm
Error: Failed to fetch plugin io.jxcore.node via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on https://registry.npmjs.org/io.jxcore.node

The subsequent steps went through and the io.jxcore.node got installed.

C:\Users\TCSPRO~1\Desktop\SUDHAR~1\PROGRE~1\MyApp>cordova platform add ios
WARNING: Applications for platform ios can not be built on this OS - win32.
Adding ios project...
iOS project created with cordova-ios@4.0.1
Installing "cordova-plugin-whitelist" for ios
Installing "io.jxcore.node" for ios

C:\Users\TCSPRO~1\Desktop\SUDHAR~1\PROGRE~1\MyApp>cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: io.cordova.hellocordova
        Name: HelloCordova
        Activity: MainActivity
        Android target: android-23
Android project created with cordova-android@5.1.0
Installing "cordova-plugin-whitelist" for android

               This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this
plugin since the whitelist will be built in.

Installing "io.jxcore.node" for android

@sudharsanmit You may be right - docs needs to be updated.

Once you use jxc install you don't need to call cordova plugins add io.jxcore.node, because jxc does it automatically. BTW. before jxc install you may call jxc config set cache to enable caching (and prevent multiple downloads of same package).

But If you do have to re-add the plugin, you may call jxc install --force (instead of `cordova plugins add io.jxcore.node). And if you have cache enabled, the download will be skipped this time.

More on jxc here: https://github.com/jxcore/jxc