Skip to content

Instantly share code, notes, and snippets.

@dliv
Last active October 5, 2021 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dliv/a35ffd5652b00542d46343eeebf00fbe to your computer and use it in GitHub Desktop.
Save dliv/a35ffd5652b00542d46343eeebf00fbe to your computer and use it in GitHub Desktop.
Bypass GH when installing node-canvas v2.8.0

Run Local Server Serving Node-Gyp Pages

Run server.py from: https://github.com/dliv/node-canvas

You will need to create a localhost.pem in the root directory.

openssl req -new -x509 -keyout localhost.pem -out localhost.pem -days 365 -nodes

Update Webapp Consuming Node-Canvas

Change package.json to use the dliv scoped package.

        "@dliv/canvas": "^2.8.0",

Install - npm i (or rush install or whatever).

Change imports in the app to also use scoped package (Ctrl+F canvas)

Rebuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment