jargonsdev / jargonsdev/jargons.dev

[BUG]: npm run setup does not create .env file, stops after opening localhost port

Open
#233 5 comments 0 reactions 0 assignees View on GitHub
🔍 triage
Dominant language
MDX
Stars
56
Forks
45
PR merge metrics
No merged PRs in 30d

Description

### Has this bug been raised before?

- [x] I have checked "open" AND "closed" issues and this is not a duplicate

### Description

**When running `npm run setup`, the script doesn’t generate the `.env` file as expected. Instead, it stops after opening a localhost port (e.g., http://localhost:54043).**

### Steps to Reproduce

1. Clone the repo:
`git clone https://github.com/jargonsdev/jargons.dev.git
cd jargons.dev
npm ci
`
2. Run setup:
`npm run setup
`
3. Observe that the script outputs:
`> jargons.dev@1.0.0 setup
> node dev/setup.js

Open http://localhost:54043
`
4. No .`env` file is generated.

**Expected Behavior**

The `.env` file should be created automatically after running `npm run setup`, as described in the documentation.

**Actual Behavior**

The setup script hangs and only opens a localhost port. No .env file is created.

**Environment**

1. OS: macOS (e.g., macOS 14.x Sonoma)
2. Machine: MacBook Pro
3. Node.js: v22.14.0
4. npm: 10.9.2

### Screenshots

`npm run setup`
Image

`npm start`

Image

**Output**

Image

### Do you want to work on this issue?

No

### If "yes" to above, please explain how you would technically implement this

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with dev/setup.js, invoked by npm run setup, and reproduce the behavior with npm ci followed by npm run setup. Trace why it only opens the reported localhost port, then verify that setup creates the documented .env file and exits successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.