Not work "yarn" if Node version 12+
See original GitHub issuePrerequisites
- 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)
-
Install latest Node.js version (12.x)
-
git clone … in folder
-
yarn
-
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:
- Created 4 years ago
- Reactions:11
- Comments:7
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same problem for me. Updating
node-sass
inpackage.json
to use version^4.12.0
fixed the problem for me.Updating
node-sass
to4.12.0
fixed it for me as well. (I’m also using Node v12)