Skip to main content
Post Undeleted by Youssouf Oumar
added 158 characters in body
Source Link
Youssouf Oumar
  • 47.5k
  • 16
  • 109
  • 108

First solution

Try doing so, it worked from. You need to remove it fromMake sure your packagenode.jsonjs with oneversion is not superior to the blocks belowrecommended one.

  If you are using npmnot, downgrade it, and for that, you could use node-sass is in yourn package from dependenciesnpm  :

npm uninstall node-sass --save npm install node-sass --save 
npm install -g n n stable # If one of the commands does not pass, you may need to use sudo sudo npm install -g n sudo n stable 

IfThen you are using npm and that node-sass is in yourwould wanna use devDependenciessass package instead of node-sass, as it's deprecated. And for that, run those commands:

npm uninstall node-sass --save-dev npm install node-sass --save-dev 
npm uninstall node-sass --save npm install sass --save 

Second solution

If you are using yarn and thatneed or want node-sass is infor some reason, you should downgrade your dependenciesnodejs :

yarn remove node-sass --save yarn add node-sass --save 

If you are usingversion to like yarn v14and. For that you can use node-sass is in yourn package from devDependenciesnpm  :

yarn remove node-sass --save-dev yarn add node-sass --save-dev 
npm install -g n n 14 # If one of the commands does not pass, you may need to use sudo sudo npm install -g n sudo n 14 

Try doing so, it worked from. You need to remove it from package.json with one the blocks below.

  If you are using npm and that node-sass is in your dependencies  :

npm uninstall node-sass --save npm install node-sass --save 

If you are using npm and that node-sass is in your devDependencies :

npm uninstall node-sass --save-dev npm install node-sass --save-dev 

If you are using yarn and that node-sass is in your dependencies :

yarn remove node-sass --save yarn add node-sass --save 

If you are using yarn and that node-sass is in your devDependencies  :

yarn remove node-sass --save-dev yarn add node-sass --save-dev 

First solution

Make sure your node.js version is not superior to the recommended one. If not, downgrade it, and for that, you could use n package from npm:

npm install -g n n stable # If one of the commands does not pass, you may need to use sudo sudo npm install -g n sudo n stable 

Then you would wanna use sass package instead of node-sass, as it's deprecated. And for that, run those commands:

npm uninstall node-sass --save npm install sass --save 

Second solution

If you need or want node-sass for some reason, you should downgrade your nodejs version to like v14. For that you can use n package from npm:

npm install -g n n 14 # If one of the commands does not pass, you may need to use sudo sudo npm install -g n sudo n 14 
Post Deleted by Youssouf Oumar
Source Link
Youssouf Oumar
  • 47.5k
  • 16
  • 109
  • 108

Try doing so, it worked from. You need to remove it from package.json with one the blocks below.

If you are using npm and that node-sass is in your dependencies :

npm uninstall node-sass --save npm install node-sass --save 

If you are using npm and that node-sass is in your devDependencies :

npm uninstall node-sass --save-dev npm install node-sass --save-dev 

If you are using yarn and that node-sass is in your dependencies :

yarn remove node-sass --save yarn add node-sass --save 

If you are using yarn and that node-sass is in your devDependencies :

yarn remove node-sass --save-dev yarn add node-sass --save-dev