mafintosh / mafintosh/node-modules-cli

TypeError: tty.setRawMode is not a function

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17
Forks
4
PR merge metrics
No merged PRs in 30d

Description

**$ cmd /k ver**
Microsoft Windows x64 [Version 6.3.9600]

**$ node-modules -v**
current version is 1.0.1

**$ node -v**
v6.9.4

**$ node-modules search angular**
```
C:\Users\User\AppData\Roaming\npm\node_modules\node-modules\app.js:28
process.stdin.setRawMode ? process.stdin.setRawMode(mode) : tty.setRawMode(mode);
^

TypeError: tty.setRawMode is not a function
at setRawMode (C:\Users\User\AppData\Roaming\npm\node_modules\node-modules\app.js:28:66)
at commands.search (C:\Users\User\AppData\Roaming\npm\node_modules\node-modules\app.js:64:2)
at Object. (C:\Users\User\AppData\Roaming\npm\node_modules\node-modules\app.js:130:39)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce `node-modules search angular` on Windows with Node v6.9.4, then inspect `app.js` at line 28 where raw mode is set. Done means the search command no longer throws the `tty.setRawMode` TypeError and can continue to return results.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.