Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error at new SubprocessError in ionic cordova build ios

I'm going to build ios platform on Mac and I have this problem.

I use macOS 10.12, Xcode 8 and Ionic 4. I've tried "ionic cordova platform rm ios" and "ionic cordova platform add ios" and build but it's still not working.

Daos-Mac:Ionic_UI_V1 daovu$ ionic cordova build ios

ng run app:ionic-cordova-build --platform=ios

Error at new SubprocessError (/usr/local/lib/node_modules/ionic/node_modules/@ionic/utils-subprocess/dist/index.js:40:23) ...

like image 939
Vũ Minh Avatar asked Sep 07 '25 17:09

Vũ Minh


2 Answers

Delete node_modules folder and package-lock.json file and then run npm install

Problem will be solved

like image 89
Yash Rathod Avatar answered Sep 09 '25 21:09

Yash Rathod


try to delete "node_modules" folder and run npm install

like image 31
Filippe Mafra Avatar answered Sep 09 '25 22:09

Filippe Mafra