HarperFast / HarperFast/harper
install with a rootpath is not working
- Dominant language
- JavaScript
- Stars
- 89
- Forks
- 10
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 200
Description
### Bug Summary
`node dist/bin/harper.js install --ROOTPATH /somepath` does not install, returns error
### Reproduction Repository (if applicable)
_No response_
### Steps to Reproduce
`node dist/bin/harper.js install --ROOTPATH=/tmp/somepath`
### Expected Behavior
Installs Harper in indicated directory. Or does not install. Because why do we even have separate install script when installation is automatic?
### Actual Behavior
Returns error.
### Platform
_No response_
### Console Errors
```
TypeError: Cannot read properties of undefined (reading 'system')
at getTable (/home/kzyp/dev/harper/dataLayer/harperBridge/ResourceBridge.ts:590:31)
at ResourceBridge.searchByValue (/home/kzyp/dev/harper/dataLayer/harperBridge/ResourceBridge.ts:393:17)
at searchByValue (/home/kzyp/dev/harper/dataLayer/search.js:34:40)
at getAllHdbInfoRecords (/home/kzyp/dev/harper/dataLayer/hdbInfoController.js:115:34)
at getLatestHdbInfoRecord (/home/kzyp/dev/harper/dataLayer/hdbInfoController.js:131:26)
at Object.getVersionUpdateInfo (/home/kzyp/dev/harper/dataLayer/hdbInfoController.js:168:34)
at checkForExistingInstall (/home/kzyp/dev/harper/utility/install/installer.js:401:46)
at async Object.install (/home/kzyp/dev/harper/utility/install/installer.js:124:2)
at async install (/home/kzyp/dev/harper/bin/install.js:8:3)
There was an error during the install.
TypeError: Cannot use 'in' operator to search for 'hdb_info' in undefined
at checkIfInstallIsSupported (/home/kzyp/dev/harper/dataLayer/hdbInfoController.js:240:18)
at Object.getVersionUpdateInfo (/home/kzyp/dev/harper/dataLayer/hdbInfoController.js:202:3)
at async checkForExistingInstall (/home/kzyp/dev/harper/utility/install/installer.js:401:22)
at async Object.install (/home/kzyp/dev/harper/utility/install/installer.js:124:2)
at async install (/home/kzyp/dev/harper/bin/install.js:8:3)
```
### Screenshots or Videos
_No response_
### Additional Context
Completely removing `harper install` is a perfectly valid resolution. I don't see any value in keeping this command.
### Are you planning to fix this issue?
No, just reporting the issue
### First-time contributor support
- [ ] I'm new to contributing and would appreciate guidance on the process
- [ ] I'd like help understanding the project structure
- [ ] I need assistance with setting up the development environment
- [ ] I'm comfortable contributing, but new to this project specifically
Contributor guide
Assessment
This issue has not been assessed yet.