melody
melody copied to clipboard
[BUG] 源码安装后启动失败。Debian testing
[email protected] app node backend/src/index.js
/root/melody/backend/src/service/media_fetcher/../../../bin/media-get [ '-h' ] ℹ [media-get] Version: 0.2.8 11:50:20 ℹ [tmp path] use /tmp/melody-tmp-songs 11:50:20 /root/melody/backend/src/index.js:3 return this.replace(new RegExp(f, 'g'), r); ^
SyntaxError: Invalid regular expression: /*/: Nothing to repeat
at new RegExp (
Node.js v18.10.0
在 mac 和 windows 的 18.10 均无法复现。请问有什么我遗漏的复现步骤吗? @zheng7fu2 @atomicink
我用的mac mini m1,手动下载的media-get并给了权限,测试可以单独运行 没有其他步骤
我也是这个错,莫名其妙的
可以先手动删除 backend/src/index.js 这几行.
// NeteaseCloudMusicApi 有不兼容的代码。晚点提 PR 改下,这里先 hack
String.prototype.replaceAll = function (f, r) {
return this.replace(new RegExp(f, 'g'), r);
};
然后升级下 NeteaseCloudMusicApi
cd backend
npm update NeteaseCloudMusicApi
最近比较懒,没有写代码。 @atomicink @JuZi233