Input/ouput problem


#1

readline-sync not working.After installing it shows following error.
module.js:549
throw err;
^

Error: Cannot find module ‘readline-sync.’
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/vaio/Desktop/Learn/js/ex7.js:1:81)
at Module._compile (module.js:652:30)
at Object.Module._extensions…js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

But module is installed in working directory.


#2

Make sure you’re using the Terminal (PowerShell) and DO NOT run it from your IDE or text editor. That’s usually why people get this error.