好,所以我一直试图解决此错误,该错误是在我更改程序包锁定文件后出现的:
通过执行
do_proxy
,我能够解决此错误。为什么async function playMusic(conn, entry = 0) {
const song = queue[entry];
try {
const stream = ytdl(song, {
quality: 'highestaudio',
highWaterMark: 1<<25
});
stream.on('info', info => {
curSong = info.title;
logger.info(`? | Tocando: ${curSong}`);
updatePresence(`► Tocando: ${curSong}`);
if (listeners <= 1) {
dispatcher.pause();
updatePresence(`❙ ❙ ${curSong}`);
logger.info(`? | Ninguém está conectado ao ${channel.music}, a musica foi parada.`);
}
});
dispatcher = await conn.play(stream);
dispatcher.on('end', () => {
if (entry == queueLength - 1) playMusic(conn);
else playMusic(conn, entry + 1);
});
dispatcher.on('error', err => {
logger.error(err);
if (entry == queueLength - 1) playMusic(conn);
else playMusic(conn, entry + 1);
});
} catch (err) {
logger.error(err);
if (entry == queueLength - 1) playMusic(conn);
else playMusic(conn, entry + 1);
}
}
在删除程序包锁,npm_modules和.cache后仍然有效,但是yarn add eslint && gatsby develop
导致此错误?
yarn install && gatsby develop
我希望了解使用npm install && gatsby develop
的解决方案,尽管直到TypeError: Class extends value undefined is not a constructor or null
5:05:47 PM:
5:05:47 PM: - CssDependency.js:12 Object.<anonymous>
5:05:47 PM: [repo]/[mini-css-extract-plugin]/dist/CssDependency.js:12:46
导致上述错误,我才在该项目中使用过yarn。