When attempting
ionic cordova build android --prod
, the following error occurred:
I have tried this multiple times.
rm -rf node_modules/
rm -rf platforms/
rm -rf plugins/
I deleted package.lock.json
and ran npm i
, but no luck so far. Any ideas?
Error
$ ionic cordova build android --prod
cordova.cmd platform add android --save Using cordova-fetch for [email protected] Failed to fetch platform [email protected] Probably this is either a connection problem, or platform spec is incorrect. Check your connection and platform name/version/URL. Error: cmd: Command failed with exit code 1 Error output: npm ERR! Windows_NT 10.0.17763 npm ERR! argv "C:\Program Files\nodejs\node.exe" "D:\Clients\ionic4\node_modules\npm\bin\npm-cli.js" "install" "[email protected]" "--production" "--save-exact" npm ERR! node v12.4.0 npm ERR! npm v2.15.12 npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package @ionic-native/[email protected] does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0 npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/[email protected] npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/[email protected] npm ERR! peerinvalid Peer @ionic-native/[email protected] wants @ionic-native/core@^5.1.0
npm ERR! Please include the following file with any support request: npm ERR! D:\Clients\ionic4\npm-debug.log [ERROR] An error occurred while running subprocess cordova.
config.xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.mho.lla" version="0.1.7" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>lla</name>
<description>lla App</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">m-hospitality</author>
<content src="index.html" />
... (Abbreviated for brevity) ...
</widget>
package.json
{
"name": "lity",
"version": "0.1.1",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
... (Abbreviated for brevity) ...
}