Skip to content

process.stdin.setRawMode is not a function #3

@oscar-b

Description

@oscar-b

Hi!

Tried setting this up in a docker container, to get quick access to a sqlite file running on a server.

Nothing fancy, basically just:

  db-admin:
    image: node:22-alpine
    command: npx -y @outerbase/studio /data/data.sqlite

However, it fails with

TypeError: process.stdin.setRawMode is not a function
    at q (/root/.npm/_npx/1372e37502a94d3d/node_modules/@outerbase/studio/dist/index.js:46:797)
    at Command.<anonymous> (/root/.npm/_npx/1372e37502a94d3d/node_modules/@outerbase/studio/dist/index.js:46:2957)
    at Command.listener [as _actionHandler] (/root/.npm/_npx/1372e37502a94d3d/node_modules/commander/lib/command.js:542:17)
    at /root/.npm/_npx/1372e37502a94d3d/node_modules/commander/lib/command.js:1502:14
    at Command._chainOrCall (/root/.npm/_npx/1372e37502a94d3d/node_modules/commander/lib/command.js:1386:12)
    at Command._parseCommand (/root/.npm/_npx/1372e37502a94d3d/node_modules/commander/lib/command.js:1501:27)
    at Command.parse (/root/.npm/_npx/1372e37502a94d3d/node_modules/commander/lib/command.js:1064:10)
    at Object.<anonymous> (/root/.npm/_npx/1372e37502a94d3d/node_modules/@outerbase/studio/dist/index.js:46:3034)
    at Module._compile (node:internal/modules/cjs/loader:1562:14)
    at Object..js (node:internal/modules/cjs/loader:1699:10)

I assume it needs to check if it has a tty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions