valentiniljaz / cordova-nfcv-plugin

Cordova plugin for reading and writing to NFC tags using NfcV protocol (with support for Ionic2)
14 stars 9 forks source link

Ive tried to use and clone this repo on my mac and windows and fail #6

Closed PaulCannell closed 6 years ago

PaulCannell commented 6 years ago

On windows Im getting UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Failed to fetch plugin https://github.com/valentiniljaz/cordova-nfcv-plugin 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 128 npm ERR! Command failed: C:\Program Files (x86)\Git\cmd\git.EXE submodule update -q --init --recursive npm ERR! fatal: 'submodule' appears to be a git command, but we were not npm ERR! able to execute it. Maybe git-submodule is broken? npm ERR!

On mac npm install https://github.com/valentiniljaz/cordova-nfcv-plugin --save when I try and run it says cant find file /ionic2/src/nfcv.service.js there is a ts file there but no js. Any help would be appreciated

Edit - I built module myself and put the .js files where ionic was expecting it. Im getting this NfcV is not defined at line 94. Im using ionic 3 if that helps

PaulCannell commented 6 years ago

Got it working on another mac. Im going with this machine is unhappy