# Develop Locally Issue

**URL:** <https://forum.communityhealthtoolkit.org/t/develop-locally-issue/2946>\
**Category:** Technical Support\
**Created:** [July 28, 2023, 6:15pm UTC](https://forum.communityhealthtoolkit.org/t/develop-locally-issue/2946 "2023-07-28T18:15:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwells2-stanford](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/gwells2-stanford/32/2451_2.png) [@gwells2-stanford](https://forum.communityhealthtoolkit.org/u/gwells2-stanford)\
**Post date:** [July 28, 2023, 6:15pm UTC](https://forum.communityhealthtoolkit.org/t/develop-locally-issue/2946/1 "2023-07-28T18:15:45Z")

</div>

Hi - I am trying to install the CHT reference app on my windows computer. I was successful in running the hello-world container in Docker and was able Initialize the Project Directory, but now I cannot complete the “develop locally step”:

sudo apt update && sudo apt -y dist-upgrade  
sudo apt -y install python3-pip python3-setuptools python3-wheel xsltproc

# Use NVM to install NodeJS:

export nvm\_version=`curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | jq -r .name`  
curl -o- [https://raw.githubusercontent.com/nvm-sh/nvm/$nvm\_version/install.sh](https://raw.githubusercontent.com/nvm-sh/nvm/$nvm_version/install.sh) | $SHELL  
. ~/.$(basename $SHELL)rc  
nvm install 16

I get a “not found” error when I run the code lines.

I feel like this is an easy fix, but can’t think of what it is.

Any help appreciated!

---

<div class="post-metadata">

**Author:** ![jkuester](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/jkuester/32/806_2.png) [@jkuester](https://forum.communityhealthtoolkit.org/u/jkuester)\
**Post date:** [July 28, 2023, 7:22pm UTC](https://forum.communityhealthtoolkit.org/t/develop-locally-issue/2946/2 "2023-07-28T19:22:29Z")

</div>

Hello @gwells2-stanford!

On Windows, local CHT app development can only be done via [the Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/install) which provides a Linux terminal environment where you can run those commands. Are you using WSL? If so, could you try running those commands one-by-one to see which of them fails? (and then reply out here with the complete command + error message from the terminal)

Alternatively, app development can be done via a [DevContainer using VSCode](https://docs.communityhealthtoolkit.org/apps/tutorials/local-setup/#developing-with-vs-code-dev-container).

---

<div class="post-metadata">

**Author:** ![gwells2-stanford](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/gwells2-stanford/32/2451_2.png) [@gwells2-stanford](https://forum.communityhealthtoolkit.org/u/gwells2-stanford)\
**Post date:** [July 28, 2023, 11:16pm UTC](https://forum.communityhealthtoolkit.org/t/develop-locally-issue/2946/3 "2023-07-28T23:16:00Z")

</div>

Thanks @jkuester!

I tried the VS method too. Here’s the error I receive when I place in WSL

PEDS-5KJPKN3:/tmp/docker-desktop-root/mnt/host/c/WINDOWS/system32# cd ~/cht-project  
PEDS-5KJPKN3:~/cht-project# curl -s [https://raw.githubusercontent.com/medic/cht-conf/main/devcontainer.cht-app-ide/.devc](https://raw.githubusercontent.com/medic/cht-conf/main/devcontainer.cht-app-ide/.devc)  
ontainer.json \> .devcontainer.json  
-ash: curl: not found  
PEDS-5KJPKN3:~/cht-project#

---

<div class="post-metadata">

**Author:** ![jkuester](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/jkuester/32/806_2.png) [@jkuester](https://forum.communityhealthtoolkit.org/u/jkuester)\
**Post date:** [August 1, 2023, 9:22pm UTC](https://forum.communityhealthtoolkit.org/t/develop-locally-issue/2946/4 "2023-08-01T21:22:35Z")

</div>

> -ash: curl: not found

Strange! 🤔 I thought `curl` was included by default in most of the WSL linux distros! Do you happen to remember which Linux you selected when setting up WSL?

Regardless, all you really need to do is download the file located at [https://raw.githubusercontent.com/medic/cht-conf/main/devcontainer.cht-app-ide/.devcontainer.json](https://raw.githubusercontent.com/medic/cht-conf/main/devcontainer.cht-app-ide/.devcontainer.json). To do that you can just:

- Open that link in a browser
- Right click on the page and select “Save As…”
- Save the file into your `cht-project` directory with the name `.devcontainer.json` (do not forget the leading period (`.`)!)

Then, I think it would be best to run the final commands from the Windows Command Prompt (and not from within WSL):

```auto
cd ~/cht-project
code --install-extension ms-vscode-remote.remote-containers
code -n .

```
