将node-gyp与原子一起使用

问题描述 投票:3回答:1

我看过许多关于使用node运行c ++文件的教程。这些教程大多数都使用名为node-gyp的软件包。我尝试使用[]通过npm安装此程序

npm i node-gyp -g

并且有效。当我使用以下方法配置node-gyp时,会发生问题:

node-gyp configure

当我使用此命令时,它将引发此错误:

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.8.0 found at "...Path to Python"
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS 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
gyp ERR! find VS **************************************************************
//more error stuff

我正在使用atom,如果我可以在没有vscode的情况下使用它,我将其应用。

我看过许多关于使用node运行c ++文件的教程。这些教程大多数都使用名为node-gyp的软件包。我试图通过npm i node-gyp -g通过npm安装它,并且它可以工作。 ...

node.js atom-editor node-gyp
1个回答
1
投票
© www.soinside.com 2019 - 2024. All rights reserved.