我正在尝试为私有服务器编写一个discord音乐机器人,当我尝试安装FFmpeg(npm install discord.js ffmpeg fluent-ffmpeg @ discordjs / opus ytdl-core --save)时,它给了我一个大错误我认为重要的是:
You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
答案 0 :(得分:0)
Visual Studio
与vscode
是不同的东西。
npm抱怨缺少编译器,而不是编辑器。它甚至为您提供了该解决方案的链接:https://github.com/nodejs/node-gyp#on-windows