Face-api.js: Add support for Node.js v12

Created on 8 May 2019  路  1Comment  路  Source: justadudewhohacks/face-api.js

I am unable to install and run face-api.js with Node.js v12.

Steps to reproduce

cd face-api.js

nvm install 12
nvm use 12

npm install

Expected result

face-api.js installs correctly.

Actual result

npm outputs a wall of errors. Most notably build errors with [email protected] and [email protected]

Environment

Node: v12.2.0
face-api.js: 0.20.0

Comments

After a bit of googling around it looks like indeed fsevents and canvas only add support for Node.js v12 in [email protected] and [email protected] respectively, see
https://github.com/fsevents/fsevents/pull/274 and
https://github.com/Automattic/node-canvas/pull/1409

Most helpful comment

Installing the package from npm works fine with node 12.2. Installing the dev dependencies of this repo just doesn't work, because I didn't upgrade them yet to be compatible with node 12.

>All comments

Installing the package from npm works fine with node 12.2. Installing the dev dependencies of this repo just doesn't work, because I didn't upgrade them yet to be compatible with node 12.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

salamanders picture salamanders  路  3Comments

XDmoyang picture XDmoyang  路  6Comments

swapanil picture swapanil  路  5Comments

thirukumars picture thirukumars  路  3Comments

liyinghao666 picture liyinghao666  路  5Comments