Skip to content

Commit ec96eac

Browse files
Docs: add warning callout for Yarn Berry for Bootstrap examples compat (#41036)
1 parent 7002738 commit ec96eac

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

site/content/docs/5.3/getting-started/download.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ Install Bootstrap in your Node.js powered apps with [the yarn package](https://y
100100
yarn add bootstrap@{{< param "current_version" >}}
101101
```
102102

103+
{{< callout warning >}}
104+
**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:
105+
106+
```sh
107+
yarn config set nodeLinker node-modules # Use the node_modules linker
108+
touch yarn.lock # Create an empty yarn.lock file
109+
yarn install # Install the dependencies
110+
yarn start # Start the project
111+
```
112+
{{< /callout >}}
113+
103114
### RubyGems
104115

105116
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):

0 commit comments

Comments
 (0)