安装 windows-build-tools 和 nodejsv 18.0.0 时出错
error when installing windows-build-tools and nodejsv 18.0.0
使用 python2.7 并手动安装构建工具。 Python 在路径中
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2.7" in the PATH
不建议安装 windows-build-tools
,因为它已被弃用,并且有来自 Node.js 安装程序的构建工具。
要安装它,请按照以下步骤操作。
- 前往 nodejs.org,下载并 运行 LTS 安装程序。
- 在询问您安装构建工具的页面上,选中该框。
- 安装结束后,PowerShell window 将打开,运行 命令用于安装工具。
编辑: 根据 LeMIT 的评论,
A complete uninstallation of Node.js, Python, and Visual Studio (including a registry cleanup) helped me.
这应该安装构建工具。
- Python 2.7
- Visual Studio 20--
使用 python2.7 并手动安装构建工具。 Python 在路径中
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2.7" in the PATH
不建议安装 windows-build-tools
,因为它已被弃用,并且有来自 Node.js 安装程序的构建工具。
要安装它,请按照以下步骤操作。
- 前往 nodejs.org,下载并 运行 LTS 安装程序。
- 在询问您安装构建工具的页面上,选中该框。
- 安装结束后,PowerShell window 将打开,运行 命令用于安装工具。
编辑: 根据 LeMIT 的评论,
A complete uninstallation of Node.js, Python, and Visual Studio (including a registry cleanup) helped me.
这应该安装构建工具。
- Python 2.7
- Visual Studio 20--