Namraj Pudasaini
Jun 26, 2026
A collection of quick solutions to problems that come up during day-to-day development. Bookmark this one — you will probably need it.
Selecting multiple lines or placing cursors on multiple lines saves a lot of time:
These work in the default VSCode keybinding and are essential for editing repetitive code blocks.
If you need to reset the PostgreSQL default user password, edit the config files in your PostgreSQL data directory:
C:\Program Files\PostgreSQL\17\data\pg_hba.conf
C:\Program Files\PostgreSQL\17\data\postgresql.conf
To allow password-less local connections (for development only), add this line to pg_hba.conf:
host all all 127.0.0.1/32 trust
Then restart the PostgreSQL service.
To change the password from the command line:
psql -U postgres
ALTER USER postgres PASSWORD 'your_new_password';
If you are developing on an external drive formatted as FAT32 or exFAT, you will run into problems with tools that need hard links or symbolic links. For example, bun add drizzle-orm pg may fail silently or throw errors.
The fix: Move your project to an NTFS-formatted drive. On Windows, your internal C:\ drive is almost always NTFS.
If you see "Low disk space on FileSystem root" in WSL, the issue is usually that your WSL virtual disk (ext4.vhdx) is growing on a partition that is running out of space.
The proper fix involves:
wsl --shutdown/home to it/etc/fstab with the UUID of the new partitionThis is an advanced operation — back up your data first.
If you are using Drizzle ORM and need to run migrations or generate new schema files, make sure your packages are up to date:
npm update --save-dev drizzle-kit
npm update --save drizzle-orm
Also remember: database names should use underscores, not hyphens. astro_tasks_app works, astro-tasks-app does not.
Starting a dev server and getting EADDRINUSE: address already in use :::3000 almost always means a previous run never shut down. Find what is holding the port and stop it:
lsof -i :3000
kill -9 <pid>
On Windows, use netstat -ano | findstr :3000 to get the PID, then taskkill /PID <pid> /F.
Not sure which shell you are in?
echo $0
echo $SHELL
echo $0 is more accurate since it reflects the actual running shell.
Rule: most dev environment problems come down to three things — permissions, file systems, and paths. Check those first.
Next steps: for WSL-specific issues like Vite hot reload and Node path setup, see WSL Development Tips.