NPM Install error in IOS with Ionic 3 Project

Hi, i’m using macOS Monterey and i’m having problem now using my ionic project. i always get a error when using NPM Install. If someone could help me, i don’t know what to do. I’m having this problem


NPM - 8.13.1
NODE - v16.15.1
Angular CLI: 14.0.2
Ionic: 6.12.1
OS: darwin x64

I’m getting this error

6539 verbose stack Error: command failed
6539 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27)
6539 verbose stack     at ChildProcess.emit (node:events:527:28)
6539 verbose stack     at maybeClose (node:internal/child_process:1092:16)
6539 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
6540 verbose pkgid node-sass@4.14.1
6541 verbose cwd /Users/user221932/Desktop/ionic5/CadastralSPW
6542 verbose Darwin 21.4.0
6543 verbose node v16.15.1
6544 verbose npm  v8.13.1
6545 error code 1
6546 error path /Users/Desktop/ionic/Project/node_modules/node-sass
6547 error command failed

Does anyone know what this error means? Thanks


delete your node_modules folder and the package-lock.json and run npm i again.
If it doesn’t work you can try to rebuild node-sass: javascript - Build Fails: `npm rebuild node-sass --force` - Stack Overflow

You are using a node version that is not compatible with ionic 3. you must downgrade.