<p>I had success with just fully <strong>uninstalling nix</strong>.</p>
<p>However, uninstalling nix wasn't straight forward either (surprise!).  From my research, here are options that worked.</p>
<p><strong>How to uninstall nix</strong>:</p>
<ol>
<li>Script <a href="https://gist.github.com/kintsugi/47e5e9f9d7c3a3a2f6004b6271365f8c" rel="nofollow noreferrer">Github kintsugi/uninstall-nix-osx.sh</a>
<ul>
<li>(hat tip to the tutorial <a href="https://github.com/renzwo/cardano-plutus-apps-install-m1/blob/main/README.md" rel="nofollow noreferrer">https://github.com/renzwo/cardano-plutus-apps-install-m1/blob/main/README.md</a>, see very bottom)</li>
<li>from terminal, cd to desktop (or whatever is easiest)</li>
<li><code>git clone https://gist.github.com/47e5e9f9d7c3a3a2f6004b6271365f8c.git</code></li>
<li>in terminal, <code>sudo sh &lt;drag-and-drop-file-here&gt;</code> or <code>sudo sh &lt;/path/to/file/and_file_here&gt;</code></li>
</ul>
</li>
</ol>
<p>OR</p>
<ol start="2">
<li><p>Manually follow <a href="https://github.com/NixOS/nix/issues/1402#issuecomment-312496360" rel="nofollow noreferrer">Github Issue, How to remove nix #1402</a></p>
<ul>
<li>I did this just as backup, #1 already worked, although there were some caution statements.</li>
</ul>
</li>
<li><p><strong>RESTART COMPUTER</strong></p>
</li>
<li><p>In new tab, in ~/plutus-apps directory</p>
<ul>
<li><code>nix doctor --verbose</code> now all passes!</li>
</ul>
</li>
</ol>
<p>So far, the nix-build, nix-shell have worked too...</p>

CC BY-SA 4.0
2022-01-22T10:38:23.473Z
As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer).
Community
CC BY-SA 4.0
2022-01-21T03:39:29.123Z
2022-01-22T13:46:58.590Z
2022-01-22T13:46:58.590Z
TheStophe
<p>After performing a git commit tag update on plutus-apps, I restarted my computer, and ran <code>nix doctor --verbose</code> and got the following FAIL</p>
<pre><code>  [FAIL] Multiple versions of nix found in PATH:
    /nix/store/iq3ra93h9kxmnrw3zlxmqn8ng5w62dra-nix-2.5.1/bin
    /nix/store/j6fqvmsfhl4frzqn2f3bzhn8hr16j5q5-nix-2.5.1/bin
</code></pre>
<p>How do I correct this?</p>

CC BY-SA 4.0
2022-01-20T02:03:55.580Z
Updates on troubleshooting:
1. performed nix install `sh <(curl -L https://nixos.org/nix/install) --daemon`
2. read up on nix-store documentation 
3. performed `nix-store --delete /nix/store/j6fqvmsfhl4frzqn2f3bzhn8hr16j5q5-nix-2.5.1/bin` to delete both instances, got "error: Cannot delete path /nix/store/... since it is still alive.  To find out why, use: nix-store --query --roots.
TheStophe
CC BY-SA 4.0
2022-01-20T02:31:03.193Z
I may have created two profiles in /nix/var/nix/profiles/per-user/<username> as profile-link-1 and profile-link-2, potentially two different user environments.  I may have done something twice and nix made two different user env rather than overrride. See https://nixos.org/manual/nix/stable/introduction.html?highlight=%2Fnix%2Fvar%2Fnix%2Fprofiles%2Fper-user%2F#multi-user-support
TheStophe
<plutus-pioneer-program><nix><macos>
nix doctor --verbose [FAIL] Multiple versions of nix found in PATH, on MacOS i7
# nix doctor --verbose [FAIL] Multiple versions of nix found in PATH, on MacOS i7

(Asked by: username_0 on 2022-01-19)

After performing a git commit tag update on plutus-apps, I restarted my computer, and ran nix doctor --verbose and got the following FAIL
  [FAIL] Multiple versions of nix found in PATH:
    /nix/store/iq3ra93h9kxmnrw3zlxmqn8ng5w62dra-nix-2.5.1/bin
    /nix/store/j6fqvmsfhl4frzqn2f3bzhn8hr16j5q5-nix-2.5.1/bin

How do I correct this?

**Tags:** plutus-pioneer-program, nix, macos
> **Comments:**
> **username_0**: Updates on troubleshooting: 1. performed nix install `sh <(curl -L https://nixos.org/nix/install) --daemon` 2. read up on nix-store documentation  3. performed `nix-store --delete /nix/store/j6fqvmsfhl4frzqn2f3bzhn8hr16j5q5-nix-2.5.1/bin` to delete both instances, got "error: Cannot delete path /nix/store/... since it is still alive.  To find out why, use: nix-store --query --roots.  
> **username_0**: I may have created two profiles in /nix/var/nix/profiles/per-user/<username> as profile-link-1 and profile-link-2, potentially two different user environments.  I may have done something twice and nix made two different user env rather than overrride. See https://nixos.org/manual/nix/stable/introduction.html?highlight=%2Fnix%2Fvar%2Fnix%2Fprofiles%2Fper-user%2F#multi-user-support  

---

## 1 answers

### Answer by username_0 on 2022-01-21. Score: 0

I had success with just fully **uninstalling nix**.

However, uninstalling nix wasn't straight forward either (surprise!). From my research, here are options that worked.

**How to uninstall nix**:

1. Script [Github kintsugi/uninstall-nix-osx.sh](https://gist.github.com/kintsugi/47e5e9f9d7c3a3a2f6004b6271365f8c)
   * (hat tip to the tutorial <https://github.com/renzwo/cardano-plutus-apps-install-m1/blob/main/README.md>, see very bottom)
   * from terminal, cd to desktop (or whatever is easiest)
   * `git clone https://gist.github.com/47e5e9f9d7c3a3a2f6004b6271365f8c.git`
   * in terminal, `sudo sh`  or `sudo sh`

OR

2. Manually follow [Github Issue, How to remove nix #1402](https://github.com/NixOS/nix/issues/1402#issuecomment-312496360)

   * I did this just as backup, #1 already worked, although there were some caution statements.
3. **RESTART COMPUTER**
4. In new tab, in ~/plutus-apps directory

   * `nix doctor --verbose` now all passes!

So far, the nix-build, nix-shell have worked too...

> **Comments:**
> **username_1**: As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer).  

---

