c0bra / deviceframe

:iphone: Put device frames around your mobile/web/progressive app screenshots.
Other
580 stars 16 forks source link

Invalid callback crash #24

Open EsteveAguilera opened 4 years ago

EsteveAguilera commented 4 years ago

Whenever I try to generate a framed image, I get the same error:

Downloading frame Apple iPhone 7 Plus Jet Black [                   ] Infinity/bps 1% 0.0s
fs.js:154
    throw new ERR_INVALID_CALLBACK(cb);
    ^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
    at makeCallback (fs.js:154:11)
    at Object.unlink (fs.js:1035:14)
    at DuplexWrapper.<anonymous> (/usr/local/lib/node_modules/deviceframe/cli.js:338:43)
    at DuplexWrapper.emit (events.js:209:13)
    at EventEmitter.emit (events.js:209:13)
    at ClientRequest.<anonymous> (/usr/local/lib/node_modules/deviceframe/node_modules/got/index.js:111:7)
    at Object.onceWrapper (events.js:299:26)
    at ClientRequest.emit (events.js:209:13)
    at TLSSocket.socketErrorListener (_http_client.js:406:9)
    at TLSSocket.emit (events.js:209:13)

I've tried with different device frames with no luck...

I'm running the command:

$ dframe iPhone_1.png