无法在Windows 10中安装Saltcorn



我尝试使用这个wiki页面安装saltcorn。https://wiki.saltcorn.com/view/ShowPage/install-on-windows-10由于vips错误导致失败

npm 8.1.0节点16.13.0

C:UsersvarshaAppDataRoamingnpmnode_modules@saltcornclinode_modulessharp
npm ERR! command failed
npm ERR! command C:WINDOWSsystem32cmd.exe /d /s /c node-gyp rebuild
npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
npm ERR!   nothing.c
npm ERR!   win_delay_load_hook.cc
npm ERR!   nothing.vcxproj -> C:UsersvarshaAppDataRoamingnpmnode_modules@saltcornclinode_modulessharpbuildRelease\nothing.lib
npm ERR!   VError.cpp
npm ERR! C:UsersvarshaAppDataRoamingnpmnode_modules@saltcornclinode_modulessharpsrclibvipscplusplusVError.cpp(33,10): fatal error C1083: Cannot open include file: 'vips/intl.h': No such file or directory [C:UsersvarshaAppDataRoamingnpmnode_modules@saltcornclinode_modulessharpbuildlibvips-cpp.vcxproj]
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.2.0
npm ERR! gyp info using node@16.13.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.0 found at "C:Python310python.exe"
npm ERR! gyp info find VS using VS2019 (16.11.32002.261) found at:
npm ERR! gyp info find VS "C:Program Files (x86)Microsoft Visual Studio2019Community"
npm ERR! gyp info find VS run with --verbose for detailed information

您的节点太新,请尝试降级到节点15。看到:

https://sharp.pixelplumbing.com/install

背景:sharp为大多数平台提供二进制文件,但还没有node16(截至撰写本文时)。如果没有预编译的二进制文件,sharp将尝试使用node-gyp在您的机器上为您构建它们。遗憾的是,尤其是在窗户上,这是非常脆弱的,可以以千种奇怪的方式打破。

你可以花很多时间来修复它,或者(更明智的)你可以切换到一个受支持的node版本。

最新更新