Appveyor - 找不到模块 'canvas'

Appveyor - Cannot find module 'canvas'

我的开发机器(Ubuntu & Windows)进行构建和测试 https://github.com/Codeuctivity/PdfjsSharp without any problem, but Appveyor 在测试时抱怨缺少依赖项:

Error: Cannot find module 'canvas'

构建 logs 成功安装 canvas:

> canvas@2.6.1 install C:\projects\pdfjssharp\PdfjsSharp\node_modules\canvas
> node-pre-gyp install --fallback-to-build
  
node-pre-gyp WARN Using needle for node-pre-gyp https download 
[canvas] Success: "C:\projects\pdfjssharp\PdfjsSharp\node_modules\canvas\build\Release\canvas.node" is installed via remote
added 100 packages from 50 contributors and audited 100 packages in 6.246s
  
18 packages are looking for funding

我在这里想念什么?似乎这里有一些特定于应用程序的问题,不是吗?

使用那个切换到 Travis CI。travis.yml

language: csharp
mono: none
dotnet: 3.1.401
script:
  - dotnet restore
  - dotnet build -c Release
after_success:
  - dotnet test
deploy:
  skip_cleanup: true
  provider: script
  script: dotnet nuget push ./PdfjsSharp/bin/Release/PdfjsSharp.*.*nupkg  -k $NUGET_API -s https://api.nuget.org/v3/index.json
  on:
branch: master