Hosts file nag

What issue or error are you experiencing? || Sites show warning about missing hosts entry even though I added it manually


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc || Create a site. Even though I followed all the steps to allow local to modify the hosts file, it failed to be able to do it. So I edited the hosts file manually and added 127.0.0.1 localtest.local which made everything work. BUT local doesn’t know it’s fixed, and nags me about the missing hosts file entry.


System Details

  • Local Version: Version 9.2.9+6887

  • Operating System (OS) and OS version: Windows 11 Pro Version 25H2


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @cwgservices!

We have a Windows Troubleshooting guide below that goes over some common items worth checking. For example, are you running the application as administrator?

Yes I followed those instructions before asking for help. And I am perfectly happy to edit the hosts file myself - I just want to get rid of the nag. The site works fine.

To try and get to the root of the issue @cwgservices, there are a couple more Windows “gotchas” that users have encountered in the past that are a bit more uncommon than the usual suspects we’ve covered so far. Here they are if you want to give these a check over:

I’ve tried everything in those posts. Node.js was not installed so I installed it. The test file mentioned in one of those threads still produces an error:

PS C:\Users\cwg\Downloads\sudo-prompt-test\sudo-prompt-test> node index.js
C:\Users\cwg\Downloads\sudo-prompt-test\sudo-prompt-test\node_modules\sudo-prompt\index.js:43
if (Node.util.isObject(arguments[1])) {
^

TypeError: Node.util.isObject is not a function
at Object.Exec [as exec] (C:\Users\cwg\Downloads\sudo-prompt-test\sudo-prompt-test\node_modules\sudo-prompt\index.js:43:19)
at Object. (C:\Users\cwg\Downloads\sudo-prompt-test\sudo-prompt-test\index.js:3:6)
at Module._compile (node:internal/modules/cjs/loader:1831:14)
at Object..js (node:internal/modules/cjs/loader:1971:10)
at Module.load (node:internal/modules/cjs/loader:1552:32)
at Module._load (node:internal/modules/cjs/loader:1354:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47

Node.js v25.8.0

Suggestions?

Could you share a full Local Log with us to dive into @cwgservices?

To grab a complete log, please navigate to the Question Mark on the left-hand side of your Local app. Once you click there, scroll down a little bit and select the Download Local Logs button from the Support tab in Local. This will generate a zip archive that contains multiple logs and gives us a bit more diagnostic info.