opensumi / ide-electron

OpenSumi Electron Version
https://opensumi.com
MIT License
171 stars 56 forks source link

安装依赖失败 #69

Closed zt6991 closed 1 year ago

zt6991 commented 1 year ago

以下是pnpm i 执行报错

C:\Users\zhengtao\Desktop\23.4.11\ide-electron>pnpm i  WARN  deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142  WARN  deprecated har-validator@5.1.5: this library is no longer supported  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.  WARN  deprecated @opensumi/vscode-ripgrep@1.4.0: Please use @opensumi/ripgrep instead  WARN  deprecated electron-osx-sign@0.6.0: Please use @electron/osx-sign moving forward. Be aware the API is slightly different  WARN  deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.  WARN  deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead Packages: +1049 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 1057, reused 1055, downloaded 0, added 0, done node_modules/.pnpm/drivelist@6.4.6/node_modules/drivelist: Running install script... node_modules/.pnpm/nsfw@2.2.0/node_modules/nsfw: Running install script... node_modules/.pnpm/spdlog@0.9.0/node_modules/spdlog: Running install script, failed in 6.7s .../spdlog@0.9.0/node_modules/spdlog install$ node-gyp rebuild │ C:\Users\zhengtao\Desktop\23.4.11\ide-electron\node_modules.pnpm\spdlog@0.9.0\node_modules\spdlog>if not defined np │ gyp info it worked if it ends with ok │ gyp info using node-gyp@9.3.1 │ gyp info using node@16.20.0 | win32 | x64 │ gyp info find Python using Python version 3.10.3 found at "C:\Users\zhengtao\AppData\Local\Programs\Python\Python310 │ gyp info find VS using VS2019 (16.11.33423.256) found at: │ gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community" │ gyp info find VS run with --verbose for detailed information │ gyp info spawn C:\Users\zhengtao\AppData\Local\Programs\Python\Python310\python.exe │ gyp info spawn args [ │ gyp info spawn args 'C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\ │ gyp info spawn args 'binding.gyp', │ gyp info spawn args '-f', │ gyp info spawn args 'msvs', │ gyp info spawn args '-I', │ gyp info spawn args 'C:\Users\zhengtao\Desktop\23.4.11\ide-electron\nodemodules\.pnpm\spdlog@0.9.0\node │ gyp info spawn args '-I', │ gyp info spawn args 'C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\ │ gyp info spawn args '-I', │ gyp info spawn args 'C:\Users\zhengtao\AppData\Local\node-gyp\Cache\16.20.0\include\node\common.gypi', │ gyp info spawn args '-Dlibrary=shared_library', │ gyp info spawn args '-Dvisibility=default', │ gyp info spawn args '-Dnode_root_dir=C:\Users\zhengtao\AppData\Local\node-gyp\Cache\16.20.0', │ gyp info spawn args '-Dnode_gyp_dir=C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_mod │ gyp info spawn args '-Dnode_lib_file=C:\\Users\\zhengtao\\AppData\\Local\\node-gyp\\Cache\\16.20.0\ │ gyp info spawn args '-Dmodule_root_dir=C:\Users\zhengtao\Desktop\23.4.11\ide-electron\node_modules\.pnpm\s │ gyp info spawn args '-Dnode_engine=v8', │ gyp info spawn args '--depth=.', │ gyp info spawn args '--no-parallel', │ gyp info spawn args '--generator-output', │ gyp info spawn args 'C:\Users\zhengtao\Desktop\23.4.11\ide-electron\nodemodules\.pnpm\spdlog@0.9.0\node │ gyp info spawn args '-Goutput_dir=.' │ gyp info spawn args ] │ gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe │ gyp info spawn args [ │ gyp info spawn args 'build/binding.sln', │ gyp info spawn args '/clp:Verbosity=minimal', │ gyp info spawn args '/nologo', │ gyp info spawn args '/p:Configuration=Release;Platform=x64' │ gyp info spawn args ] │ 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“-m”开关。 │ main.cc │ C:\Users\zhengtao\AppData\Local\node-gyp\Cache\16.20.0\include\node\node.h(73,10): fatal error C1083: 无法打开包括文件: “v8. │ gyp ERR! build error │ gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe │ gyp ERR! stack at ChildProcess.onExit (C:\Users\zhengtao\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules │ gyp ERR! stack at ChildProcess.emit (node:events:513:28) │ gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12) │ gyp ERR! System Windows_NT 10.0.19045 │ gyp ERR! command "D:\nodejs\node.exe" "C:\Users\zhengtao\AppData\Roaming\npm\nodemodules\pnpm\dist\node │ gyp ERR! cwd C:\Users\zhengtao\Desktop\23.4.11\ide-electron\node_modules.pnpm\spdlog@0.9.0\node_modules\spdlog │ gyp ERR! node -v v16.20.0 │ gyp ERR! node-gyp -v v9.3.1 │ gyp ERR! not ok └─ Failed in 6.7s at C:\Users\zhengtao\Desktop\23.4.11\ide-electron\node_modules.pnpm\spdlog@0.9.0\node_modules\spdlog  ELIFECYCLE  Command failed with exit code 1.