]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Docs: add warning callout for Yarn Berry for Bootstrap examples compat (#41036)
authorJulien Déramond <juderamond@gmail.com>
Fri, 22 Nov 2024 09:54:10 +0000 (10:54 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2024 09:54:10 +0000 (10:54 +0100)
site/content/docs/5.3/getting-started/download.md

index 2d0d6276277258c3bfdd8d13503079ff4d4c5f63..e15cb9860c84576e90d908fb5fa0185a9854ba82 100644 (file)
@@ -100,6 +100,17 @@ Install Bootstrap in your Node.js powered apps with [the yarn package](https://y
 yarn add bootstrap@{{< param "current_version" >}}
 ```
 
+{{< callout warning >}}
+**Yarn 2+ (aka Yarn Berry) doesn't support the `node_modules` directory by default**: using our [Sass & JS example](https://github.com/twbs/examples/tree/main/sass-js) needs some adjustments:
+
+```sh
+yarn config set nodeLinker node-modules # Use the node_modules linker
+touch yarn.lock # Create an empty yarn.lock file
+yarn install # Install the dependencies
+yarn start # Start the project
+```
+{{< /callout >}}
+
 ### RubyGems
 
 Install Bootstrap in your Ruby apps using [Bundler](https://bundler.io/) (**recommended**) and [RubyGems](https://rubygems.org/) by adding the following line to your [`Gemfile`](https://bundler.io/guides/gemfile.html):