npm run setup fails when pg module is not installed
- Dominant language
- TypeScript
- Stars
- 656
- Forks
- 216
- PR merge metrics
- No merged PRs in 30d
Description
Command line dump -
firegeo % npm run setup
```
> saas-starter-5@0.1.0 setup
> node setup.js
node:internal/modules/cjs/loader:1372
throw err;
^
Error: Cannot find module 'pg'
Require stack:
- /Users//projects/firegeo/setup.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1369:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
at Module._load (node:internal/modules/cjs/loader:1179:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.require (node:internal/modules/cjs/loader:1449:12)
at require (node:internal/modules/helpers:135:16)
at Object. (/Users//projects/firegeo/setup.js:6:18)
at Module._compile (node:internal/modules/cjs/loader:1692:14) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Users//projects/firegeo/setup.js' ]
}
Node.js v24.4.1
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running npm run setup and inspecting setup.js at line 6, where the missing pg module is loaded. Check the project’s declared dependencies and verify that the setup command completes successfully when the required module is installed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, postgresql, typescript
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100