tomloprod / cordova-plugin-fakelocation

FakeLocation is a cordova plugin to check if "Allow mock locations" are enabled or disabled in android devices.
MIT License
5 stars 13 forks source link

Ionic 2 failed to install #2

Open brianducca opened 6 years ago

brianducca commented 6 years ago

Hello, i'm trying to add this to my ionic 2 project. I'm doing this: cordova plugin add https://github.com/tomloprod/cordova-plugin-fakelocation.git And the output is:

Error: Failed to fetch plugin https://github.com/tomloprod/cordova-plugin-fakelocation.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 4294963228 Error output:
npm ERR! addLocal Could not install C:\Users\bducca\AppData\Local\Temp\npm-16728-5f73e264\git-cache-22fa05ef\0152d05c10e12aa988948e0bcee1ba3b87f61684
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "https://github.com/tomloprod/cordova-plugin-fakelocation.git" "--save"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code EISDIR
npm ERR! errno -4068
npm ERR! syscall read

npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\bducca\Documents\Mobile\node_modules\npm-debug.log

NPM-debug:

44 error node v6.11.0
45 error npm  v3.10.10
46 error code EISDIR
47 error errno -4068
48 error syscall read
49 error eisdir EISDIR: illegal operation on a directory, read
50 error eisdir This is most likely not a problem with npm itself
50 error eisdir and is related to npm not being able to find a package.json in
50 error eisdir a package you are trying to install.
51 verbose exit [ -4068, true ]
Syirrus commented 5 years ago

Yeah, I have the same problem