CesiumGS / 3d-tiles-tools

Apache License 2.0
312 stars 47 forks source link

webstorm下载3d-tiles-tools报错怎么解决 #151

Open laoziguan opened 2 months ago

laoziguan commented 2 months ago

PS D:\3d-tiles-tools-main\3d-tiles-tools-main> npm install 3d-tiles-tools
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead npm error code 1 npm error path D:\3d-tiles-tools-main\3d-tiles-tools-main\node_modules\sharp npm error command failed npm error command C:\Windows\system32\cmd.exe /d /s /c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) npm error sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-win32-x64.tar.br npm error sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies npm error sharp: Installation error: unable to verify the first certificate npm error A complete log of this run can be found in: D:\nodejs\node_cache_logs\2024-08-30T06_35_00_955Z-debug-0.log

javagl commented 2 months ago

The only real error seems to be

sharp: Installation error: unable to verify the first certificate

I know that the sharp library has some issues, related to versioning and compatibility (related to the fact that it uses native libraries under the hood). But I haven't seem this particular errror. Quick websearches for the error message don't bring "obvious, universal" solutions, and I don't want to recommend anything that I don't fully understand.

I think (but have to verify) that sharp is mainly a depencency of glTF-Transform here. Just to have another data point: Could you try installing glTF-Transform, as described in https://gltf-transform.dev/cli , and see whether you receive the same error?