由于vscode问题,FFMpeg无法安装

时间:2020-05-13 00:54:45

标签: node.js visual-studio-code

我正在尝试为私有服务器编写一个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

1 个答案:

答案 0 :(得分:0)

Visual Studiovscode是不同的东西。

npm抱怨缺少编译器,而不是编辑器。它甚至为您提供了该解决方案的链接:https://github.com/nodejs/node-gyp#on-windows