I was working on a Node.js project and decided to run it on top of Windows Subsystem for Linux but it just wouldn’t work. The
npm command would fail with a “no such file or directory error” like this:
Your CLI apps don’t have to be boring. Especially when there are plenty of possible configuration options, and the program is not going to be executed from a script, it might be better to provide a conversational user experience.
With the ECMAScript modules definition we can use the
export keywords to load and publish library code. However, if you try to use them in your Node.js project you might encounter the following error: