Cannot find module 'unorm'

Hello everyone,

I am trying to do build for the first time on iOS but getting this error, anyone knows how to solve it? 2 days looking for an answer…

Thank you

Regards

Unable to load Platform API from /Users/manel/Documents/ionic_projects/xstories/xstories/platforms/ios/cordova/Api.js:
Cannot find module 'unorm'
Require stack:
- /Users/manel/Documents/ionic_projects/xstories/xstories/platforms/ios/cordova/Api.js
- /opt/homebrew/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js
- /opt/homebrew/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/index.js
- /opt/homebrew/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js
- /opt/homebrew/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js
- /opt/homebrew/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/plugman.js
- /opt/homebrew/lib/node_modules/cordova/node_modules/cordova-lib/cordova-lib.js
- /opt/homebrew/lib/node_modules/cordova/src/help.js
- /opt/homebrew/lib/node_modules/cordova/src/cli.js
- /opt/homebrew/lib/node_modules/cordova/bin/cordova

???

Google search on the error message

Didn’t help, i solve it downgrading to node v12, came from node v14

1 Like