# Error occurred while trying to proxy: localhost:3000/

**URL:** https://discourse.roots.io/t/error-occurred-while-trying-to-proxy-localhost-3000/25248
**Category:** sage
**Tags:** sage10
**Created:** 2023-04-28T09:07:06Z
**Posts:** 10
**Showing post:** 5 of 10

## Post 5 by @herrpatrickmueller — 2023-05-08T12:07:44Z

I’m using ddev as local dev environment.

I made a fresh setup in this git repo:  
[https://github.com/herrpatrickmueller/wordpress.test](https://github.com/herrpatrickmueller/wordpress.test)

1. Check out the repo in branch `main`
2. Install composer dependencies for bedrock in document root `composer install`
3. Edit the .env file to connect to the db
4. change into the them dir `web/app/themes/test`
5. install composer dependencies `composer install`
6. install npm dependencies with node v16 `npm ci`
7. run dev server `npm run dev`

Now everything should work as expected and the localhost is proxied to wordpress.test. Now change you local node version to v18. Checkout the branch `node18`, remove `node_modules` and install all npm dependencies with `npm ci`.

If you now run `npm run dev` the proxy fails. Can you reproduce this on your side? I don’t now how to make a running development environment to share with you.

---

_[View the full topic](https://discourse.roots.io/t/error-occurred-while-trying-to-proxy-localhost-3000/25248)._
