node-gyp安装失败

青龙 报错 VCINSTALLDIR not set, not running in VS Command Prompt........

关闭杀毒软件 管理员powershell

PS C:\WINDOWS\system32> cnpm install --global --production windows-build-tools
Downloading windows-build-tools to C:\Users\z\AppData\Roaming\npm\node_modules\windows-build-tools_tmp
Copying C:\Users\z\AppData\Roaming\npm\node_modules\windows-build-tools_tmp\_windows-build-tools@5.2.2@windows-build-tools to C:\Users\z\AppData\Roaming\npm\node_modules\windows-build-tools
Installing windows-build-tools's dependencies to C:\Users\z\AppData\Roaming\npm\node_modules\windows-build-tools/node_modules
[1/6] fs-extra@^8.0.1 installed at node_modules\_fs-extra@8.1.0@fs-extra
[2/6] debug@^4.1.1 installed at node_modules\_debug@4.3.4@debug
[3/6] string-width@^4.1.0 installed at node_modules\_string-width@4.2.3@string-width
[4/6] chalk@^2.4.2 installed at node_modules\_chalk@2.4.2@chalk
[5/6] nugget@^2.0.1 installed at node_modules\_nugget@2.2.0@nugget
[6/6] in-gfw@^1.2.0 installed at node_modules\_in-gfw@1.2.0@in-gfw
execute post install 1 scripts...
[1/1] scripts.postinstall windows-build-tools@5.2.2 run "node ./dist/index.js", root: "C:\\Users\\z\\AppData\\Roaming\\npm\\node_modules\\windows-build-tools"


Downloading python-2.7.15.amd64.msi
[============================================>] 100.0% (0 B/s)
Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\z\.windows-build-tools\python-2.7.15.amd64.msi.
Downloading vs_BuildTools.exe
[============================================>] 100.0% (0 B/s)
Downloaded vs_BuildTools.exe. Saved to C:\Users\z\.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

posted @ 2022-10-16 23:26  抽象工作室upup  阅读(1036)  评论(0编辑  收藏  举报