mscdex / mscdex/ssh2

example/sftp-server-download-only.js cannot read property 'OPEN_MODE' of undefined

Open
#1,209 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.8k
Forks
734
PR merge metrics
No merged PRs in 30d

Description

checked out the project
yarn add ssh2
cd example
node sftp-server-download-only.js

getting error
'Cannot read property 'OPEN_MODE' of undefined'

node version is 12.22.2

image

Please advise...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported command from the example directory: run yarn add ssh2, then node sftp-server-download-only.js with Node 12.22.2. Inspect example/sftp-server-download-only.js and the resulting OPEN_MODE error. Done means the example runs without that error and retains its download-only behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.