Unable to run ionic app on macOS Catalina which is developed in windows

Hi My ionic project developed in windows and now I want to shift it from windows to MacBook Air which is having macOS Cataline. I’m getting errors

Whats the first and basic to do when we shifted project from windows to macO

Check a fresh copy of the source tree out from version control on your Mac and then run npm i inside it. This implicitly means “you didn’t just copy the entire project directory over, did you?”. If you aren’t using version control like git, start right now. Along with making transfering build environments like you are doing now easy, it is going to save you a lot of headache on many fronts.

This is my project structure when fetched from GitHub.
When I run npm I
I’m getting following error

gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /Users/user/Desktop/mobile-latest/node_modules/leveldown
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm ERR! errno 1
npm ERR! leveldown@2.1.1 install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the leveldown@2.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/user/.npm/_logs/2019-10-30T07_04_39_086Z-debug.log

Copy only the ‘config.xml’, ‘package.json‘ and ‘src’ folder into a new folder, go to the new folder with Terminal and type ‘npm install’. It should build the project successfully.


Still same issue

This seems to be like issue with version of dependancies namely, npm or node or even Ionic version. Please update these similar to that in Windows machine. Then remove your platform, node_modules and www folder and then rebuild your app.