I'm trying to use the last 3.9.5 version but I'm unable to build it.
This is what I do:
- get a fresh copy of the code
- `npm install`
- `npm run build` — seems to work ok
- `npm dev:android`— fails becouse of the livereload so I try without the flag:
- `ionic cordova run android`: throws an error just after saying BUILD SUCCESSFULL
BUILD SUCCESSFUL in 15s
|
42 actionable tasks: 42 executed
|
Built the following apk(s):
|
/Users/......./platforms/android/app/build/outputs/apk/debug/app-debug.apk
|
[ERROR] An error occurred while running subprocess cordova.
|
- And if I try `npm run prod:android`, I also get a BUILD SUCCESSFULL but the this error:
Error: Cannot find module './lib/updates'. |
Require stack:
|
- /Users/...../node_modules/@ionic/cli/index.js. |
- /Users/...../node_modules/@ionic/cli/bin/ionic% |
I also tried to build for iOS and get this "Cannot find module './lib/updates'" error
Any idea on why I'm getting this error?
Thanks