question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not work "yarn" if Node version 12+

See original GitHub issue

Prerequisites

  • Using yarn
  • Using node 12.x

Expected Behavior

Then i using the latest version of Node.js (now it is 12.1.0), there is a mistake at installation of dependences (node-sass):

yarn

It happens because of the old version of node-sass (in the project: ^4.10.0, but for work with Node.js v 12, the version of node-sass 4.12 is necessary).

Possible Solution

Therefore it is necessary to update manually node-sass to the latest version, before execution of the command of yarn:

node i node-sass

Steps to Reproduce (for bugs)

  1. Install latest Node.js version (12.x)

  2. git clone … in folder

  3. yarn

  4. Result: Error (can’t install node-sass)

Your Environment

  • Node version : 12.1.0
  • Operating System and version : Windows 10

P.s.: Maybe I know not enough how work yarn, but it caused in me a problem.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:7

github_iconTop GitHub Comments

4reactions
sbaum23commented, Jul 25, 2019

Same problem for me. Updating node-sass in package.json to use version ^4.12.0 fixed the problem for me.

0reactions
MBetterscommented, Sep 5, 2019

Updating node-sass to 4.12.0 fixed it for me as well. (I’m also using Node v12)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot yarn install on node>=12 due to incompatible fsevents
On node>=12 , running yarn install within a fresh clone of styled-components/master results in fsevents failing to build.
Read more >
Yarn not installing in nvm version node version - Stack Overflow
When you install a new node version using nvm and then used npm to install yarn, you need to reinstall the yarn for...
Read more >
Installation | Yarn
You can install Yarn through the Homebrew package manager. This will also install Node.js if it is not already installed. ; If you...
Read more >
How To Install and Use the Yarn Package Manager for Node.js
js installed, type the following command into your local command line terminal: node -v. If you see a version number, such as v12.16.3...
Read more >
Enforcing Node.js, npm, and Yarn Versions - Chris Shepherd
If in fact you're using Yarn (I prefer to) then any time you run a Yarn command it will make sure your local...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found