# Devenv.nix does not exist

**URL:** https://discuss.ihp.digitallyinduced.com/t/devenv-nix-does-not-exist/68
**Category:** General
**Created:** [August 5, 2024, 2:30am UTC](https://discuss.ihp.digitallyinduced.com/t/devenv-nix-does-not-exist/68 "2024-08-05T02:30:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Ashereye](https://discuss.ihp.digitallyinduced.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@Ashereye](https://discuss.ihp.digitallyinduced.com/u/Ashereye)
#### Post date: [August 5, 2024, 2:30am UTC](https://discuss.ihp.digitallyinduced.com/t/devenv-nix-does-not-exist/68/1 "2024-08-05T02:30:38Z")

</div>

While following the instructions here: [IHP Guide](https://ihp.digitallyinduced.com/Guide/your-first-project.html), I ran into an error running ./start. The error states that devenv.nix does not exist and I should run devenv init. Attempting to run devenv init gives an error message stating that the file /home/demo/blog/.envrc already exists.

`  
[demo@nixos:~]$ cd blog

[demo@nixos:~/blog]$ ./start  
Error: × File devenv.nix does not exist. To get started, run:  
│  
│ $ devenv init  
│

[demo@nixos:~/blog]$ devenv up  
Error: × File devenv.nix does not exist. To get started, run:  
│  
│ $ devenv init  
│

[demo@nixos:~/blog]$ devenv init  
Error: × File already exists /home/demo/blog/.envrc

[demo@nixos:~/blog]$ devenv up  
Error: × File devenv.nix does not exist. To get started, run:  
│  
│ $ devenv init  
│  
`  
I did run start once before I had installed devenv by adding it to my configuration.nix, so perhaps it was caused by that. What would be the best way to proceed? Should I just delete the .envrc file and try again?

Thanks for any help.

---

<div class="post-metadata">

### Author: ![amitaibu](https://discuss.ihp.digitallyinduced.com/user_avatar/discuss.ihp.digitallyinduced.com/amitaibu/32/19_2.png) [@amitaibu](https://discuss.ihp.digitallyinduced.com/u/amitaibu)
#### Post date: [August 5, 2024, 10:19am UTC](https://discuss.ihp.digitallyinduced.com/t/devenv-nix-does-not-exist/68/2 "2024-08-05T10:19:20Z")

</div>

> [@Ashereye](#):
>
> ./start

Are you using the latest IHP version?

make sure that after you `cd blog` you also `direnv allow`

`devenv init` shouldn’t be needed at all

---

<div class="post-metadata">

### Author: ![Ashereye](https://discuss.ihp.digitallyinduced.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@Ashereye](https://discuss.ihp.digitallyinduced.com/u/Ashereye)
#### Post date: [August 5, 2024, 4:25pm UTC](https://discuss.ihp.digitallyinduced.com/t/devenv-nix-does-not-exist/68/3 "2024-08-05T16:25:34Z")

</div>

It looks to me like the latest version:  
`  
[demo@nixos:~/blog]$ ihp-new --version

ihp-new version: 1.3.0  
`  
Ran “devenv allow”, I’m still getting the same message from ./start for now.

---

<div class="post-metadata">

### Author: ![marc](https://discuss.ihp.digitallyinduced.com/user_avatar/discuss.ihp.digitallyinduced.com/marc/32/9_2.png) [@marc](https://discuss.ihp.digitallyinduced.com/u/marc)
#### Post date: [August 5, 2024, 6:17pm UTC](https://discuss.ihp.digitallyinduced.com/t/devenv-nix-does-not-exist/68/4 "2024-08-05T18:17:01Z")

</div>

Can you try to run `nix develop --impure` and then `devenv up`?

---

<div class="post-metadata">

### Author: ![Ashereye](https://discuss.ihp.digitallyinduced.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@Ashereye](https://discuss.ihp.digitallyinduced.com/u/Ashereye)
#### Post date: [August 5, 2024, 6:48pm UTC](https://discuss.ihp.digitallyinduced.com/t/devenv-nix-does-not-exist/68/5 "2024-08-05T18:48:53Z")

</div>

Looks like that worked, it opened the IHP IDE in my browser, and the console is showing a curses app. The curses app interestingly lists the version in the top left as v1.2.0, not sure why that’s not consistent with what “ihp-new --version” gave me.

---

<div class="post-metadata">

### Author: ![amitaibu](https://discuss.ihp.digitallyinduced.com/user_avatar/discuss.ihp.digitallyinduced.com/amitaibu/32/19_2.png) [@amitaibu](https://discuss.ihp.digitallyinduced.com/u/amitaibu)
#### Post date: [August 6, 2024, 5:43am UTC](https://discuss.ihp.digitallyinduced.com/t/devenv-nix-does-not-exist/68/6 "2024-08-06T05:43:51Z")

</div>

> [@marc](#):
>
> Can you try to run `nix develop --impure`

How does it help? I never had to run it, so wondering what is the use case.

---

<div class="post-metadata">

### Author: ![marc](https://discuss.ihp.digitallyinduced.com/user_avatar/discuss.ihp.digitallyinduced.com/marc/32/9_2.png) [@marc](https://discuss.ihp.digitallyinduced.com/u/marc)
#### Post date: [August 6, 2024, 1:29pm UTC](https://discuss.ihp.digitallyinduced.com/t/devenv-nix-does-not-exist/68/7 "2024-08-06T13:29:16Z")

</div>

When `direnv` is not working for some reason (e.g. not loaded correctly in the shell), with `nix develop` we just do manually what `direnv` does automatically
