Installing through yarn freezes
See original GitHub issueWhen installing Semantic-UI using yarn, yarn gets stuck when it runs the install script of Semantic. It does not matter whether the "autoInstall": true
is set in semantic.json
, so it doesn’t seem to be a problem with the interactive CLI itself.
When yarn is called using --ignore-scripts
it finishes the installation without problems.
This is probably a problem with yarn itself and an issue has been made on the issue tracker of yarn that can be found here, but for completeness I thought to create one here as well.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:43
- Comments:21 (2 by maintainers)
Top Results From Across the Web
yarn install hangs during "Fetching packages..." #764 - GitHub
Bug What is the current behavior? yarn install hangs at fetching packages and does not provide any further information as to the cause....
Read more >Yarn install hangs and never completes - CircleCI Discuss
Set the install command to - sleep 150 && yarn install · SSH into the node during build, stay in bash shell ·...
Read more >Why does `yarn install` hang when fetching packages on ...
When attempting to install the dependencies for my project with Yarn via yarn install , the process (and progress bar indicator) hangs when ......
Read more >yarn install
Running yarn with no command will run yarn install , passing through any ... the continuous integration systems, you should pass --frozen-lockfile flag....
Read more >Freezing your Node.js dependencies with yarn.lock and
The default behavior of yarn install is that the yarn.lock file gets updated if there is any mismatch between package.json and yarn.lock ....
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 FreeTop 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
Top GitHub Comments
In the end I ran
npm install --save semantic-ui
, which ran the install script, and thenyarn install
which baked the versions into yarn.lock andgulp install
was quietly circumvented because it considered Semantic UI had already been installed. Kind of clunky but I think it did the trick?Half a Solution:
I have found that if you use
semantic.json
and haveautoInstall: false
it will skip the interactive CLI and won’t freeze your build!The condition for it to work is to have semantic-ui already installed at the location given at
"base"