Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

107
Visualizações
Exception in NodeWeb Kit for Canvas

I am trying to convert my nodejs application into an .exe file. I am stuck with the canvas module(npm install @tensorflow/tfjs canvas). For some reason,nw.js is not able to load this module.

This is the line for which I am getting the error :

const canvas = require("canvas");

And this is the error :

enter image description here

I did go through this but unfortunately it didn't help. My node version is : 16.10.10 and nw.js version is : 0.57.1. Using Windows10.

Is there any way in which this can be solved ? Thanks.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

It's my understanding that anything using nw-gyp won't work with newer version of node because of the difference in supported Python versions. Somebody needs to get nw-gyp ported to work with Python 3.

One related thread: edge-js build failing with nw-gyp

about 4 years ago · Juan Pablo Isaza Relatório

0

I was not able to solve the above error where I was using node webkit, hence I switched to pkg, and it worked.

pkg is CLI that allows you to package or bundle your node.js project into an executable file. The generated executed file can be run on devices which do not have nodejs installed.

More info about pkg can be found here.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda