node-captcha icon indicating copy to clipboard operation
node-captcha copied to clipboard

TypeError: canvas[method] is not a function

Open carpiodanielj opened this issue 6 years ago • 0 comments

I'm not able to execute the program correctly due the following message error:

node test-server.js
server started
D:\Users\dcarpioc\AppData\Local\Temp\node-captcha\node_modules\canvas\lib\jpegstream.js:44
    canvas[method](options.bufsize, options.quality, options.progressive, function(err, chunk){
                  ^

TypeError: canvas[method] is not a function
    at D:\Users\dcarpioc\AppData\Local\Temp\node-captcha\node_modules\canvas\lib\jpegstream.js:44:19
    at process._tickCallback (internal/process/next_tick.js:112:11)

I'm using: node v9.8.0 npm 5.6.0

Please help me. Thanks in advance.

localhost8080

carpiodanielj avatar Nov 20 '18 17:11 carpiodanielj