Hi, I’m just making some changes in an Ionic v1 app that I made 3 years ago, the main problem is that the Mac computer in which I developed that project is out of order, we made backup of the project, but you know the NPM, Cordova and Ionic global files aren’t present in that backup.
When I first run the project in my actual Mac High Sierra, I installed NPM, Cordova and Ionic, and did run Ionic server. The project is in v1, so I plan to keep this version, just wanted to do some CSS and HTML changes to the app.
But the Cordova had some issues when building the iOS or Android projects, so I started to search the errors on Google, trying to fix that errors.
Now, I can’t even start “ionic serve” on my machine. This is the error shown on the Terminal when I run “ionic serve”:
[v1] module.js:549 [v1] throw err; [v1] ^ [v1] Error: Cannot find module './debug' [v1] at Function.Module._resolveFilename (module.js:547:15) [v1] at Function.Module._load (module.js:474:25) [v1] at Module.require (module.js:596:17) [v1] at require (internal/module.js:11:18) [v1] at Object.<anonymous> (/Applications/MAMP/htdocs/myProject/app3/node_modules/@ionic/v1-toolkit/node_modules/debug/src/node.js:14:28) [v1] at Module._compile (module.js:652:30) [v1] at Object.Module._extensions..js (module.js:663:10) [v1] at Module.load (module.js:565:32) [v1] at tryModuleLoad (module.js:505:12) [v1] at Function.Module._load (module.js:497:3) [ERROR] A utility CLI has unexpectedly closed (exit code 1). The Ionic CLI will exit. Please check any output above for error details.