Hybrid mobile build localy

I try to build my Hybrid mobile app locally because The PhoneGap from Adobe is not supported anymore. So I have install android studio and Node.js. Also downloaded the mobile packet from Mendix for local build. When I try to run the following cmd: npm i && npm run package && npm run platform:android I get this error: Failed to fetch platform cordova-android@^8.1.0   npm ERR! code 1 npm ERR! path C:\Users\***********\phonegap npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c cd build && phonegap platform add android  
2 answers

Where stand the /g for?
I get this error
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /g/package.json
npm ERR! errno -4058


I have the same issues. Does someone knows a sollution?