How-to-npm not working

How-to-npm not working
0

#1

I installed node though the windows installer, and opened up Git Bash. Ran this:

node --version
npm --version

both are installed correctly. Following the challenge “Manage Packages with npm”, I tried to start the tutorial, but not working:

[email protected] MINGW64 ~
$ npm install -g how-to-npm
C:\Users\Family\.node_modules_global\how-to-npm -> C:\Users\Family\.node_modules_global\node_modules\how-to-npm\index.js
C:\Users\Family\.node_modules_global
`-- [email protected]


[email protected] MINGW64 ~
$ how-to-npm
C:\Users\Family\AppData\Roaming\npm\node_modules\how-to-npm\node_modules\adventure\lib\menu.js:51
    process.stdin.setRawMode(true);
                  ^

TypeError: process.stdin.setRawMode is not a function
    at module.exports (C:\Users\Family\AppData\Roaming\npm\node_modules\how-to-npm\node_modules\adventure\lib\menu.js:51:19)
    at Shop.showMenu (C:\Users\Family\AppData\Roaming\npm\node_modules\how-to-npm\node_modules\adventure\index.js:258:16)
    at Shop.execute (C:\Users\Family\AppData\Roaming\npm\node_modules\how-to-npm\node_modules\adventure\index.js:122:14)
    at Shop.shop.execute (C:\Users\Family\AppData\Roaming\npm\node_modules\how-to-npm\index.js:37:45)
    at Object.<anonymous> (C:\Users\Family\AppData\Roaming\npm\node_modules\how-to-npm\index.js:86:8)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)

[email protected] MINGW64 ~
$


Cloud 9 how-to-npm not working!
#2

What windows version are you on?

Have you tried running other nodeschool packages yet, like ‘learnyounode’? how-to-npm is notoriously buggy, so it could just be that…