What is the problem
When I start the cmusd, it is fine;
but when I play my music, the program crash with error prompt
TypeError: (0 , _url.pathToFileURL) is not a function.
...
...
Environment
Platform: Ubuntu 18.04 LTS
NodeJS Version: 8.x
Soulution
After my research, I find that the version of NodeJS causing this problem ( function pathToFileURL is introduced in NodeJS 10 but I am using 8.x).
So, I update Node, delete all the cmusd build dependencies, rebuild;
then eventually, everything works fine.
Suggestion: I think we should remind others to use NodeJS 10 in the README.md