Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,016 members, 7,818,001 topics. Date: Sunday, 05 May 2024 at 03:18 AM

Node-sass Not Installing - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Node-sass Not Installing (553 Views)

Pycharm Is Not Installing. Help!!! / Bootstrap Vs SASS Vs Material UI / React Js Not Installing (2) (3) (4)

(1) (Reply) (Go Down)

Node-sass Not Installing by Stormtrooper11(m): 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

1 Like

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

1 Like

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(m): 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(m): 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 ?

1 Like

Re: Node-sass Not Installing by Stormtrooper11(m): 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(m): 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(m): 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(m): 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)

Beginner Programmers! / Good WHM (webhost Manager With Unlimited Disk Space) / Software

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 19
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.