Can‘t find Python executable “D:\Python36\python.EXE“, you can set the PYTHON env variable.

检查环境变量

Python Environment Variables-CSDN博客

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "D:\Python36\python.EXE", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (E:\Workspace_gitee\VBlog-master\blog\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (E:\Workspace_gitee\VBlog-master\blog\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack     at E:\Workspace_gitee\VBlog-master\blog\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:170:21)
gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "D:\\nodejs\\node.exe" "E:\\Workspace_gitee\\VBlog-master\\blog\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--ver
bose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\Workspace_gitee\VBlog-master\blog\node_modules\node-sass
gyp ERR! node -v v13.9.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.7.2 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.7.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2024-01-13T14_18_34_005Z-debug.log

npm install -g node-gyp

Microsoft Windows [版本 10.0.19045.2965]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Administrator>npm install -g node-gyp
C:\Users\Administrator\AppData\Roaming\npm\node-gyp -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js
npm WARN notsup Unsupported engine for node-gyp@10.0.1: wanted: {"node":"^16.14.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: node-gyp@10.0.1
npm WARN notsup Unsupported engine for which@4.0.0: wanted: {"node":"^16.13.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: which@4.0.0
npm WARN notsup Unsupported engine for glob@10.3.10: wanted: {"node":">=16 || 14 >=14.17"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: glob@10.3.10
npm WARN notsup Unsupported engine for nopt@7.2.0: wanted: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: nopt@7.2.0
npm WARN notsup Unsupported engine for make-fetch-happen@13.0.0: wanted: {"node":"^16.14.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: make-fetch-happen@13.0.0
npm WARN notsup Unsupported engine for proc-log@3.0.0: wanted: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: proc-log@3.0.0
npm WARN notsup Unsupported engine for jackspeak@2.3.6: wanted: {"node":">=14"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: jackspeak@2.3.6
npm WARN notsup Unsupported engine for minipass@7.0.4: wanted: {"node":">=16 || 14 >=14.17"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: minipass@7.0.4
npm WARN notsup Unsupported engine for foreground-child@3.1.1: wanted: {"node":">=14"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: foreground-child@3.1.1
npm WARN notsup Unsupported engine for path-scurry@1.10.1: wanted: {"node":">=16 || 14 >=14.17"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: path-scurry@1.10.1
npm WARN notsup Unsupported engine for minimatch@9.0.3: wanted: {"node":">=16 || 14 >=14.17"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: minimatch@9.0.3
npm WARN notsup Unsupported engine for signal-exit@4.1.0: wanted: {"node":">=14"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: signal-exit@4.1.0
npm WARN notsup Unsupported engine for @pkgjs/parseargs@0.11.0: wanted: {"node":">=14"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: @pkgjs/parseargs@0.11.0
npm WARN notsup Unsupported engine for lru-cache@10.1.0: wanted: {"node":"14 || >=16.14"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: lru-cache@10.1.0
npm WARN notsup Unsupported engine for @npmcli/agent@2.2.0: wanted: {"node":"^16.14.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: @npmcli/agent@2.2.0
npm WARN notsup Unsupported engine for cacache@18.0.2: wanted: {"node":"^16.14.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: cacache@18.0.2
npm WARN notsup Unsupported engine for ssri@10.0.5: wanted: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: ssri@10.0.5
npm WARN notsup Unsupported engine for minipass-fetch@3.0.4: wanted: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: minipass-fetch@3.0.4
npm WARN notsup Unsupported engine for https-proxy-agent@7.0.2: wanted: {"node":">= 14"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: https-proxy-agent@7.0.2
npm WARN notsup Unsupported engine for http-proxy-agent@7.0.0: wanted: {"node":">= 14"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: http-proxy-agent@7.0.0
npm WARN notsup Unsupported engine for agent-base@7.1.0: wanted: {"node":">= 14"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: agent-base@7.1.0
npm WARN notsup Unsupported engine for socks-proxy-agent@8.0.2: wanted: {"node":">= 14"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: socks-proxy-agent@8.0.2
npm WARN notsup Unsupported engine for unique-filename@3.0.0: wanted: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: unique-filename@3.0.0
npm WARN notsup Unsupported engine for minipass-collect@2.0.1: wanted: {"node":">=16 || 14 >=14.17"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: minipass-collect@2.0.1
npm WARN notsup Unsupported engine for fs-minipass@3.0.3: wanted: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: fs-minipass@3.0.3
npm WARN notsup Unsupported engine for @npmcli/fs@3.1.0: wanted: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: @npmcli/fs@3.1.0
npm WARN notsup Unsupported engine for unique-slug@4.0.0: wanted: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: unique-slug@4.0.0
npm WARN notsup Unsupported engine for abbrev@2.0.0: wanted: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: abbrev@2.0.0
npm WARN notsup Unsupported engine for isexe@3.1.1: wanted: {"node":">=16"} (current: {"node":"13.9.0","npm":"6.13.7"})
npm WARN notsup Not compatible with your version of node/npm: isexe@3.1.1

+ node-gyp@10.0.1
added 99 packages from 50 contributors in 20.982s

npm install --global --production windows-build-tools

Microsoft Windows [版本 10.0.19045.2965]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Administrator>npm install --global --production windows-build-tools
npm WARN deprecated windows-build-tools@5.2.2: 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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: 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.

> windows-build-tools@5.2.2 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_modules\windows-build-tools
> node ./dist/index.js



Downloading python-2.7.15.amd64.msi
[============================================>] 100.0% of 20.2 MB (4.76 MB/s)
Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\Administrator\.windows-build-tools\python-2.7.15.amd64.msi.
Downloading vs_BuildTools.exe
[============================================>] 100.0% of 1.12 MB (1.12 MB/s)
Downloaded vs_BuildTools.exe. Saved to C:\Users\Administrator\.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

node-sass@4.7.2 postinstall: `node scripts/build.js`-CSDN博客

  • 9
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值