₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,324,984 members, 8,419,822 topics. Date: Thursday, 04 June 2026 at 12:03 AM

Toggle theme

Node-sass Not Installing - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingNode-sass Not Installing (991 Views)

1 Reply (Go Down)

Node-sass Not Installing by Stormtrooper11(op): 8:00am On Nov 30, 2022
Hey guys, I'm currently working on a MERN project and I had to install node-sass for the react frontend part. I tried npm i node-sass, yarn add node-sass and other commands but it doesn't seem to work. I've checked out stackoverflow.com to know avail.

Please, any suggestions on how I could get this done? Thanks very much.
Re: Node-sass Not Installing by jikins(m): 10:22am On Nov 30, 2022
Stormtrooper11:
Hey guys, I'm currently working on a MERN project and I had to install node-sass for the react frontend part. I tried npm i node-sass, yarn add node-sass and other commands but it doesn't seem to work. I've checked out stackoverflow.com to know avail.

Please, any suggestions on how I could get this done? Thanks very much.
Node-sass has been depreciated I believe, install sass instead
Re: Node-sass Not Installing by qtguru(m): 11:05am On Nov 30, 2022
Node-sass still relies on sass, install Ruby and sass package
Re: Node-sass Not Installing by Deicide: 12:51pm On Nov 30, 2022
And for we Nigerians way day manage data, I'll suggest you move from yarn|npm to pnpm.
Re: Node-sass Not Installing by Stormtrooper11(op): 4:48pm On Nov 30, 2022
jikins:
Node-sass has been depreciated I believe, install sass instead
Sass is already installed but the error is asking for the installation of node-sass
Re: Node-sass Not Installing by Stormtrooper11(op): 4:49pm On Nov 30, 2022
Deicide:
And for we Nigerians way day manage data, I'll suggest you move from yarn|npm to pnpm.
Pnpm consumes little data?
Re: Node-sass Not Installing by Deicide: 5:16pm On Nov 30, 2022
Stormtrooper11:
Pnpm consumes little data?
No pnpm is download once and then you can do something like pnpm add <PKG> --ofline
Re: Node-sass Not Installing by QuoteJustOnce: 6:55pm On Nov 30, 2022
Deicide:
No pnpm is download once and then you can do something like pnpm add <PKG> --ofline
yarn does the same thing by caching packages, install once and install again offline as long as cache hasn't been cleared.
OP, i am sure you realize there are many ways to achieve something. and you didnt state if you're on a Linux, Macos or Windows machine
Re: Node-sass Not Installing by qtguru(m): 6:56pm On Nov 30, 2022
Stormtrooper11:
Sass is already installed but the error is asking for the installation of node-sass
oh i see, i experienced that too, just run sass alone on watch mode you don't need node-sass, if you have sass

are you on Linux or Windows ?
Re: Node-sass Not Installing by Stormtrooper11(op): 8:01pm On Nov 30, 2022
qtguru:
oh i see, i experienced that too, just run sass alone on watch mode you don't need node-sass, if you have sass

are you on Linux or Windows ?
I am on Windows.
Re: Node-sass Not Installing by Stormtrooper11(op): 8:01pm On Nov 30, 2022
Deicide:
No pnpm is download once and then you can do something like pnpm add <PKG> --ofline
Wow
Re: Node-sass Not Installing by qtguru(m): 8:05pm On Nov 30, 2022
Stormtrooper11:
I am on Windows.
can run sass in the command line and it works ?
Re: Node-sass Not Installing by Deicide: 8:55pm On Nov 30, 2022
QuoteJustOnce:
yarn does the same thing by caching packages, install once and install again offline as long as cache hasn't been cleared.
OP, i am sure you realize there are many ways to achieve something. and you didnt state if you're on a Linux, Macos or Windows machine
on the same project or separate project?
Re: Node-sass Not Installing by Stormtrooper11(op): 10:11pm On Nov 30, 2022
qtguru:
can run sass in the command line and it works ?
It's presently not working maybe because I already have sass installed as a package but the app is still asking for node-sass
Re: Node-sass Not Installing by QuoteJustOnce: 12:33am On Dec 01, 2022
Deicide:
on the same project or separate project?
the cache is both local & global (localFirst then Global strategy), so will work on different projects
Re: Node-sass Not Installing by Qinglong(m): 12:40am On Dec 01, 2022
Stormtrooper11:
It's presently not working maybe because I already have sass installed as a package but the app is still asking for node-sass
Did not work for me as well when I was trying to learn Sass. I just followed this from stack overflow.
I faced the similar issue in my local HTML Project. You should make following changes:

You should uninstall node-sass first.

npm uninstall node-sass
Install sass as dev dependency.

npm install sass --save-dev
Update your script in package.json

sass -w scss/ -o dist/css/ --recursive
This will fix the issue in most of the cases.
I think I tweaked some things, I am not even sure again but it was this post that helped me.

This was for CSS though, so I'm not sure if it'll work for your issue.
Re: Node-sass Not Installing by Stormtrooper11(op): 6:52am On Dec 01, 2022
Qinglong:
Did not work for me as well when I was trying to learn Sass. I just followed this from stack overflow.

I think I tweaked some things, I am not even sure again but it was this post that helped me.

This was for CSS though, so I'm not sure if it'll work for your issue.
Thanks very much
Re: Node-sass Not Installing by Deicide: 10:25am On Dec 01, 2022
QuoteJustOnce:
the cache is both local & global (localFirst then Global strategy), so will work on different projects
Well I didn't know that, anyways good to know.
1 Reply

How To Install Sass?Pycharm Is Not Installing. Help!!!React Js Not Installing234

Linking Visual Basic 6.0 With MS Word And OthersJava Instsllatin 5/ePlease Help Review Our Garage48 Entry: Cooknchop. Thanks