0

Getting this error "Node Sass version 7.0.1 is incompatible with ^4.0.0 || ^5.0.0." after serving project by ng serve. Tried to downgrade versions of nod and npm but result is the same. And it seems it wnats to change node sass version but I don't have that package in my package.json.

here is my package.json file

{
  "name": "webmaster",
  "version": "0.0.1",
  "scripts": {
    "ng": "ng",
    "start": "ng serve -o",
    "build": "ng build --prod",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular-slider/ngx-slider": "^2.0.3",
    "@angular/animations": "~11.2.3",
    "@angular/common": "~11.2.3",
    "@angular/compiler": "~11.2.3",
    "@angular/core": "~11.2.3",
    "@angular/forms": "~11.2.3",
    "@angular/platform-browser": "~11.2.3",
    "@angular/platform-browser-dynamic": "~11.2.3",
    "@angular/router": "~11.2.3",
    "@angular/service-worker": "~11.2.3",
    "@datadog/browser-rum": "^4.19.1",
    "@fingerprintjs/fingerprintjs-pro": "^3.6.0",
    "@ngx-translate/core": "^13.0.0",
    "@ngx-translate/http-loader": "^6.0.0",
    "@sentry/angular": "^7.13.0",
    "@sentry/tracing": "^7.13.0",
    "@swimlane/ngx-datatable": "^20.0.0",
    "jsencrypt": "^3.2.1",
    "ng-recaptcha": "^8.0.1",
    "ngx-cookie-service": "^11.0.2",
    "ngx-device-detector": "^2.1.1",
    "ngx-image-compress": "^11.0.3",
    "ngx-infinite-scroll": "^10.0.1",
    "ngx-mask": "^12.0.0",
    "ngx-owl-carousel-o": "^5.1.0",
    "rxjs": "~6.6.0",
    "tslib": "^2.0.0",
    "zone.js": "~0.11.3"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.1102.2",
    "@angular/cli": "~11.2.2",
    "@angular/compiler-cli": "~11.2.3",
    "@types/jasmine": "~3.6.0",
    "@types/node": "^12.11.1",
    "codelyzer": "^6.0.0",
    "jasmine-core": "~3.6.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~6.1.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.0.3",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "1.5.0",
    "protractor": "~7.0.0",
    "ts-node": "~8.3.0",
    "tslint": "~6.1.0",
    "typescript": "~4.1.2"
  }
}

node version is v14.18.0 npm version is 6.14.15

How can I fix this?

enter image description here

Hovhannes Gevorgyan
  • 502
  • 1
  • 8
  • 22
  • Does this answer your question? [Node.js Sass version 7.0.0 is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0](https://stackoverflow.com/questions/70281346/node-js-sass-version-7-0-0-is-incompatible-with-4-0-0-5-0-0-6-0-0) – raina77ow Nov 04 '22 at 12:25

0 Answers0