Hi I am getting below error while generating build for iOS and android :
You have been opted out of telemetry. To change this, run: cordova telemetry on.No scripts found for hook "before_plugin_add".Calling plugman.fetch on plugin "https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#0.0.1.os"savingRunning command: npm install https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#0.0.1.os --production --saveCommand finished with error code 1: npm install,https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#0.0.1.os,--production,--saveError: Failed to fetch plugin https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#0.0.1.os 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 ENOPACKAGEJSONnpm ERR! package.json Non-registry package missing package.json: git+https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#0.0.1.os.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! /root/.npm/_logs/2018-08-01T14_46_21_030Z-debug.log[2018-08-01T14:46:21.111Z] [ERROR] Build failed with the following error: Error fetching Cordova plugin: https://github.com/OutSystemsExperts/File-Viewer-Plugin.git#0.0.1.os.[2018-08-01T14:46:21.111Z] [INFO] Remove debug/release signing properties[2018-08-01T14:46:21.112Z] [INFO] Zipping application source...[2018-08-01T14:46:56.138Z] [INFO] Application was not successfully generated![2018-08-01T14:46:56.138Z] [INFO] Execution time: 255249ms
Can you please help me with this om how to resolve this ?
Regards,
Akshay Tank.
Akshay Tank wrote:
Hi Akshay,
This error is because the fetch is not working well. I saw the plugins history and they release a recent version to fix this. I suggest you to download and install the newest version of it. Probably this error will be fixed.
Fixed error about failed to fetch plugin
https://www.outsystems.com/forge/Component_Versions.aspx?ProjectId=1606
Best Regards
Fabio Fantato