我尝试在我的操作系统 (Windows 10) 上安装构建工具,但它始终保持相同的状态。点赞图片Build tools error image
PS C:\WINDOWS\system32> npm install --global windows-build-tools
npm WARN deprecated <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8ef9e7e0eae1f9fda3ecfbe7e2eaa3fae1e1e2fdcebba0bca0bc" rel="noreferrer noopener nofollow">[email protected]</a>: Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.
npm WARN deprecated <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8ffdeafefaeafcfbcfbda1b7b7a1bd" rel="noreferrer noopener nofollow">[email protected]</a>: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fd959c8fd08b9c9194999c89928fbdc8d3ccd3c8" rel="noreferrer noopener nofollow">[email protected]</a>: this library is no longer supported
npm WARN deprecated <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ea9f9f838eaad9c4dec4da" rel="noreferrer noopener nofollow">[email protected]</a>: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
> <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fd8a949399928a8ed09f88949199d0899292918ebdc8d3cfd3cf" rel="noreferrer noopener nofollow">[email protected]</a> postinstall C:\Users\user\AppData\Roaming\npm\node_modules\windows-build-tools
> node ./dist/index.js
Downloading python-2.7.15.amd64.msi
[> ] 0.0% (0 B/s)
Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\user\.windows-build-tools\python-2.7.15.amd64.msi.
Downloading vs_BuildTools.exe
[> ] 0.0% (0 B/s)
Downloaded vs_BuildTools.exe. Saved to C:\Users\user\.windows-build-tools\vs_BuildTools.exe.
Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!
Status from the installers:
---------- Visual Studio Build Tools ----------
Still waiting for installer log file...
------------------- Python --------------------
Successfully installed Python 2.7
有什么问题吗。无法安装。
最佳答案
来自 NPM 页面 https://www.npmjs.com/package/windows-build-tools
This package has been deprecated
Author message:
Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.
如果您还没有进行构建,则只需自行安装 python
关于python - 如何解决安装构建工具的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69282472/