example/sftp-server-download-only.js cannot read property 'OPEN_MODE' of undefined
Open
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

Please advise...
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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