Error while Installing plugin in Visual Studio 2015(Tool for Apache Cordova)
See original GitHub issueI’m submitting a … (check one with “x”)
- question
- [x ] any problem or bug report
- feature request
If you choose ‘problem or bug report’, please select OS: (check one with “x”)
- [x ] Android
- iOS
cordova information: (run $> cordova plugin list
)
insert the output from the command here
If you use @ionic-native/google-maps
, please tell the package.json (only @ionic-native/core
and @ionic-native/google-maps
are fine mostly)
Current behavior:
This log report is from Visual Studio 2015 when trying to install googlemaps plugin.
Haven’t tested for iOS yet.
------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac
------ Name from source package.json: vs-tac
------ Version from source package.json: 1.0.42
------ Package already installed globally at correct version.
Installing plugin ‘…\Cordova_Plugins\cordova-plugin-googlemaps-master’
Starting launch process C:\Users\Admin\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9\node.exe “C:\Users\Admin\AppData\Roaming\npm\node_modules\vs-tac\pluginInstall.js” --action install --projectSourceDir “…\test\test” --pluginName …\Cordova_Plugins\cordova-plugin-googlemaps-master --language en-IN --cliVersion “6.5.0” --npmInstallDir “C:\Users\Admin\AppData\Roaming\npm” --parameters “API_KEY_FOR_ANDROID=API_KEY_FOR_ANDROID API_KEY_FOR_IOS=API_KEY_FOR_IOS” --loglevel silly
------ Cordova tools 6.5.0 already installed.
Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.
No scripts found for hook “before_plugin_add”.
Calling plugman.fetch on plugin “…\Cordova_Plugins\cordova-plugin-googlemaps-master”
Copying plugin “…\Cordova_Plugins\cordova-plugin-googlemaps-master” => “…\test\test\plugins\cordova-plugin-googlemaps”
Calling plugman.install on plugin “…\test\test\plugins\cordova-plugin-googlemaps” for platform "android
Installing “cordova-plugin-googlemaps” for android
Running command: cmd “/s /c “…\test\test\platforms\android\cordova\version.bat””
Command finished with error code 0: cmd /s /c “…\test\test\platforms\android\cordova\version.bat”
Finding scripts for “before_plugin_install” hook from plugin cordova-plugin-googlemaps on android platform only.
Executing script found in plugin cordova-plugin-googlemaps for hook “before_plugin_install”: plugins\cordova-plugin-googlemaps\src\before_plugin_install.js
Resolving module name for fs => fs
Resolving module name for path => path
Resolving module name for q => q
Warning: Failed to install ‘cordova-plugin-googlemaps’:TypeError: Object.keys called on non-object
at Function.keys (native)
at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:170:27)
at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:198:43
at Array.forEach (native)
at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:197:34
at Array.forEach (native)
at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:171:14)
at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:192:25
at Array.forEach (native)
at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:171:14)
C:\Users\Admin\AppData\Roaming\npm\node_modules\vs-tac\node_modules\q\q.js:126
throw e;
^
TypeError: Object.keys called on non-object
at Function.keys (native)
at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:170:27)
at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:198:43
at Array.forEach (native)
at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:197:34
at Array.forEach (native)
at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:171:14)
at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:192:25
at Array.forEach (native)
at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:171:14)
Done
Expected behavior: Successful installation
Screen capture or video record:
Related code, data or error log (please format your code or data):
The person who share your project files on Github (or other git repository) is in faster lane than other people.
Please share your project files on Github or others(Bitbucket, Gitlabs...etc).
If you don't want to share your project files, please create a demo project, then share it.
Screen captures, and/or native logs(such as Logcat, xcode logs) are appreciate.
Giving much information, you are waiting time is less.
Thank you for your cooperation.
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (10 by maintainers)
Top GitHub Comments
or
Congrats!