-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
I'm trying to create android and ios versions of this so I can practice writing Appium tests with it as we are going to be developing an ionic / angular app. When I try to run
How can I do this?
when I try to run:
ionic cordova run android --prod
or
ionic cordova build android
I get this error
`ng run app:ionic-cordova-build:production --platform=android
Node.js version v23.0.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/previous-releases/.
Error: Unknown argument: platform
[ERROR] An error occurred while running subprocess ng.
ng run app:ionic-cordova-build:production --platform=android exited with
exit code 1.
Re-running this command with the --verbose flag may provide more
information.`
I don't even know if doing this will give me and apk for me to play with.
When I try to run
ionic cordova run ios --prod
or
ionic cordova build ios
I get this error
no such file or directory, open '/Users/sun/code/ionic-conference-app/ios/package.json' at async open (node:internal/fs/promises:639:25) at async readFile (node:internal/fs/promises:1239:14) at async module.exports (/Users/sun/code/ionic-conference-app/node_modules/cordova-fetch/index.js:57:25) { errno: -2, code: 'ENOENT', syscall: 'open', path: '/Users/sun/code/ionic-conference-app/ios/package.json' }
I'm hoping I can get some help on how to resolve this