You need to run npm install in your native build project. You need these:
There is no need to run npm install in the Mendix project as the module brings along the javascript files.
The only outgoing changes will be package.json and package-lock.json. Be sure to commit and push to the repo. If you then build in appcenter it should work. If you build yourself, locally, you need to run pod install in the ios folder for iOS. For Android, don't forget to sync the project with the gradle files.
Did you follow the steps described here?
https://docs.mendix.com/howto/extensibility/create-native-javascript-action#installing-dependency-app