I see 2 issues with the code that you've shared:
1) You've installed the package readline-sync
in a working directory instead of the task directory. Move into the directory task92
and reinstall the package there.
2) You're using an incorrect import statement. As the name of the module is readline-sync
it should remain this way. Also, I suggest you follow the lecture and use the import
statement instead of require
.
import readlineSync from 'readline-sync';