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:
Family@DESKTOP-0VPUQVI 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
`-- how-to-npm@2.0.0
Family@DESKTOP-0VPUQVI 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)
Family@DESKTOP-0VPUQVI MINGW64 ~
$