Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"yarn add node-sass" takes long time to finished or never finshed #8126

Closed
Brew-Brew opened this issue May 15, 2020 · 5 comments
Closed

"yarn add node-sass" takes long time to finished or never finshed #8126

Brew-Brew opened this issue May 15, 2020 · 5 comments

Comments

@Brew-Brew
Copy link

Brew-Brew commented May 15, 2020

Bug description

Command

yarn add node-sass

What is the current behavior?

What is the expected behavior?

Steps to Reproduce

  1. yarn add node-sass
  2. "yarn add node-sass" takes long time or never finshed with message "building fresh packages node-sass"

Environment

  • Node Version: v12.16.1
  • Yarn v1 Version: 1.22.4
  • OS and version: mac 10.15.2
@saper
Copy link

saper commented May 17, 2020

I could not reproduce this with my FreeBSD 11.3 amd64 system, using node v13.10.1

Using the following compiler:

> clang -v
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
Target: x86_64-unknown-freebsd11.3
Thread model: posix
InstalledDir: /usr/bin

Here is a full output. Yarn was installed from FreeBSD binary packages.

radziecki> yarn init
yarn init v1.22.4
question name (testproject): 
question version (1.0.0): 
question description: 
question entry point (index.js): 
question repository url: 
question author: 
question license (MIT): 
question private: 
success Saved package.json
Done in 4.82s.
radziecki> ls -al
total 237
drwxr-xr-x   2 saper    staff           3 maj 17 23:25 .
drwxr-xr-x 292 saper    staff         891 maj 17 23:24 ..
-rw-r--r--   1 saper    staff          92 maj 17 23:25 package.json
radziecki> yarn add node-sass
yarn add v1.22.4
info No lockfile found.
[1/4] Resolving packages...
warning node-sass > [email protected]: request has been deprecated, see https:/request/request/issues/3142
warning node-sass > node-gyp > [email protected]: request has been deprecated, see https:/request/request/issues/3142
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 156 new dependencies.
info Direct dependencies
└─ [email protected]
info All dependencies
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
Done in 33.74s.
radziecki> ./node_modules/.bin/node-sass -v
node-sass	4.14.1	(Wrapper)	[JavaScript]
libsass  	3.5.5	(Sass Compiler)	[C/C++]

@Brew-Brew
Copy link
Author

I think it was temporary issue.. It doesn't occur again. so, i will close this issue.

@Messhias
Copy link

@Brew-Brew it's not temporally issue, still happening. Please reopen it and take a better look at it.

Thank you.

@merceyz
Copy link
Member

merceyz commented Jan 21, 2021

It's an external issue, nothing we can do about it.

node-sass is a native dependency and takes a while to build on your system, replace it with sass to avoid having to build node-sass, it's also deprecated and should be replaced anyways.

Warning: LibSass and Node Sass are deprecated. While they will continue to receive maintenance releases indefinitely, there are no plans to add additional features or compatibility with any new CSS or Sass features. Projects that still use it should move onto Dart Sass.
https:/sass/node-sass/blob/0648b5a59df693686e745d3690fc73e768200c47/README.md#node-sass

@Messhias
Copy link

@merceyz and all which still having this issue, the only way I found now to fix this annoying issue is removing completely node-sass from my computer and installing the sass only (and you could work with latest version without issue).

You just have to beware to not use features which doesn't match with your CRA (on our case it's a ReactJS application).

Let's hope in the future the library has totally removed and replaced by sass.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants