Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with plugin installation. #40

Open
jd0048 opened this issue Jan 31, 2018 · 4 comments
Open

Issue with plugin installation. #40

jd0048 opened this issue Jan 31, 2018 · 4 comments

Comments

@jd0048
Copy link

jd0048 commented Jan 31, 2018

Hello

i am recently trying to implement apple watch app and try to install this plugin in my Cordova project but its failed to install plugin in my Cordova project.

cordova plugin add https://github.com/Telerik-Verified-Plugins/AppleWatch

got error:

`(node:1415) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Failed to fetch plugin https://github.com/Telerik-Verified-Plugins/AppleWatch via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: 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/Telerik-Verified-Plugins/AppleWatch.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jd/.npm/_logs/2018-01-31T10_23_28_432Z-debug.log
(node:1415) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.`

@ghost
Copy link

ghost commented Feb 10, 2018

Same problema here

@jacksonrdlc
Copy link

Same.

@enricodeleo
Copy link

It's due to the version of cordova we use. In fact a package.json is required for all plugins. There's a pull request pending that should solve this issue.

@swetha-thoomoju
Copy link

Added the package.json file using plugman, But i see a different error msg.

Cannot find module 'xcode'

Failed to install 'cordova-plugin-applewatch': Error: Cannot find module 'xcode'
at Function.Module._resolveFilename (module.js:489:15)
at Function.Module._load (module.js:439:25)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
at Object. (/Users/AccessQA/wesko_repo/APP/wesko-lock-app/plugins/cordova-plugin-applewatch/src/ios/hooks/cordova/copy_watchkitfiles.js:1:75)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)

Cannot find module 'xcode'

My app have phonegap version 8.2.2 and ios is of 4.5.4. We need to give support for apple watch just do not know where to start, though we are doing different experiments getting stuck at some point.

Can anyone suggest me from where to start to create ios watch app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants