<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Oleg</title>
    <description>The latest articles on DEV Community by Oleg (@sibstark).</description>
    <link>https://dev.to/sibstark</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1602377%2F8e75604a-1a9f-4510-9dce-40026102616c.jpeg</url>
      <title>DEV Community: Oleg</title>
      <link>https://dev.to/sibstark</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sibstark"/>
    <language>en</language>
    <item>
      <title>zsh: command not found: bun</title>
      <dc:creator>Oleg</dc:creator>
      <pubDate>Sun, 05 Jan 2025 10:36:07 +0000</pubDate>
      <link>https://dev.to/sibstark/zsh-command-not-found-bun-7n1</link>
      <guid>https://dev.to/sibstark/zsh-command-not-found-bun-7n1</guid>
      <description>&lt;p&gt;Hello, my fellow readers! &lt;br&gt;
When I first tried to set up &lt;a href="https://bun.sh/" rel="noopener noreferrer"&gt;bun&lt;/a&gt; I expected that Bun would work from any location on my disk. However, I encountered &lt;code&gt;zsh: command not found&lt;/code&gt; when I tried running bun command from my repository.&lt;/p&gt;

&lt;p&gt;The next second, I googled this error and found what seems to be the most-viewed topic on the matter here &lt;a href="https://stackoverflow.com/questions/72902668/bun-not-found-after-running-installation-script" rel="noopener noreferrer"&gt;stackoverflow&lt;/a&gt;. &lt;br&gt;
People suggest fixing this issue by adding in .bashrc file such code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export BUN_INSTALL="/home/YOUR_USERNAME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Unfortunately, this didn't work on my Mac and I realized that .bashrc is for Linux OS and working solution in my case is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to /Users/{your username}&lt;/li&gt;
&lt;li&gt;Create .zshrc file if it doesn’t already exist&lt;/li&gt;
&lt;li&gt;Add the following code to the &lt;code&gt;.zshrc&lt;/code&gt; file
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I hope this information is helpful to someone!&lt;/p&gt;

</description>
      <category>bunjs</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
