Node Sass could not find a binding for your current environment

Hi

When trying to create a deploy package with iOS (Xcode 10) or Android I get an error, however when I use Xcode 9, it creates package with no problem. It makes no sense? I’ve looked at other posts but since I can’t control the VM you create I’m stuck… help please.

[09:51:27]: Installing Dependencies [09:51:27]: npm install --quiet --no-optional [09:51:37]: ▸ npm WARN @angular/compiler-cli@7.2.7 requires a peer of @angular/compiler@7.2.7 but none is installed. You must install peer dependencies yourself. [09:51:37]: ▸ npm WARN @angular/compiler-cli@7.2.7 requires a peer of typescript@>=3.1.1 <3.3 but none is installed. You must install peer dependencies yourself. [09:51:37]: ▸ npm WARN @ionic/pro@2.0.3 requires a peer of cordova-plugin-ionic@^5.0.0 but none is installed. You must install peer dependencies yourself. [09:51:37]: ▸ audited 20580 packages in 8.577s [09:51:37]: ▸ found 0 vulnerabilities [09:51:37]: Build script detected.. [09:51:37]: npm run build [09:51:37]: ▸ > tna@0.0.1 build /Users/ionic/builds/fivejstudios/tna [09:51:37]: ▸ > ionic-app-scripts build [09:51:39]: ▸ /Users/ionic/builds/fivejstudios/tna/node_modules/node-sass/lib/binding.js:15 [09:51:39]: ▸ throw new Error(errors.missingBinary()); [09:51:39]: ▸ ^ [09:51:39]: ▸ Error: Missing binding /Users/ionic/builds/fivejstudios/tna/node_modules/node-sass/vendor/darwin-x64-64/binding.node [09:51:39]: ▸ Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 10.x [09:51:39]: ▸ Found bindings for the following environments: [09:51:39]: ▸ - OS X 64-bit with Node.js 8.x [09:51:39]: ▸ This usually happens because your environment has changed since running npm install. [09:51:39]: ▸ Run npm rebuild node-sass to download the binding for your current environment. [09:51:39]: ▸ at module.exports (/Users/ionic/builds/fivejstudios/tna/node_modules/node-sass/lib/binding.js:15:13) [09:51:39]: ▸ at Object. (/Users/ionic/builds/fivejstudios/tna/node_modules/node-sass/lib/index.js:14:35) [09:51:39]: ▸ at Module._compile (internal/modules/cjs/loader.js:689:30) [09:51:39]: ▸ at Object.Module._extensions…js (internal/modules/cjs/loader.js:700:10) [09:51:39]: ▸ at Module.load (internal/modules/cjs/loader.js:599:32) [09:51:39]: ▸ at tryModuleLoad (internal/modules/cjs/loader.js:538:12) [09:51:39]: ▸ at Function.Module._load (internal/modules/cjs/loader.js:530:3) [09:51:39]: ▸ at Module.require (internal/modules/cjs/loader.js:637:17) [09:51:39]: ▸ at require (internal/modules/cjs/helpers.js:22:18) [09:51:39]: ▸ at Object. (/Users/ionic/builds/fivejstudios/tna/node_modules/@ionic/app-scripts/dist/core/bundle-components.js:6:16)

SOLVED: on this project the .gitignore was not set up properly. I found the solution in this post: Node-Sass binding environment - Ionic Pro Building Error as well as making sure I’d removed any issues with ionic doctor check and npm audit