Skip to content

install with a rootpath is not working #68

@kriszyp

Description

@kriszyp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions