Problem with yarn install node-canvas

Describe Your Question

Unable to run a yarn install on Main from cornerstone3D due to an incorrect URL for the node-canvas node.

  • A clear and concise description of what problem you are having.
  • Which OHIF version you are using?
    branch main of cornerstone3D

What steps can we follow to reproduce the bug?

  1. First step > yarn install

then I receive the following

node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v127-linux-glibc-x64.tar.gz
node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v127-linux-glibc-x64.tar.gz

Is this upstream of cornerstone3D? Should I be downloading node-canvas and editing the package.json by hand?

Please advise. Hopefully this isn’t too basic a question.

Thanks
BITC01

This is a node problem, try using a node version manager like nvm (GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions) and use node 18 at least