Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install构建失败 #87

Open
llsydn opened this issue May 15, 2023 · 0 comments
Open

npm install构建失败 #87

llsydn opened this issue May 15, 2023 · 0 comments

Comments

@llsydn
Copy link

llsydn commented May 15, 2023

zipfile@0.5.12 install C:\Users\Administrator\Desktop\node-zipfile-0.5.12
node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/zipfile/v0.5.12/node-v83-win32-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for zipfile@0.5.12 and node@14.20.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020: 无法找到 v140 的生成工具(平台工具集 =“v140”)。若要使用 v140 生成工具进行生成,请安装 v140 生成工具。或者,可以升级到当前 Visual Studio 工具,方式是
通过选择“项目”菜单或右键单击该解决方案,然后选择“重定解决方案目标”。 [C:\Users\Administrator\Desktop\node-zipfile-0.5.12\build\deps\action_before_build.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020: 无法找到 v140 的生成工具(平台工具集 =“v140”)。若要使用 v140 生成工具进行生成,请安装 v140 生成工具。或者,可以升级到当前 Visual Studio 工具,方式是
通过选择“项目”菜单或右键单击该解决方案,然后选择“重定解决方案目标”。 [C:\Users\Administrator\Desktop\node-zipfile-0.5.12\build\deps\zlib\zlib.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Administrator\AppData\Roaming\nvm\v14.20.0\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Administrator\AppData\Roaming\nvm\v14.20.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=C:\Users\Administrator\Desktop\node-zipfile-0.5.12\lib\binding\node-v83-win32-x64\zipfile.node" "--module_name=zipfile" "--module_path=C:\Users\Administrator\Desktop\node-zipfile-0.5.12\lib\binding\node-v83-win32-x64" "--napi_version=8" "--node_abi_napi=napi"
gyp ERR! cwd C:\Users\Administrator\Desktop\node-zipfile-0.5.12
gyp ERR! node -v v14.20.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Administrator\AppData\Roaming\nvm\v14.20.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\Administrator\Desktop\node-zipfile-0.5.12\lib\binding\node-v83-win32-x64\zipfile.node --module_name=zipfile --module_path=C:\Users\Administrator\Desktop\node-zipfile-0.5.12\lib\binding\node-v83-win32-x64 --napi_version=8 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Administrator\Desktop\node-zipfile-0.5.12\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:400:28)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1088:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)
node-pre-gyp ERR! System Windows_NT 10.0.22000
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Administrator\Desktop\node-zipfile-0.5.12\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Administrator\Desktop\node-zipfile-0.5.12
node-pre-gyp ERR! node -v v14.20.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Administrator\AppData\Roaming\nvm\v14.20.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\Administrator\Desktop\node-zipfile-0.5.12\lib\binding\node-v83-win32-x64\zipfile.node --module_name=zipfile --module_path=C:\Users\Administrator\Desktop\node-zipfile-0.5.12\lib\binding\node-v83-win32-x64 --napi_version=8 --node_abi_napi=napi' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zipfile@0.5.12 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zipfile@0.5.12 install 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\2023-05-15T08_42_56_645Z-debug.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant