Unable to install all Nodes

Google translation

Bonjour Hello

Je suis débutant sur Node-Red I'm a beginner on Node-Red

Je voudrais faire fonctionner ce programme I would like to run this program

https://github.com/diverjoe/FishNet/wiki

Impossible d’installer tous les Node Unable to install all Nodes

Quelqu’un peut-il m’aider Can anyone help me

Je vous remercie par avance I thank you in advance

Configuration

Raspberry PI4 RAM 8GO

Système exploitation

Raspberry Pi OS (32 bits) avec bureau

Image avec bureau basée sur Debian Buster

Version:Mai 2020

Date de sortie:2020-05-27

Version du noyau:4.19

Taille:1128 Mo

Install node red :

1 - sudo apt install build-essential git

2 - bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update- nodejs-and-nodered)

Would you like to install the Pi-specific nodes ? YES

Would you like to install the Pi-specific nodes ? YES

Stop Node-RED :heavy_check_mark:

Remove old version of Node-RED :heavy_check_mark:

Remove old version of Node.js :heavy_check_mark:

Install Node.js LTS :heavy_check_mark: Node v12.18.2 Npm 6.14.6

Clean npm cache :heavy_check_mark:

Install Node-RED core :heavy_check_mark: 1.1.2

Move global nodes to local -

Install extra Pi nodes -

Npm rebuild existing nodes -

Add shortcut commands :heavy_check_mark:

Update systemd script :heavy_check_mark:

Any errors will be logged to /var/log/nodered-install.log All done.

3- node-red-pi --max-old-space-size=256

Node -v = 12.18.2 npm -v = 6.14.6

-Manage palette install:

node-red-dashboard

A set of dashboard nodes for Node-RED

2.23.0 6 days ago INSTALL OK

Manage palette install:

node-red-contrib-influxdb

Node-RED nodes to save and query data from an influxdb 1.x time series database

0.4.1 3 weeks ago INSTALL OK

-Manage palette install:

node-red-contrib-os

Node-Red nodes for obtaining cpu system information.

0.1.7 3 years, 10 months ago INSTALL OK

Manage palette install:

node-red-node-smooth

A Node-RED node that provides several simple smoothing algorithms for incoming data values.

0.1.2 10 months ago

INSTALL OK

Manage palette install:

node-red-contrib-ds18b20-sensor

Node-red node to connect DS18B20 sensors

1.3.6 1 year, 6 months ago INSTALL OK

Manage palette install:

node-red-contrib-ds18b20

A Node-RED node to read a temperature from a DS18B20 sensor

0.0.3 6 years ago INSTALL OK

Manage palette install:

node-red-contrib-fsm

FSM - A Finite Statemachine Node

0.0.6 3 years, 5 months ago INSTALL OK

Manage palette install:

node-red-contrib-timerswitch

An easy, intuitive and precise node-red timer that allows you to turn something on/off multiple times a day and supports schedules as low as 1 second.

1.3.0 6 days ago INSTALL OK

Manage palette install:

node-red-contrib-curve

Node to calculate output by a given mathematical function expression

1.0.1 3 years, 5 months ago INSTALL OK

DEPLOY :

The workspace contains some unknown node types:

PCA9685 out

i2c in

i2c out

kalman-filter

twitter out

  • 2 more

Are you sure you want to deploy? NO

Manage palette install:

node-red-contrib-pca9685

Control a PCA9685 board with Node-RED

0.1.3 3 years, 9 months ago INSTALL FAIL

DEPLOY :

The workspace contains some unknown node types:

PCA9685 out

i2c in

i2c out

kalman-filter

twitter out

  • 2 more

Are you sure you want to deploy? NO

Manage palette install:

node-red-contrib-i2c

A Node-RED node to talk to the Raspiberry PI's I2C port

0.7.2 2 weeks ago INSTALL FAIL

DEPLOY :

The workspace contains some unknown node types:

PCA9685 out

i2c in

i2c out

kalman-filter

twitter out

  • 2 more

Are you sure you want to deploy? NO

Manage palette install:

node-red-contrib-kalman

node-red-contrib-kalman ========================

0.0.3 3 years, 10 months ago INSTALL FAIL

DEPLOY :

The workspace contains some unknown node types:

PCA9685 out

i2c in

i2c out

kalman-filter

twitter out

  • 2 more

Are you sure you want to deploy? NO

Manage palette install:

node-red-node-twitter

A Node-RED node to talk to Twitter

1.1.6 7 months ago INSTALL FAIL


2020-07-16T19:37:26.526Z Install : node-red-dashboard 2.23.0

2020-07-16T19:37:24.011Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-dashboard@2.23.0

2020-07-16T19:37:34.031Z [err] npm

2020-07-16T19:37:34.032Z [err] notice created a lockfile as package-lock.json. You should commit this file.

2020-07-16T19:37:34.040Z [err] npm

2020-07-16T19:37:34.040Z [err] WARN node-red-project@0.0.1 No repository field.

2020-07-16T19:37:34.047Z [err] npm

2020-07-16T19:37:34.047Z [err] WARN node-red-project@0.0.1 No license field.

2020-07-16T19:37:34.048Z [err]

2020-07-16T19:37:34.051Z [out] + node-red-dashboard@2.23.0

2020-07-16T19:37:34.051Z [out] added 80 packages from 60 contributors in 8.319s

2020-07-16T19:37:34.119Z rc=0


2020-07-16T19:40:30.455Z Install : node-red-contrib-influxdb 0.4.1

2020-07-16T19:40:27.937Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-influxdb@0.4.1

2020-07-16T19:40:33.432Z [err] npm

2020-07-16T19:40:33.432Z [err] WARN node-red-project@0.0.1 No repository field.

2020-07-16T19:40:33.438Z [err] npm

2020-07-16T19:40:33.439Z [err] WARN node-red-project@0.0.1 No license field.

2020-07-16T19:40:33.439Z [err]

2020-07-16T19:40:33.441Z [out] + node-red-contrib-influxdb@0.4.1

2020-07-16T19:40:33.441Z [out] added 3 packages from 6 contributors in 4.178s

2020-07-16T19:40:33.465Z rc=0


2020-07-16T19:42:43.300Z Install : node-red-contrib-os 0.1.7

2020-07-16T19:42:40.789Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-os@0.1.7

2020-07-16T19:42:46.780Z [err] npm

2020-07-16T19:42:46.781Z [err] WARN node-red-project@0.0.1 No repository field.

2020-07-16T19:42:46.787Z [err] npm

2020-07-16T19:42:46.787Z [err] WARN node-red-project@0.0.1 No license field.

2020-07-16T19:42:46.788Z [err]

2020-07-16T19:42:46.790Z [out] + node-red-contrib-os@0.1.7

2020-07-16T19:42:46.790Z [out] added 3 packages from 3 contributors in 4.677s

2020-07-16T19:42:46.812Z rc=0


2020-07-16T19:51:03.520Z Install : node-red-node-smooth 0.1.2

2020-07-16T19:51:01.021Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-node-smooth@0.1.2

2020-07-16T19:51:05.013Z [err] npm

2020-07-16T19:51:05.014Z [err] WARN node-red-project@0.0.1 No repository field.

2020-07-16T19:51:05.021Z [err] npm

2020-07-16T19:51:05.021Z [err] WARN node-red-project@0.0.1 No license field.

2020-07-16T19:51:05.021Z [err]

2020-07-16T19:51:05.024Z [out] + node-red-node-smooth@0.1.2

2020-07-16T19:51:05.024Z [out] added 1 package from 2 contributors in 2.692s

2020-07-16T19:51:05.045Z rc=0


2020-07-16T19:53:22.706Z Install : node-red-contrib-ds18b20-sensor 1.3.6

2020-07-16T19:53:20.209Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-ds18b20-sensor@1.3.6

2020-07-16T19:53:24.142Z [err] npm

2020-07-16T19:53:24.143Z [err] WARN node-red-project@0.0.1 No repository field.

2020-07-16T19:53:24.149Z [err] npm

2020-07-16T19:53:24.149Z [err] WARN node-red-project@0.0.1 No license field.

2020-07-16T19:53:24.150Z [err]

2020-07-16T19:53:24.153Z [out] + node-red-contrib-ds18b20-sensor@1.3.6

2020-07-16T19:53:24.153Z [out] added 1 package from 1 contributor in 2.636s

2020-07-16T19:53:24.176Z rc=0


2020-07-16T19:55:20.639Z Install : node-red-contrib-ds18b20 0.0.3

2020-07-16T19:55:18.141Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-ds18b20@0.0.3

2020-07-16T19:55:23.036Z [err] npm

2020-07-16T19:55:23.036Z [err] WARN node-red-project@0.0.1 No repository field.

2020-07-16T19:55:23.043Z [err] npm

2020-07-16T19:55:23.043Z [err] WARN node-red-project@0.0.1 No license field.

2020-07-16T19:55:23.044Z [err]

2020-07-16T19:55:23.046Z [out] + node-red-contrib-ds18b20@0.0.3

2020-07-16T19:55:23.046Z [out] added 2 packages from 2 contributors in 3.579s

2020-07-16T19:55:23.072Z rc=0


2020-07-16T19:58:06.783Z Install : node-red-contrib-fsm 0.0.6

2020-07-16T19:58:04.289Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-fsm@0.0.6

2020-07-16T19:58:08.418Z [err] npm

2020-07-16T19:58:08.418Z [err] WARN node-red-project@0.0.1 No repository field.

2020-07-16T19:58:08.424Z [err] npm

2020-07-16T19:58:08.425Z [err] WARN node-red-project@0.0.1 No license field.

2020-07-16T19:58:08.425Z [err]

2020-07-16T19:58:08.427Z [out] + node-red-contrib-fsm@0.0.6

2020-07-16T19:58:08.427Z [out] added 1 package in 2.808s

2020-07-16T19:58:08.449Z rc=0


2020-07-16T20:00:04.047Z Install : node-red-contrib-timerswitch 1.3.0

2020-07-16T20:00:01.556Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-timerswitch@1.3.0

2020-07-16T20:00:05.565Z [err] npm

2020-07-16T20:00:05.565Z [err] WARN node-red-project@0.0.1 No repository field.

2020-07-16T20:00:05.571Z [err] npm

2020-07-16T20:00:05.571Z [err] WARN node-red-project@0.0.1 No license field.

2020-07-16T20:00:05.572Z [err]

2020-07-16T20:00:05.574Z [out] + node-red-contrib-timerswitch@1.3.0

2020-07-16T20:00:05.574Z [out] added 1 package from 1 contributor in 2.685s

2020-07-16T20:00:05.596Z rc=0


2020-07-16T20:01:45.922Z Install : node-red-contrib-curve 1.0.1

2020-07-16T20:01:43.433Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-curve@1.0.1

2020-07-16T20:01:51.047Z [err] npm

2020-07-16T20:01:51.048Z [err] WARN deprecated logspace@1.0.1: I wrote this module a very long time ago; you should use something else.

2020-07-16T20:01:51.050Z [err] npm

2020-07-16T20:01:51.051Z [err] WARN deprecated linspace@1.0.0: I wrote this module a very long time ago; you should use something else.

2020-07-16T20:01:57.039Z [err] npm

2020-07-16T20:01:57.039Z [err] WARN node-red-project@0.0.1 No repository field.

2020-07-16T20:01:57.045Z [err] npm

2020-07-16T20:01:57.046Z [err] WARN node-red-project@0.0.1 No license field.

2020-07-16T20:01:57.046Z [err]

2020-07-16T20:01:57.049Z [out] + node-red-contrib-curve@1.0.1

2020-07-16T20:01:57.049Z [out] added 26 packages from 20 contributors in 12.293s

2020-07-16T20:01:57.073Z rc=0


2020-07-16T20:04:25.765Z Install : node-red-contrib-pca9685 0.1.3

2020-07-16T20:04:23.280Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-pca9685@0.1.3

2020-07-16T20:04:33.645Z [err] npm

2020-07-16T20:04:33.646Z [err] ERR! code EISGIT

2020-07-16T20:04:33.646Z [err] npm ERR! path

2020-07-16T20:04:33.646Z [err] /home/pi/.node-red/node_modules/function-plot

2020-07-16T20:04:33.650Z [err] npm

2020-07-16T20:04:33.650Z [err] ERR! git /home/pi/.node-red/node_modules/function-plot: Appears to be a git repo or submodule.

2020-07-16T20:04:33.650Z [err] npm ERR!

2020-07-16T20:04:33.651Z [err] git /home/pi/.node-red/node_modules/function-plot

2020-07-16T20:04:33.651Z [err] npm

2020-07-16T20:04:33.651Z [err] ERR! git Refusing to remove it. Update manually,

2020-07-16T20:04:33.651Z [err] npm

2020-07-16T20:04:33.651Z [err] ERR! git or move it out of the way first.

2020-07-16T20:04:33.663Z [err]

2020-07-16T20:04:33.663Z [err] npm ERR! A complete log of this run can be found in:

2020-07-16T20:04:33.663Z [err] npm ERR!

2020-07-16T20:04:33.663Z [err] /home/pi/.npm/_logs/2020-07-16T20_04_33_653Z-debug.log

2020-07-16T20:04:33.673Z rc=1


2020-07-16T20:09:13.017Z Install : node-red-contrib-i2c 0.7.2

2020-07-16T20:09:10.539Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-i2c@0.7.2

2020-07-16T20:09:15.444Z [err] npm

2020-07-16T20:09:15.444Z [err] ERR! code EISGIT

2020-07-16T20:09:15.444Z [err] npm ERR! path

2020-07-16T20:09:15.444Z [err] /home/pi/.node-red/node_modules/function-plot

2020-07-16T20:09:15.448Z [err] npm

2020-07-16T20:09:15.448Z [err] ERR! git /home/pi/.node-red/node_modules/function-plot: Appears to be a git repo or submodule.

2020-07-16T20:09:15.448Z [err] npm

2020-07-16T20:09:15.450Z [err] ERR! git /home/pi/.node-red/node_modules/function-plot

2020-07-16T20:09:15.450Z [err] npm ERR! git Refusing to remove it. Update manually,

2020-07-16T20:09:15.450Z [err] npm ERR! git or move it out of the way first.

2020-07-16T20:09:15.463Z [err]

2020-07-16T20:09:15.463Z [err] npm ERR! A complete log of this run can be found in:

2020-07-16T20:09:15.463Z [err] npm ERR! /home/pi/.npm/_logs/2020-07-16T20_09_15_451Z-debug.log

2020-07-16T20:09:15.473Z rc=1


2020-07-16T20:12:36.624Z Install : node-red-contrib-kalman 0.0.3

2020-07-16T20:12:34.152Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-kalman@0.0.3

2020-07-16T20:12:39.306Z [err] npm

2020-07-16T20:12:39.306Z [err] WARN notsup Unsupported engine for node-red-contrib-kalman@0.0.3: wanted: {"node":"4.2.x"} (current: {"node":"12.18.2","npm":"6.14.6"})

2020-07-16T20:12:39.306Z [err] npm WARN

2020-07-16T20:12:39.306Z [err] notsup Not compatible with your version of node/npm: node-red-contrib-kalman@0.0.3

2020-07-16T20:12:39.307Z [err]

2020-07-16T20:12:39.330Z [err] npm

2020-07-16T20:12:39.330Z [err] ERR! code EISGIT

2020-07-16T20:12:39.331Z [err] npm ERR!

2020-07-16T20:12:39.331Z [err] path /home/pi/.node-red/node_modules/function-plot

2020-07-16T20:12:39.333Z [err] npm

2020-07-16T20:12:39.333Z [err] ERR! git /home/pi/.node-red/node_modules/function-plot: Appears to be a git repo or submodule.

2020-07-16T20:12:39.333Z [err] npm

2020-07-16T20:12:39.334Z [err] ERR! git /home/pi/.node-red/node_modules/function-plot

2020-07-16T20:12:39.334Z [err] npm ERR! git Refusing to remove it. Update manually,

2020-07-16T20:12:39.334Z [err] npm ERR!

2020-07-16T20:12:39.334Z [err] git or move it out of the way first.

2020-07-16T20:12:39.346Z [err]

2020-07-16T20:12:39.346Z [err] npm ERR! A complete log of this run can be found in:

2020-07-16T20:12:39.346Z [err] npm

2020-07-16T20:12:39.346Z [err] ERR! /home/pi/.npm/_logs/2020-07-16T20_12_39_336Z-debug.log

2020-07-16T20:12:39.356Z rc=1


2020-07-16T20:15:28.359Z Install : node-red-contrib-kalman 0.0.3

2020-07-16T20:15:25.889Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-kalman@0.0.3

2020-07-16T20:15:29.039Z [err] npm

2020-07-16T20:15:29.040Z [err]

2020-07-16T20:15:29.040Z [err] WARN notsup Unsupported engine for node-red-contrib-kalman@0.0.3: wanted: {"node":"4.2.x"} (current: {"node":"12.18.2","npm":"6.14.6"})

2020-07-16T20:15:29.040Z [err] npm

2020-07-16T20:15:29.040Z [err] WARN

2020-07-16T20:15:29.040Z [err] notsup

2020-07-16T20:15:29.040Z [err] Not compatible with your version of node/npm: node-red-contrib-kalman@0.0.3

2020-07-16T20:15:29.041Z [err]

2020-07-16T20:15:29.060Z [err] npm

2020-07-16T20:15:29.060Z [err] ERR! code

2020-07-16T20:15:29.060Z [err] EISGIT

2020-07-16T20:15:29.060Z [err] npm

2020-07-16T20:15:29.060Z [err] ERR! path

2020-07-16T20:15:29.060Z [err] /home/pi/.node-red/node_modules/function-plot

2020-07-16T20:15:29.063Z [err] npm

2020-07-16T20:15:29.069Z [err] ERR! git /home/pi/.node-red/node_modules/function-plot: Appears to be a git repo or submodule.

2020-07-16T20:15:29.069Z [err] npm ERR! git /home/pi/.node-red/node_modules/function-plot

2020-07-16T20:15:29.069Z [err] npm ERR! git Refusing to remove it. Update manually,

2020-07-16T20:15:29.069Z [err] npm ERR! git or move it out of the way first.

2020-07-16T20:15:29.077Z [err]

2020-07-16T20:15:29.077Z [err] npm ERR! A complete log of this run can be found in:

2020-07-16T20:15:29.077Z [err] npm ERR!

2020-07-16T20:15:29.078Z [err] /home/pi/.npm/_logs/2020-07-16T20_15_29_066Z-debug.log

2020-07-16T20:15:29.087Z rc=1


2020-07-16T20:17:35.227Z Install : node-red-node-twitter 1.1.6

2020-07-16T20:17:32.760Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-node-twitter@1.1.6

2020-07-16T20:17:36.204Z [err] npm

2020-07-16T20:17:36.204Z [err] WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

2020-07-16T20:17:40.138Z [err] npm

2020-07-16T20:17:40.138Z [err] ERR! code EISGIT

2020-07-16T20:17:40.138Z [err] npm ERR! path /home/pi/.node-red/node_modules/function-plot

2020-07-16T20:17:40.142Z [err] npm

2020-07-16T20:17:40.143Z [err] ERR! git /home/pi/.node-red/node_modules/function-plot: Appears to be a git repo or submodule.

2020-07-16T20:17:40.143Z [err] npm

2020-07-16T20:17:40.143Z [err] ERR! git /home/pi/.node-red/node_modules/function-plot

2020-07-16T20:17:40.143Z [err] npm ERR!

2020-07-16T20:17:40.143Z [err] git Refusing to remove it. Update manually,

2020-07-16T20:17:40.143Z [err] npm

2020-07-16T20:17:40.143Z [err] ERR! git or move it out of the way first.

2020-07-16T20:17:40.164Z [err]

2020-07-16T20:17:40.164Z [err] npm ERR! A complete log of this run can be found in:

2020-07-16T20:17:40.164Z [err] npm ERR! /home/pi/.npm/_logs/2020-07-16T20_17_40_146Z-debug.log

2020-07-16T20:17:40.175Z rc=1

Installation impossible des Node suivant Unable to install the following nodes

PCA9685 out

i2c in

i2c out

kalman-filter

twitter out

  • 2 more

Node listing :

pi@raspberrypi:~ $ apt-mark showmanual

adduser

alacarte

alsa-utils

apt

apt-listchanges

apt-utils

arandr

avahi-daemon

base-files

base-passwd

bash

bash-completion

bsdmainutils

bsdutils

build-essential

ca-certificates

chromium-browser

cifs-utils

console-setup

coreutils

cpio

crda

cron

curl

dash

debconf

debconf-i18n

debconf-utils

debian-reference-en

debianutils

desktop-base

dhcpcd5

diffutils

dillo

dirmngr

dmidecode

dmsetup

dosfstools

dphys-swapfile

dpkg

e2fsprogs

ed

ethtool

fake-hwclock

fbset

fdisk

ffmpeg

findutils

firmware-atheros

firmware-brcm80211

firmware-libertas

firmware-misc-nonfree

firmware-realtek

fonts-droid-fallback

fonts-liberation2

gcc-4.9-base

gcc-5-base

gcc-6-base

gcc-7-base

gcc-8-base

gdb

gdbm-l10n

geany

git

gldriver-test

gnome-icon-theme

gnupg

gnupg-l10n

gnupg-utils

gpg

gpg-agent

gpg-wks-client

gpg-wks-server

gpgconf

gpgsm

gpgv

grep

groff-base

gstreamer1.0-alsa

gstreamer1.0-libav

gstreamer1.0-omx

gstreamer1.0-plugins-bad

gstreamer1.0-plugins-base

gstreamer1.0-plugins-good

gstreamer1.0-x

gtk2-engines

gvfs

gvfs-backends

gvfs-fuse

gzip

hardlink

hostname

htop

hunspell-en-gb

hyphen-en-gb

ifupdown

info

init

init-system-helpers

install-info

iproute2

iptables

iputils-ping

isc-dhcp-client

isc-dhcp-common

keyboard-configuration

kmod

less

libacl1

libapparmor1

libapt-inst2.0

libapt-pkg5.0

libargon2-1

libassuan0

libatomic1

libattr1

libaudit-common

libaudit1

libblkid1

libboost-iostreams1.58.0

libbsd0

libbz2-1.0

libc-bin

libc6

libcap-ng0

libcap2

libcap2-bin

libcom-err2

libcryptsetup12

libdb5.3

libdebconfclient0

libdevmapper1.02.1

libdns-export1104

libelf1

libestr0

libext2fs2

libfastjson4

libfdisk1

libffi6

libfreetype6-dev

libgcc1

libgcrypt20

libgdbm6

libgl1-mesa-dri

libgles1

libgles2-mesa

libgmp10

libgnutls30

libgpg-error0

libhogweed4

libident

libidn11

libidn2-0

libip4tc0

libip6tc0

libiptc0

libisc-export1100

libjson-c3

libkmod2

libksba8

libldap-2.4-2

libldap-common

liblocale-gettext-perl

liblognorm5

liblz4-1

liblzma5

libmnl-dev

libmnl0

libmount1

libmtp-runtime

libncurses6

libncursesw6

libnetfilter-conntrack3

libnettle6

libnfnetlink0

libnftnl11

libnpth0

libp11-kit0

libpam-chksshpwd

libpam-modules

libpam-modules-bin

libpam-runtime

libpam0g

libpcre3

libpipeline1

libpopt0

libprocps7

libraspberrypi-bin

libraspberrypi-dev

libraspberrypi-doc

libraspberrypi0

libreadline6

libreadline7

libsasl2-2

libsasl2-modules-db

libseccomp2

libselinux1

libsemanage-common

libsemanage1

libsepol1

libsigc++-1.2-5c2

libsmartcols1

libsqlite3-0

libss2

libssl1.1

libstdc++6

libsystemd0

libtasn1-6

libtext-charwidth-perl

libtext-iconv-perl

libtext-wrapi18n-perl

libtinfo5

libtinfo6

libuchardet0

libudev0

libudev1

libunistring2

libuuid1

libxtables12

libzstd1

lightdm

locales

login

logrotate

lsb-base

lua5.1

luajit

lxde

lxtask

man-db

manpages-dev

mawk

menu-xdg

mount

mousepad

multiarch-support

nano

ncdu

ncurses-base

ncurses-bin

net-tools

netbase

netcat-openbsd

netcat-traditional

nfs-common

nodejs

ntfs-3g

obconf

omxplayer

parted

passwd

paxctld

pciutils

perl-base

pi-bluetooth

pi-package

piclone

pigpio

pinentry-curses

piwiz

pkg-config

policykit-1

pprompt

procps

psmisc

pypy

python

python-automationhat

python-blinkt

python-buttonshim

python-cap1xxx

python-drumhat

python-envirophat

python-explorerhat

python-flask

python-fourletterphat

python-gpiozero

python-microdotphat

python-mote

python-motephat

python-pantilthat

python-phatbeat

python-pianohat

python-picamera

python-piglow

python-pigpio

python-pip

python-pygame

python-rainbowhat

python-rpi.gpio

python-scrollphat

python-scrollphathd

python-serial

python-skywriter

python-smbus

python-sn3218

python-spidev

python-tk

python-touchphat

python-twython

python-unicornhathd

python3

python3-automationhat

python3-blinkt

python3-buttonshim

python3-cap1xxx

python3-drumhat

python3-envirophat

python3-explorerhat

python3-flask

python3-fourletterphat

python3-gpiozero

python3-microdotphat

python3-mote

python3-motephat

python3-numpy

python3-pantilthat

python3-pgzero

python3-phatbeat

python3-pianohat

python3-picamera

python3-piglow

python3-pigpio

python3-pip

python3-pygame

python3-rainbowhat

python3-rpi.gpio

python3-scrollphat

python3-scrollphathd

python3-serial

python3-skywriter

python3-smbus

python3-sn3218

python3-spidev

python3-tk

python3-touchphat

python3-twython

python3-unicornhathd

qpdfview

raspberrypi-artwork

raspberrypi-bootloader

raspberrypi-kernel

raspberrypi-net-mods

raspberrypi-sys-mods

raspberrypi-ui-mods

raspbian-archive-keyring

raspi-config

raspi-copies-and-fills

raspi-gpio

rc-gui

readline-common

realvnc-vnc-server

rfkill

rng-tools

rp-prefapps

rpi-chromium-mods

rpi-eeprom

rpi-update

rsync

rsyslog

sed

sense-hat

sensible-utils

ssh

ssh-import-id

strace

sudo

systemd

systemd-sysv

sysvinit-utils

tar

tasksel

tasksel-data

thonny

traceroute

tree

tzdata

udev

unzip

usb-modeswitch

usbutils

util-linux

v4l-utils

vim-common

vim-tiny

vl805fw

vlc

wamerican

wbritish

wfrench

wireless-tools

wiringpi

wpasupplicant

xcompmgr

xdg-utils

xinit

xserver-xorg

xserver-xorg-video-fbdev

xserver-xorg-video-fbturbo

xxd

zenity

zlib1g

pi@raspberrypi:~ $

Merci pour votre aide Thanks for your help

Sebastien

Hi Sebastien.

Please understand I too am a learning person, so am not expert.

Yes, it is good you posted all the results of things you did/tried.

But one thing sticks out for me:

Where is this file's contents?

I am only guessing, but something you may need to check:

the raspi-config settings. (sudo raspi-config)

Option 5 - interface

Do you have the SPI, I2C (and others) enabled?

If not, that could be causing problems for you.

That is the cause of at least some of the problems (there wasn't any need to show us all the successful installs). The folder includes a folder called .git
It isn't clear where that came from, I can't see it as being installed in the output you posted. I suggest removing that folder (/home/pi/.node-red/node_modules/function-plot) and trying to install the missing nodes again. If you get failures just concentrate on one of them and post the output from installing that node here.

Bonjour Hello
Colin and Trying_to learn

J’ai à chaque installation de Node supprimer le dossier /home/pi/.node-red/node_modules/function-plot.
I have each time I install Node delete the folder /home/pi/.node-red/node_modules/function-plot.

J’ai réussi à installer presque tous les Nodes sauf un Node-red-contrib-pca9685.
I managed to install almost all of the Nodes except one Node-red-contrib-pca9685.

Configuration du Raspberry PI :
SSH Active Enabled
VNC Active Enabled
SPI Active Enabled
I2C Active Enabled
Serial Port Active Enabled
Serial Console Active Enabled
1-Wire Active Enabled
Remote GPIO Active Enabled

Result install Node-red-contrib-pca9685 :

Install Manage Palette

2020-07-17T20:40:08.741Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.741Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.741Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.741Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.741Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.741Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.741Z [err] In file included from ../src/i2c.cc:99:
2020-07-17T20:40:08.741Z [err] ../src/./readi2cblock.cc:70:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.741Z [err] __u8 cmd = info[1]->Int32Value();
2020-07-17T20:40:08.741Z [err] ^
2020-07-17T20:40:08.741Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.741Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.741Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.741Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.741Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.741Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.741Z [err] In file included from ../src/i2c.cc:99:
2020-07-17T20:40:08.741Z [err] ../src/./readi2cblock.cc:71:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-07-17T20:40:08.741Z [err] __u32 length = info[2]->Uint32Value();
2020-07-17T20:40:08.741Z [err] ^
2020-07-17T20:40:08.742Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.742Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.742Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.742Z [err] V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-07-17T20:40:08.742Z [err] ^~~~~~~~~~~
2020-07-17T20:40:08.742Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.743Z [err] In file included from ../src/i2c.cc:99:
2020-07-17T20:40:08.743Z [err] ../src/./readi2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadI2cBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.743Z [err] ../src/./readi2cblock.cc:109:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.743Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.743Z [err] ^
2020-07-17T20:40:08.744Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.744Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.744Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.744Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.744Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.744Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.744Z [err] In file included from ../src/i2c.cc:99:
2020-07-17T20:40:08.744Z [err] ../src/./readi2cblock.cc:110:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.744Z [err] __u8 cmd = info[1]->Int32Value();
2020-07-17T20:40:08.744Z [err] ^
2020-07-17T20:40:08.744Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.744Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.744Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.744Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.744Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.744Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.744Z [err] In file included from ../src/i2c.cc:99:
2020-07-17T20:40:08.744Z [err] ../src/./readi2cblock.cc:111:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-07-17T20:40:08.744Z [err] __u32 length = info[2]->Uint32Value();
2020-07-17T20:40:08.744Z [err] ^
2020-07-17T20:40:08.744Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.744Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.744Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.744Z [err] V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-07-17T20:40:08.744Z [err] ^~~~~~~~~~~
2020-07-17T20:40:08.744Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.748Z [err] In file included from ../src/i2c.cc:100:
2020-07-17T20:40:08.748Z [err] ../src/./receivebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReceiveByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.748Z [err] ../src/./receivebyte.cc:48:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.748Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.748Z [err] ^
2020-07-17T20:40:08.750Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.750Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.750Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.750Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.750Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.750Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.751Z [err] In file included from ../src/i2c.cc:100:
2020-07-17T20:40:08.751Z [err] ../src/./receivebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReceiveByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.751Z [err] ../src/./receivebyte.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.751Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.751Z [err] ^
2020-07-17T20:40:08.751Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.751Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.751Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.751Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.751Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.751Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.754Z [err] In file included from ../src/i2c.cc:101:
2020-07-17T20:40:08.754Z [err] ../src/./sendbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SendByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.754Z [err] ../src/./sendbyte.cc:47:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.754Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.754Z [err] ^
2020-07-17T20:40:08.755Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.755Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.755Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.755Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.755Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.755Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.755Z [err] In file included from ../src/i2c.cc:101:
2020-07-17T20:40:08.755Z [err] ../src/./sendbyte.cc:48:35: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.755Z [err] __u8 byte = info[1]->Int32Value();
2020-07-17T20:40:08.755Z [err] ^
2020-07-17T20:40:08.755Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.755Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.755Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.755Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.755Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.755Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.756Z [err] In file included from ../src/i2c.cc:101:
2020-07-17T20:40:08.756Z [err] ../src/./sendbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SendByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.756Z [err] ../src/./sendbyte.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.756Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.756Z [err] ^
2020-07-17T20:40:08.756Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.756Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.756Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.756Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.756Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.756Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.756Z [err] In file included from ../src/i2c.cc:101:
2020-07-17T20:40:08.756Z [err] ../src/./sendbyte.cc:61:35: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.756Z [err] __u8 byte = info[1]->Int32Value();
2020-07-17T20:40:08.756Z [err] ^
2020-07-17T20:40:08.756Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.756Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.756Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.756Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.756Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.756Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.759Z [err] In file included from ../src/i2c.cc:102:
2020-07-17T20:40:08.759Z [err] ../src/./setaddr.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SetAddrAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.759Z [err] ../src/./setaddr.cc:46:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.759Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.759Z [err] ^
2020-07-17T20:40:08.759Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.759Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.759Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.759Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.759Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.759Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.759Z [err] In file included from ../src/i2c.cc:102:
2020-07-17T20:40:08.759Z [err] ../src/./setaddr.cc:47:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.759Z [err] int addr = info[1]->Int32Value();
2020-07-17T20:40:08.759Z [err] ^
2020-07-17T20:40:08.759Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.759Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.759Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.759Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.759Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.759Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.760Z [err] In file included from ../src/i2c.cc:102:
2020-07-17T20:40:08.760Z [err] ../src/./setaddr.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SetAddrSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.760Z [err] ../src/./setaddr.cc:59:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.760Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.760Z [err] ^
2020-07-17T20:40:08.761Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.761Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.761Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.761Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.761Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.761Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.761Z [err] In file included from ../src/i2c.cc:102:
2020-07-17T20:40:08.761Z [err] ../src/./setaddr.cc:60:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.761Z [err] int addr = info[1]->Int32Value();
2020-07-17T20:40:08.761Z [err] ^
2020-07-17T20:40:08.761Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.761Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.761Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.761Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.761Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.761Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.764Z [err] In file included from ../src/i2c.cc:103:
2020-07-17T20:40:08.764Z [err] ../src/./writebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.764Z [err] ../src/./writebyte.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.764Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.764Z [err] ^
2020-07-17T20:40:08.764Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.764Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.764Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.764Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.764Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.764Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.764Z [err] In file included from ../src/i2c.cc:103:
2020-07-17T20:40:08.764Z [err] ../src/./writebyte.cc:50:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.764Z [err] __u8 cmd = info[1]->Int32Value();
2020-07-17T20:40:08.764Z [err] ^
2020-07-17T20:40:08.764Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.764Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.764Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.764Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.764Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.764Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.764Z [err] In file included from ../src/i2c.cc:103:
2020-07-17T20:40:08.764Z [err] ../src/./writebyte.cc:51:35: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.764Z [err] __u8 byte = info[2]->Int32Value();
2020-07-17T20:40:08.764Z [err] ^
2020-07-17T20:40:08.764Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.764Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.764Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.764Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.764Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.764Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.765Z [err] In file included from ../src/i2c.cc:103:
2020-07-17T20:40:08.765Z [err] ../src/./writebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.765Z [err] ../src/./writebyte.cc:63:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.765Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.765Z [err] ^
2020-07-17T20:40:08.766Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.766Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.766Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.766Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.766Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.766Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.766Z [err] In file included from ../src/i2c.cc:103:
2020-07-17T20:40:08.766Z [err] ../src/./writebyte.cc:64:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.766Z [err] __u8 cmd = info[1]->Int32Value();
2020-07-17T20:40:08.766Z [err] ^
2020-07-17T20:40:08.766Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.766Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.766Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.766Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.766Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.766Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.768Z [err] In file included from ../src/i2c.cc:103:
2020-07-17T20:40:08.768Z [err] ../src/./writebyte.cc:65:35: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.768Z [err] __u8 byte = info[2]->Int32Value();
2020-07-17T20:40:08.768Z [err] ^
2020-07-17T20:40:08.768Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.768Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.768Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.768Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.768Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.768Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.771Z [err] In file included from ../src/i2c.cc:104:
2020-07-17T20:40:08.771Z [err] ../src/./writeword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteWordAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.771Z [err] ../src/./writeword.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.771Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.771Z [err] ^
2020-07-17T20:40:08.772Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.772Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.772Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.772Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.772Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.772Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided

2020-07-17T20:40:08.772Z [err] In file included from ../src/i2c.cc:104:
2020-07-17T20:40:08.772Z [err] ../src/./writeword.cc:50:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.772Z [err] __u8 cmd = info[1]->Int32Value();
2020-07-17T20:40:08.772Z [err] ^
2020-07-17T20:40:08.772Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.772Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.772Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.772Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.772Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.772Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.772Z [err] In file included from ../src/i2c.cc:104:
2020-07-17T20:40:08.772Z [err] ../src/./writeword.cc:51:36: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.772Z [err] __u16 word = info[2]->Int32Value();
2020-07-17T20:40:08.772Z [err] ^
2020-07-17T20:40:08.772Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.772Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.772Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.772Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.772Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.772Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.773Z [err] In file included from ../src/i2c.cc:104:
2020-07-17T20:40:08.773Z [err] ../src/./writeword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteWordSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.773Z [err] ../src/./writeword.cc:64:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.773Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.773Z [err] ^
2020-07-17T20:40:08.773Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.773Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.773Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.773Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.773Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.773Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.773Z [err] In file included from ../src/i2c.cc:104:
2020-07-17T20:40:08.773Z [err] ../src/./writeword.cc:65:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.773Z [err] __u8 cmd = info[1]->Int32Value();
2020-07-17T20:40:08.773Z [err] ^
2020-07-17T20:40:08.773Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.773Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.773Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.773Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.773Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.773Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.773Z [err] In file included from ../src/i2c.cc:104:
2020-07-17T20:40:08.773Z [err] ../src/./writeword.cc:66:36: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.773Z [err] __u16 word = info[2]->Int32Value();
2020-07-17T20:40:08.773Z [err] ^
2020-07-17T20:40:08.773Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.773Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.773Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.773Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.773Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.773Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.777Z [err] In file included from ../src/i2c.cc:105:
2020-07-17T20:40:08.777Z [err] ../src/./writeblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.777Z [err] ../src/./writeblock.cc:70:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.777Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.777Z [err] ^
2020-07-17T20:40:08.778Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.778Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.778Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.778Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.778Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.778Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.778Z [err] In file included from ../src/i2c.cc:105:
2020-07-17T20:40:08.778Z [err] ../src/./writeblock.cc:71:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.778Z [err] __u8 cmd = info[1]->Int32Value();
2020-07-17T20:40:08.778Z [err] ^
2020-07-17T20:40:08.778Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.778Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.778Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.778Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.778Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.778Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.778Z [err] In file included from ../src/i2c.cc:105:
2020-07-17T20:40:08.778Z [err] ../src/./writeblock.cc:72:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-07-17T20:40:08.778Z [err] __u32 length = info[2]->Uint32Value();
2020-07-17T20:40:08.778Z [err] ^
2020-07-17T20:40:08.778Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.778Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.778Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.778Z [err] V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-07-17T20:40:08.778Z [err] ^~~~~~~~~~~
2020-07-17T20:40:08.778Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.780Z [err] In file included from ../src/i2c.cc:105:
2020-07-17T20:40:08.780Z [err] ../src/./writeblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.780Z [err] ../src/./writeblock.cc:110:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.780Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.780Z [err] ^
2020-07-17T20:40:08.780Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.780Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.780Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.780Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.780Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.780Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.780Z [err] In file included from ../src/i2c.cc:105:
2020-07-17T20:40:08.780Z [err] ../src/./writeblock.cc:111:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.780Z [err] __u8 cmd = info[1]->Int32Value();
2020-07-17T20:40:08.780Z [err] ^
2020-07-17T20:40:08.780Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.780Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.780Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.780Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.780Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.780Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.780Z [err] In file included from ../src/i2c.cc:105:
2020-07-17T20:40:08.780Z [err] ../src/./writeblock.cc:112:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-07-17T20:40:08.780Z [err] __u32 length = info[2]->Uint32Value();
2020-07-17T20:40:08.780Z [err] ^
2020-07-17T20:40:08.780Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.780Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.780Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.780Z [err] V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-07-17T20:40:08.780Z [err] ^~~~~~~~~~~
2020-07-17T20:40:08.780Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.785Z [err] In file included from ../src/i2c.cc:106:
2020-07-17T20:40:08.785Z [err] ../src/./writei2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteI2cBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.785Z [err] ../src/./writei2cblock.cc:68:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.785Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.785Z [err] ^
2020-07-17T20:40:08.785Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.785Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.785Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.785Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.785Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.785Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.785Z [err] In file included from ../src/i2c.cc:106:
2020-07-17T20:40:08.785Z [err] ../src/./writei2cblock.cc:69:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.785Z [err] __u8 cmd = info[1]->Int32Value();
2020-07-17T20:40:08.785Z [err] ^
2020-07-17T20:40:08.785Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.785Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.785Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.785Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.785Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.785Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.785Z [err] In file included from ../src/i2c.cc:106:
2020-07-17T20:40:08.785Z [err] ../src/./writei2cblock.cc:70:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-07-17T20:40:08.785Z [err] __u32 length = info[2]->Uint32Value();
2020-07-17T20:40:08.785Z [err] ^
2020-07-17T20:40:08.785Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.785Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.785Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.785Z [err] V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-07-17T20:40:08.785Z [err] ^~~~~~~~~~~
2020-07-17T20:40:08.785Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.787Z [err] In file included from ../src/i2c.cc:106:
2020-07-17T20:40:08.787Z [err] ../src/./writei2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteI2cBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.787Z [err] ../src/./writei2cblock.cc:108:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.787Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.787Z [err] ^
2020-07-17T20:40:08.788Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.788Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.788Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.788Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.788Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.788Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.788Z [err] In file included from ../src/i2c.cc:106:
2020-07-17T20:40:08.788Z [err] ../src/./writei2cblock.cc:109:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.788Z [err] __u8 cmd = info[1]->Int32Value();
2020-07-17T20:40:08.788Z [err] ^
2020-07-17T20:40:08.788Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.788Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.788Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.788Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.788Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.788Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.788Z [err] In file included from ../src/i2c.cc:106:
2020-07-17T20:40:08.788Z [err] ../src/./writei2cblock.cc:110:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-07-17T20:40:08.788Z [err] __u32 length = info[2]->Uint32Value();
2020-07-17T20:40:08.788Z [err] ^
2020-07-17T20:40:08.788Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.788Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.788Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.788Z [err] V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-07-17T20:40:08.788Z [err] ^~~~~~~~~~~
2020-07-17T20:40:08.788Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.797Z [err] In file included from ../src/i2c.cc:107:
2020-07-17T20:40:08.797Z [err] ../src/./writequick.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteQuickAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.797Z [err] ../src/./writequick.cc:47:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.797Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.797Z [err] ^
2020-07-17T20:40:08.797Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.797Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.797Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.797Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.797Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.797Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.797Z [err] In file included from ../src/i2c.cc:107:
2020-07-17T20:40:08.797Z [err] ../src/./writequick.cc:48:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.797Z [err] __u8 bit = info[1]->Int32Value();
2020-07-17T20:40:08.797Z [err] ^
2020-07-17T20:40:08.797Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.797Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.797Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.797Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.797Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.797Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.797Z [err] In file included from ../src/i2c.cc:107:
2020-07-17T20:40:08.797Z [err] ../src/./writequick.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteQuickSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-07-17T20:40:08.797Z [err] ../src/./writequick.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.797Z [err] int fd = info[0]->Int32Value();
2020-07-17T20:40:08.797Z [err] ^
2020-07-17T20:40:08.797Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.797Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.797Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.797Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.797Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.797Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:08.797Z [err] In file included from ../src/i2c.cc:107:
2020-07-17T20:40:08.797Z [err] ../src/./writequick.cc:61:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-07-17T20:40:08.797Z [err] __u8 bit = info[1]->Int32Value();
2020-07-17T20:40:08.797Z [err] ^
2020-07-17T20:40:08.797Z [err] In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
2020-07-17T20:40:08.797Z [err] from ../src/i2c.cc:1:
2020-07-17T20:40:08.797Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
2020-07-17T20:40:08.797Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
2020-07-17T20:40:08.797Z [err] ^~~~~~~~~~
2020-07-17T20:40:08.797Z [err] /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-07-17T20:40:09.040Z [err] make: *** [i2c.target.mk:109: Release/obj.target/i2c/src/i2c.o] Error 1
2020-07-17T20:40:09.040Z [out] make : on quitte le répertoire « /home/pi/.node-red/node_modules/node-red-contrib-pca9685/node_modules/i2c-bus/build »
2020-07-17T20:40:09.043Z [err] gyp
2020-07-17T20:40:09.043Z [err]
2020-07-17T20:40:09.043Z [err] ERR! build error
2020-07-17T20:40:09.044Z [err] gyp
2020-07-17T20:40:09.045Z [err] ERR! stack
2020-07-17T20:40:09.045Z [err] Error: make failed with exit code: 2
2020-07-17T20:40:09.045Z [err] gyp ERR!
2020-07-17T20:40:09.045Z [err] stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2020-07-17T20:40:09.045Z [err] gyp
2020-07-17T20:40:09.045Z [err] ERR! stack
2020-07-17T20:40:09.045Z [err] at ChildProcess.emit (events.js:315:20)
2020-07-17T20:40:09.045Z [err] gyp ERR!
2020-07-17T20:40:09.045Z [err] stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
2020-07-17T20:40:09.046Z [err] gyp
2020-07-17T20:40:09.046Z [err] ERR! System Linux 4.19.118-v7l+
2020-07-17T20:40:09.046Z [err] gyp ERR!
2020-07-17T20:40:09.046Z [err] command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2020-07-17T20:40:09.046Z [err] gyp ERR! cwd
2020-07-17T20:40:09.046Z [err] /home/pi/.node-red/node_modules/node-red-contrib-pca9685/node_modules/i2c-bus
2020-07-17T20:40:09.046Z [err] gyp ERR!
2020-07-17T20:40:09.046Z [err] node -v v12.18.2
2020-07-17T20:40:09.046Z [err] gyp
2020-07-17T20:40:09.047Z [err] ERR! node-gyp -v v5.1.0
2020-07-17T20:40:09.047Z [err] gyp ERR! not ok
2020-07-17T20:40:09.047Z [err]
2020-07-17T20:40:09.268Z [err] npm
2020-07-17T20:40:09.268Z [err] WARN node-red-project@0.0.1 No repository field.
2020-07-17T20:40:09.275Z [err] npm
2020-07-17T20:40:09.275Z [err] WARN node-red-project@0.0.1 No license field.
2020-07-17T20:40:09.275Z [err]
2020-07-17T20:40:09.314Z [err] npm
2020-07-17T20:40:09.314Z [err] ERR! code ELIFECYCLE
2020-07-17T20:40:09.314Z [err] npm ERR!
2020-07-17T20:40:09.315Z [err] errno 1
2020-07-17T20:40:09.319Z [err] npm ERR! i2c-bus@1.1.2 install: node-gyp rebuild
2020-07-17T20:40:09.319Z [err] npm ERR! Exit status 1
2020-07-17T20:40:09.319Z [err] npm ERR!
2020-07-17T20:40:09.319Z [err]
2020-07-17T20:40:09.319Z [err] npm ERR! Failed at the i2c-bus@1.1.2 install script.
2020-07-17T20:40:09.319Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-07-17T20:40:09.335Z [err]
2020-07-17T20:40:09.335Z [err] npm ERR! A complete log of this run can be found in:
2020-07-17T20:40:09.335Z [err] npm ERR!
2020-07-17T20:40:09.335Z [err] /home/pi/.npm/_logs/2020-07-17T20_40_09_322Z-debug.log
2020-07-17T20:40:09.347Z rc=1

Merci encore pour votre aide une parti du probleme est resolue.

Thanks again for your help. Part of the problem is solved.

Sebastien

I suspect that node will not install with current versions of nodejs. However, did you see and act upon this comment in the node's readme?
" It's advisable to install the i2c package first. Refer to The i2c npm page for more informations. This may require manual steps (e.g. enabling kernel modules). Please only proceed with this module once you've managed to properly install the i2c package, to simplify troubleshooting."

Bonjour Hello

Je désespère I despair

Je repars à zéro I go back to zero

1 - Nouvelle installation New installation
Raspberry Pi OS (32 bits) avec bureau et logiciel recommandé
Image avec bureau et logiciel recommandé basé sur Debian Buster
Version:Mai 2020
Date de sortie:2020-05-27
Version du noyau:4.19
Taille:2523 Mo

2- Préférences/configuration du Raspberry PI/Interfaces :
SSH enabled
SPI enabled
I2C enabled
Serial port enabled
Serial console enabled
1-Wire enabled
Remote GPIO enabled
Restart
3- Installing and Upgrading Node-RED
https://nodered.org/docs/getting-started/raspberrypi
sudo apt install build-essential git
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

Are you really sure you want to do this ? [y/N] ? YES
Would you like to install the Pi-specific nodes ? [y/N] ? YES

Stop Node-RED :heavy_check_mark:
Remove old version of Node-RED :heavy_check_mark:
Remove old version of Node.js -
Leave existing Node.js - Node v10.21.0 Npm 5.8.0
Clean npm cache -
Node v10.21.0 Npm 5.8.0npm WARN npm npm does not support Node.js v10.21.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.dd shortcut commands
npm WARN npm You can find the latest version at https://nodejs.org/
Install Node-RED core :heavy_check_mark: 1.1.2
npm WARN npm npm does not support Node.js v10.21.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
Move global nodes to local :heavy_check_mark:
Install extra Pi nodes -
Npm rebuild existing nodes -
Add shortcut commands :heavy_check_mark:
Update systemd script :heavy_check_mark:

All done.
You can now start Node-RED with the command node-red-start
or using the icon under Menu / Programming / Node-RED
Then point your browser to localhost:1880 or http://{your_pi_ip-address}:1880
Started samedi 18 juillet 2020, 23:09:03 (UTC+0200) - Finished samedi 18 juillet 2020, 23:11:14 (UTC+0200)
pi@raspberrypi:~ $ Node v10.21.0 Npm 5.8.0

4- Installing I2C

npm install i2c
pi@raspberrypi:~ $ npm install i2c
npm WARN npm npm does not support Node.js v10.21.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN deprecated coffee-script@1.9.1: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)

i2c@0.2.3 install /home/pi/node_modules/i2c
node-gyp rebuild

make : on entre dans le répertoire « /home/pi/node_modules/i2c/build »
CXX(target) Release/obj.target/i2c/src/i2c.o
In file included from ../../nan/nan.h:190,
from ../src/i2c.cc:3:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
^~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’:
../../nan/nan.h:817:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../src/i2c.cc:1:
/usr/include/nodejs/src/node.h:177:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/usr/include/nodejs/src/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h:817:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../src/i2c.cc:1:
/usr/include/nodejs/src/node.h:177:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/usr/include/nodejs/src/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value
)’:
../../nan/nan.h:831:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../src/i2c.cc:1:
/usr/include/nodejs/src/node.h:170:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/usr/include/nodejs/src/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h:831:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../src/i2c.cc:1:
/usr/include/nodejs/src/node.h:170:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/usr/include/nodejs/src/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char
, int, v8::Localv8::Value)’:
../../nan/nan.h:845:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../src/i2c.cc:1:
/usr/include/nodejs/src/node.h:163:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/usr/include/nodejs/src/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h:845:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../src/i2c.cc:1:
/usr/include/nodejs/src/node.h:163:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/usr/include/nodejs/src/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::Callback::Call_(v8::Isolate
, v8::Localv8::Object, int, v8::Localv8::Value) const’:
../../nan/nan.h:1463:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../src/i2c.cc:1:
/usr/include/nodejs/src/node.h:177:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/usr/include/nodejs/src/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h:1463:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../src/i2c.cc:1:
/usr/include/nodejs/src/node.h:177:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/usr/include/nodejs/src/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker
)’:
../../nan/nan.h:1706:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
../src/i2c.cc: In function ‘void SetAddress(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:38:30: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
addr = info[0]->Int32Value();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc: In function ‘void Open(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:84:35: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value device(info[0]);
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:2892:28: note: declared here
explicit Utf8Value(Localv8::Value obj));
^~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc: In function ‘void Read(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:103:33: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int len = info[0]->Int32Value();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc: In function ‘void ReadBlock(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:154:36: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int8_t cmd = info[0]->Int32Value();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc:155:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int32_t len = info[1]->Int32Value();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc:178:43: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int32_t delay = info[2]->Int32Value();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc: In function ‘void Write(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:193:53: warning: ‘v8::Localv8::Object v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int len = node::Buffer::Length(buffer->ToObject());
^
In file included from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here
Local Value::ToObject() const {
^~~~~
../src/i2c.cc:194:52: warning: ‘v8::Localv8::Object v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
char* data = node::Buffer::Data(buffer->ToObject());
^
In file included from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here
Local Value::ToObject() const {
^~~~~
../src/i2c.cc: In function ‘void WriteByte(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:213:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int8_t byte = info[0]->Int32Value();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc: In function ‘void WriteBlock(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:232:36: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int8_t cmd = info[0]->Int32Value();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc:233:53: warning: ‘v8::Localv8::Object v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int len = node::Buffer::Length(buffer->ToObject());
^
In file included from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here
Local Value::ToObject() const {
^~~~~
../src/i2c.cc:234:52: warning: ‘v8::Localv8::Object v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
char* data = node::Buffer::Data(buffer->ToObject());
^
In file included from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:10046:15: note: declared here
Local Value::ToObject() const {
^~~~~
../src/i2c.cc: In function ‘void WriteWord(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:253:36: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int8_t cmd = info[0]->Int32Value();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc:254:38: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int16_t word = info[1]->Int32Value();
^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:1:
../src/i2c.cc: At global scope:
/usr/include/nodejs/src/node.h:573:43: warning: cast between incompatible function types from ‘void ()(v8::Handlev8::Object)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc),
^
/usr/include/nodejs/src/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/i2c.cc:295:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(i2c, Init)
^~~~~~~~~~~
In file included from /usr/include/nodejs/src/node.h:63,
from ../src/i2c.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/usr/include/nodejs/src/node_object_wrap.h:84:78: required from here
/usr/include/nodejs/deps/v8/include/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
reinterpret_cast(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../nan/nan_object_wrap.h:66:61: required from here
/usr/include/nodejs/deps/v8/include/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
make: *** [i2c.target.mk:101: Release/obj.target/i2c/src/i2c.o] Error 1
make : on quitte le répertoire « /home/pi/node_modules/i2c/build »
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.19.118-v7l+
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pi/node_modules/i2c
gyp ERR! node -v v10.21.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! i2c@0.2.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the i2c@0.2.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-07-18T21_22_02_935Z-debug.log
pi@raspberrypi:~ $

Problem install I2c

This looks worrying - in case anyone else misses it.

Upgrade Node

1 curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

2 sudo apt-get install -y nodejs

3 pi@raspberrypi:~ $ nodejs -v v12.18.2

4 - sudo apt-get install -y npm

5 - sudo npm install -g npm@latest

6 - pi@raspberrypi:~ $ npm -version 6.14.6

7 - Reboot

8 - Installing I2C

npm install i2c

pi@raspberrypi:~ $ npm -version
6.14.6
pi@raspberrypi:~ $ nodejs -v
v12.18.2

pi@raspberrypi:~ $ npm install i2c

npm WARN deprecated coffee-script@1.9.1: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)

i2c@0.2.3 install /home/pi/node_modules/i2c
node-gyp rebuild

make : on entre dans le répertoire « /home/pi/node_modules/i2c/build »
CXX(target) Release/obj.target/i2c/src/i2c.o
In file included from ../../nan/nan.h:190,
from ../src/i2c.cc:3:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
^~~~~~~~
In file included from ../../nan/nan_converters.h:59,
from ../../nan/nan.h:195,
from ../src/i2c.cc:3:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBasev8::Boolean::return_t Nan::imp::ToFactoryv8::Boolean::convert(v8::Localv8::Value)’:
../../nan/nan_converters_43_inl.h:15:45: warning: ‘v8::MaybeLocalv8::Boolean v8::Value::ToBoolean(v8::Localv8::Context) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
return val->To ## TYPE(GetCurrentContext());
^
../../nan/nan_converters_43_inl.h:18:1: note: in expansion of macro ‘X’
X(Boolean)
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2664:59: note: declared here
V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean(
^~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_converters.h:59,
from ../../nan/nan.h:195,
from ../src/i2c.cc:3:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Localv8::Value)’:
../../nan/nan_converters_43_inl.h:31:48: warning: ‘v8::Maybe v8::Value::BooleanValue(v8::Localv8::Context) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
return val->NAME ## Value(GetCurrentContext());
^
../../nan/nan_converters_43_inl.h:34:1: note: in expansion of macro ‘X’
X(bool, Boolean)
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2702:51: note: declared here
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:196,
from ../src/i2c.cc:3:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBasev8::Function::return_t Nan::imp::Factoryv8::Function::New(Nan::FunctionCallback, v8::Localv8::Value)’:
../../nan/nan_implementation_12_inl.h:109:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfov8::Value&), v8::Localv8::Object&)’
, obj));
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:4275:31: note: candidate: ‘static v8::MaybeLocalv8::Function v8::Function::New(v8::Localv8::Context, v8::FunctionCallback, v8::Localv8::Value, int, v8::ConstructorBehavior, v8::SideEffectType)’
static MaybeLocal New(
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:4275:31: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Localv8::Context
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:196,
from ../src/i2c.cc:3:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBasev8::StringObject::return_t Nan::imp::Factoryv8::StringObject::New(v8::Localv8::String)’:
../../nan/nan_implementation_12_inl.h:345:37: error: no matching function for call to ‘v8::StringObject::New(v8::Localv8::String&)’
return v8::StringObject::New(value).Asv8::StringObject();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:5531:23: note: candidate: ‘static v8::Localv8::Value v8::StringObject::New(v8::Isolate*, v8::Localv8::String)’
static Local New(Isolate* isolate, Local value);
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:5531:23: note: candidate expects 2 arguments, 1 provided
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:196,
from ../src/i2c.cc:3:
../../nan/nan_implementation_12_inl.h:345:58: error: expected primary-expression before ‘>’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
../../nan/nan_implementation_12_inl.h:345:60: error: expected primary-expression before ‘)’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’:
../../nan/nan.h:817:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h:817:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value
)’:
../../nan/nan.h:831:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:175:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h:831:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:175:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char
, int, v8::Localv8::Value)’:
../../nan/nan.h:845:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:168:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h:845:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:168:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Localv8::Value)’:
../../nan/nan.h:890:53: error: no matching function for call to ‘v8::Value::ToString()’
v8::Localv8::String string = from->ToString();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2668:44: note: candidate: ‘v8::MaybeLocalv8::String v8::Value::ToString(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2684:31: note: candidate: ‘v8::Localv8::String v8::Value::ToString(v8::Isolate
) const’
Local ToString(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided
Local ToString(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h:900:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
length_ = string->WriteUtf8(str_, static_cast(len), 0, flags);
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In member function ‘bool Nan::Callback::operator==(const Nan::Callback&) const’:
../../nan/nan.h:1371:61: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::Localv8::Value a = New(handle)->Get(kCallbackIndex);
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3557:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(uint32_t index));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h:1372:67: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::Localv8::Value b = New(other.handle)->Get(kCallbackIndex);
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3557:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(uint32_t index));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In member function ‘v8::Localv8::Function Nan::Callback::GetFunction() const’:
../../nan/nan.h:1403:56: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(handle)->Get(kCallbackIndex)
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3557:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(uint32_t index));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In member function ‘bool Nan::Callback::IsEmpty() const’:
../../nan/nan.h:1409:43: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return New(handle)->Get(kCallbackIndex)->IsUndefined();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3557:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(uint32_t index));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::Callback::Call_(v8::Isolate*, v8::Localv8::Object, int, v8::Localv8::Value) const’:
../../nan/nan.h:1447:27: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Get(kCallbackIndex).Asv8::Function();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3557:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(uint32_t index));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h:1463:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h:1463:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char
, const v8::Localv8::Value&)’:
../../nan/nan.h:1518:64: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3499:22: note: declared here
bool Set(Local key, Local value));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Localv8::String&, const v8::Localv8::Value&)’:
../../nan/nan.h:1524:42: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(key, value);
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3499:22: note: declared here
bool Set(Local key, Local value));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Localv8::Value&)’:
../../nan/nan.h:1530:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(index, value);
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3508:22: note: declared here
bool Set(uint32_t index, Local value));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../../nan/nan.h:1536:61: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Get(New(key).ToLocalChecked()));
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const v8::Localv8::String&) const’:
../../nan/nan.h:1542:55: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(key));
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
../../nan/nan.h:1547:57: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(index));
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3557:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(uint32_t index));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:3:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:1706:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
In file included from /usr/include/c++/8/cassert:44,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node_object_wrap.h:26,
from ../../nan/nan.h:49,
from ../src/i2c.cc:3:
../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
assert(persistent().IsNearDeath());
^~~~~~~~~~~
In file included from ../../nan/nan.h:2192,
from ../src/i2c.cc:3:
../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
persistent().MarkIndependent();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:570:22: note: declared here
V8_INLINE void MarkIndependent());
^~~~~~~~~~~~~~~

/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from /usr/include/c++/8/cassert:44,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node_object_wrap.h:26,
from ../../nan/nan.h:49,
from ../src/i2c.cc:3:
../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfoNan::ObjectWrap&)’:
../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
assert(wrap->handle_.IsNearDeath());
^~~~~~~~~~~
../src/i2c.cc: In function ‘void SetAddress(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:38:30: error: no matching function for call to ‘v8::Value::Int32Value()’
addr = info[0]->Int32Value();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc: In function ‘void Scan(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:60:43: warning: ‘bool v8::Object::Set(uint32_t, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
results->Set(i, Nan::New(res));
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3508:22: note: declared here
bool Set(uint32_t index, Local value));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc: In function ‘void Open(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:84:35: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’
String::Utf8Value device(info[0]);
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3135:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Localv8::Value)’
Utf8Value(Isolate* isolate, Localv8::Value obj);
^~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3135:5: note: candidate expects 2 arguments, 1 provided
../src/i2c.cc: In function ‘void Read(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:103:33: error: no matching function for call to ‘v8::Value::Int32Value()’
int len = info[0]->Int32Value();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc:114:45: warning: ‘bool v8::Object::Set(uint32_t, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
data->Set(i, Nan::New(buf[i]));
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:3508:22: note: declared here
bool Set(uint32_t index, Local value));
^~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc: In function ‘void ReadBlock(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:154:36: error: no matching function for call to ‘v8::Value::Int32Value()’
int8_t cmd = info[0]->Int32Value();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc:155:37: error: no matching function for call to ‘v8::Value::Int32Value()’
int32_t len = info[1]->Int32Value();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc:178:43: error: no matching function for call to ‘v8::Value::Int32Value()’
int32_t delay = info[2]->Int32Value();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc: In function ‘void Write(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:193:53: error: no matching function for call to ‘v8::Value::ToObject()’
int len = node::Buffer::Length(buffer->ToObject());
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2686:31: note: candidate: ‘v8::Localv8::Object v8::Value::ToObject(v8::Isolate*) const’
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc:194:52: error: no matching function for call to ‘v8::Value::ToObject()’
char* data = node::Buffer::Data(buffer->ToObject());
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2686:31: note: candidate: ‘v8::Localv8::Object v8::Value::ToObject(v8::Isolate*) const’
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc: In function ‘void WriteByte(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:213:37: error: no matching function for call to ‘v8::Value::Int32Value()’
int8_t byte = info[0]->Int32Value();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc: In function ‘void WriteBlock(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:232:36: error: no matching function for call to ‘v8::Value::Int32Value()’
int8_t cmd = info[0]->Int32Value();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc:233:53: error: no matching function for call to ‘v8::Value::ToObject()’
int len = node::Buffer::Length(buffer->ToObject());
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2686:31: note: candidate: ‘v8::Localv8::Object v8::Value::ToObject(v8::Isolate*) const’
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc:234:52: error: no matching function for call to ‘v8::Value::ToObject()’
char* data = node::Buffer::Data(buffer->ToObject());
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2686:31: note: candidate: ‘v8::Localv8::Object v8::Value::ToObject(v8::Isolate*) const’
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided
Local ToObject(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
../src/i2c.cc: In function ‘void WriteWord(const Nan::FunctionCallbackInfov8::Value&)’:
../src/i2c.cc:253:36: error: no matching function for call to ‘v8::Value::Int32Value()’
int8_t cmd = info[0]->Int32Value();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc:254:38: error: no matching function for call to ‘v8::Value::Int32Value()’
int16_t word = info[1]->Int32Value();
^
In file included from /home/pi/.cache/node-gyp/12.18.2/include/node/node.h:67,
from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
../src/i2c.cc: At global scope:
../src/i2c.cc:270:11: error: variable or field ‘Init’ declared void
void Init(Handle exports) {
^~~~~~
../src/i2c.cc:270:11: error: ‘Handle’ was not declared in this scope
../src/i2c.cc:270:11: note: suggested alternative: ‘rand_r’
void Init(Handle exports) {
^~~~~~
rand_r
../src/i2c.cc:270:24: error: expected primary-expression before ‘>’ token
void Init(Handle exports) {
^
../src/i2c.cc:270:26: error: ‘exports’ was not declared in this scope
void Init(Handle exports) {
^~~~~~~
In file included from ../src/i2c.cc:1:
../src/i2c.cc:295:18: error: ‘Init’ was not declared in this scope
NODE_MODULE(i2c, Init)
^~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc),
^~~~~~~
../src/i2c.cc:295:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(i2c, Init)
^~~~~~~~~~~
../src/i2c.cc:295:18: note: suggested alternative:
NODE_MODULE(i2c, Init)
^~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc),
^~~~~~~
../src/i2c.cc:295:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(i2c, Init)
^~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.2/include/node/node.h:225:18: note: ‘node::Init’
NODE_EXTERN void Init(int* argc,
^~~~
make: *** [i2c.target.mk:109: Release/obj.target/i2c/src/i2c.o] Error 1
make : on quitte le répertoire « /home/pi/node_modules/i2c/build »
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.118-v7l+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/i2c
gyp ERR! node -v v12.18.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! i2c@0.2.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the i2c@0.2.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-07-18T21_56_53_849Z-debug.log
pi@raspberrypi:~ $

File npm ERR! /home/pi/.npm/_logs/2020-07-18T22_16_52_665Z-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'i2c' ]
2 info using npm@6.14.6
3 info using node@v12.18.2
4 verbose config Skipping project config: /home/pi/.npmrc. (matches userconfig)
5 verbose npm-session afabb872d4f45cae
6 silly install loadCurrentTree
7 silly install readLocalPackageData
8 http fetch GET 304 https://registry.npmjs.org/i2c 297ms (from cache)
9 silly pacote tag manifest for i2c@latest fetched in 327ms
10 timing stage:loadCurrentTree Completed in 371ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 6ms
16 silly install loadAllDepsIntoIdealTree
17 silly resolveWithNewModule i2c@0.2.3 checking installable status
18 http fetch GET 304 https://registry.npmjs.org/bindings 108ms (from cache)
19 silly pacote version manifest for bindings@1.2.1 fetched in 114ms
20 silly resolveWithNewModule bindings@1.2.1 checking installable status
21 http fetch GET 304 https://registry.npmjs.org/underscore 203ms (from cache)
22 http fetch GET 304 https://registry.npmjs.org/coffee-script 208ms (from cache)
23 silly pacote version manifest for underscore@1.8.2 fetched in 214ms
24 silly resolveWithNewModule underscore@1.8.2 checking installable status
25 http fetch GET 304 https://registry.npmjs.org/repl 211ms (from cache)
26 http fetch GET 304 https://registry.npmjs.org/nan 210ms (from cache)
27 silly pacote version manifest for coffee-script@1.9.1 fetched in 225ms
28 warn deprecated coffee-script@1.9.1: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
29 silly resolveWithNewModule coffee-script@1.9.1 checking installable status
30 silly pacote version manifest for repl@0.1.3 fetched in 227ms
31 silly resolveWithNewModule repl@0.1.3 checking installable status
32 silly pacote range manifest for nan@~2.3.5 fetched in 227ms
33 silly resolveWithNewModule nan@2.3.5 checking installable status
34 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 264ms
35 timing stage:loadIdealTree Completed in 280ms
36 silly currentTree pi
37 silly idealTree pi
37 silly idealTree ├── bindings@1.2.1
37 silly idealTree ├── coffee-script@1.9.1
37 silly idealTree ├── i2c@0.2.3
37 silly idealTree ├── nan@2.3.5
37 silly idealTree ├── repl@0.1.3
37 silly idealTree └── underscore@1.8.2
38 silly install generateActionsToTake
39 timing stage:generateActionsToTake Completed in 13ms
40 silly diffTrees action count 6
41 silly diffTrees add bindings@1.2.1
42 silly diffTrees add coffee-script@1.9.1
43 silly diffTrees add nan@2.3.5
44 silly diffTrees add repl@0.1.3
45 silly diffTrees add underscore@1.8.2
46 silly diffTrees add i2c@0.2.3
47 silly decomposeActions action count 48
48 silly decomposeActions fetch bindings@1.2.1
49 silly decomposeActions extract bindings@1.2.1
50 silly decomposeActions preinstall bindings@1.2.1
51 silly decomposeActions build bindings@1.2.1
52 silly decomposeActions install bindings@1.2.1
53 silly decomposeActions postinstall bindings@1.2.1
54 silly decomposeActions finalize bindings@1.2.1
55 silly decomposeActions refresh-package-json bindings@1.2.1
56 silly decomposeActions fetch coffee-script@1.9.1
57 silly decomposeActions extract coffee-script@1.9.1
58 silly decomposeActions preinstall coffee-script@1.9.1
59 silly decomposeActions build coffee-script@1.9.1
60 silly decomposeActions install coffee-script@1.9.1
61 silly decomposeActions postinstall coffee-script@1.9.1
62 silly decomposeActions finalize coffee-script@1.9.1
63 silly decomposeActions refresh-package-json coffee-script@1.9.1
64 silly decomposeActions fetch nan@2.3.5
65 silly decomposeActions extract nan@2.3.5
66 silly decomposeActions preinstall nan@2.3.5
67 silly decomposeActions build nan@2.3.5
68 silly decomposeActions install nan@2.3.5
69 silly decomposeActions postinstall nan@2.3.5
70 silly decomposeActions finalize nan@2.3.5
71 silly decomposeActions refresh-package-json nan@2.3.5
72 silly decomposeActions fetch repl@0.1.3
73 silly decomposeActions extract repl@0.1.3
74 silly decomposeActions preinstall repl@0.1.3
75 silly decomposeActions build repl@0.1.3
76 silly decomposeActions install repl@0.1.3
77 silly decomposeActions postinstall repl@0.1.3
78 silly decomposeActions finalize repl@0.1.3
79 silly decomposeActions refresh-package-json repl@0.1.3
80 silly decomposeActions fetch underscore@1.8.2
81 silly decomposeActions extract underscore@1.8.2
82 silly decomposeActions preinstall underscore@1.8.2
83 silly decomposeActions build underscore@1.8.2
84 silly decomposeActions install underscore@1.8.2
85 silly decomposeActions postinstall underscore@1.8.2
86 silly decomposeActions finalize underscore@1.8.2
87 silly decomposeActions refresh-package-json underscore@1.8.2
88 silly decomposeActions fetch i2c@0.2.3
89 silly decomposeActions extract i2c@0.2.3
90 silly decomposeActions preinstall i2c@0.2.3
91 silly decomposeActions build i2c@0.2.3
92 silly decomposeActions install i2c@0.2.3
93 silly decomposeActions postinstall i2c@0.2.3
94 silly decomposeActions finalize i2c@0.2.3
95 silly decomposeActions refresh-package-json i2c@0.2.3
96 silly install executeActions
97 silly doSerial global-install 48
98 verbose correctMkdir /home/pi/.npm/_locks correctMkdir not in flight; initializing
99 verbose lock using /home/pi/.npm/_locks/staging-8a58fe8d264b10c5.lock for /home/pi/node_modules/.staging
100 silly doParallel extract 6
101 silly extract bindings@1.2.1
102 silly extract coffee-script@1.9.1
103 silly extract nan@2.3.5
104 silly extract repl@0.1.3
105 silly extract underscore@1.8.2
106 silly extract i2c@0.2.3
107 silly tarball trying bindings@1.2.1 by hash: sha1-FK1hE4EtLTfXLme0ystLtyZQXxE=
108 silly tarball trying coffee-script@1.9.1 by hash: sha1-xFjQIgD0YNBkp5y2qx7m4snKHDE=
109 silly tarball trying nan@~2.3.5 by hash: sha1-gioNwmYpDOTNOhIoLKPn42Rmigg=
110 silly tarball trying repl@0.1.3 by hash: sha1-LwXUKwyItD0FzL2hDtFK7/Vpm2A=
111 silly tarball trying underscore@1.8.2 by hash: sha1-ZN8utZCJnelQeC83NRkLpC6/MR0=
112 silly tarball trying i2c@latest by hash: sha1-9D9wKBQQJq5IrymQo3RjPR2rPSs=
113 silly extract bindings@1.2.1 extracted to /home/pi/node_modules/.staging/bindings-e015561d (173ms)
114 silly extract repl@0.1.3 extracted to /home/pi/node_modules/.staging/repl-ace48fe3 (178ms)
115 silly extract underscore@1.8.2 extracted to /home/pi/node_modules/.staging/underscore-6c1ca856 (185ms)
116 silly extract i2c@latest extracted to /home/pi/node_modules/.staging/i2c-3a50d040 (200ms)
117 timing audit submit Completed in 229ms
118 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 230ms
119 timing audit body Completed in 2ms
120 silly extract coffee-script@1.9.1 extracted to /home/pi/node_modules/.staging/coffee-script-cb34d89b (225ms)
121 silly extract nan@~2.3.5 extracted to /home/pi/node_modules/.staging/nan-cbd23b3f (227ms)
122 timing action:extract Completed in 234ms
123 silly doReverseSerial unbuild 48
124 silly doSerial remove 48
125 silly doSerial move 48
126 silly doSerial finalize 48
127 silly finalize /home/pi/node_modules/bindings
128 silly finalize /home/pi/node_modules/coffee-script
129 silly finalize /home/pi/node_modules/nan
130 silly finalize /home/pi/node_modules/repl
131 silly finalize /home/pi/node_modules/underscore
132 silly finalize /home/pi/node_modules/i2c
133 timing action:finalize Completed in 21ms
134 silly doParallel refresh-package-json 6
135 silly refresh-package-json /home/pi/node_modules/bindings
136 silly refresh-package-json /home/pi/node_modules/coffee-script
137 silly refresh-package-json /home/pi/node_modules/nan
138 silly refresh-package-json /home/pi/node_modules/repl
139 silly refresh-package-json /home/pi/node_modules/underscore
140 silly refresh-package-json /home/pi/node_modules/i2c
141 timing action:refresh-package-json Completed in 61ms
142 silly doParallel preinstall 6
143 silly preinstall bindings@1.2.1
144 info lifecycle bindings@1.2.1~preinstall: bindings@1.2.1
145 silly preinstall coffee-script@1.9.1
146 info lifecycle coffee-script@1.9.1~preinstall: coffee-script@1.9.1
147 silly preinstall nan@2.3.5
148 info lifecycle nan@2.3.5~preinstall: nan@2.3.5
149 silly preinstall repl@0.1.3
150 info lifecycle repl@0.1.3~preinstall: repl@0.1.3
151 silly preinstall underscore@1.8.2
152 info lifecycle underscore@1.8.2~preinstall: underscore@1.8.2
153 silly preinstall i2c@0.2.3
154 info lifecycle i2c@0.2.3~preinstall: i2c@0.2.3
155 timing action:preinstall Completed in 5ms
156 silly doSerial build 48
157 silly build bindings@1.2.1
158 info linkStuff bindings@1.2.1
159 silly linkStuff bindings@1.2.1 has /home/pi/node_modules as its parent node_modules
160 silly build coffee-script@1.9.1
161 info linkStuff coffee-script@1.9.1
162 silly linkStuff coffee-script@1.9.1 has /home/pi/node_modules as its parent node_modules
163 verbose linkBins [
163 verbose linkBins { coffee: 'bin/coffee', cake: 'bin/cake' },
163 verbose linkBins '/home/pi/node_modules/.bin',
163 verbose linkBins false
163 verbose linkBins ]
164 silly build nan@2.3.5
165 info linkStuff nan@2.3.5
166 silly linkStuff nan@2.3.5 has /home/pi/node_modules as its parent node_modules
167 silly build repl@0.1.3
168 info linkStuff repl@0.1.3
169 silly linkStuff repl@0.1.3 has /home/pi/node_modules as its parent node_modules
170 silly build underscore@1.8.2
171 info linkStuff underscore@1.8.2
172 silly linkStuff underscore@1.8.2 has /home/pi/node_modules as its parent node_modules
173 silly build i2c@0.2.3
174 info linkStuff i2c@0.2.3
175 silly linkStuff i2c@0.2.3 has /home/pi/node_modules as its parent node_modules
176 timing action:build Completed in 12ms
177 silly doSerial global-link 48
178 silly doParallel update-linked 0
179 silly doSerial install 48
180 silly install bindings@1.2.1
181 info lifecycle bindings@1.2.1~install: bindings@1.2.1
182 silly install coffee-script@1.9.1
183 info lifecycle coffee-script@1.9.1~install: coffee-script@1.9.1
184 silly install nan@2.3.5
185 info lifecycle nan@2.3.5~install: nan@2.3.5
186 silly install repl@0.1.3
187 info lifecycle repl@0.1.3~install: repl@0.1.3
188 silly install underscore@1.8.2
189 info lifecycle underscore@1.8.2~install: underscore@1.8.2
190 silly install i2c@0.2.3
191 info lifecycle i2c@0.2.3~install: i2c@0.2.3
192 verbose lifecycle i2c@0.2.3~install: unsafe-perm in lifecycle true
193 verbose lifecycle i2c@0.2.3~install: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/node_modules/i2c/node_modules/.bin:/home/pi/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
194 verbose lifecycle i2c@0.2.3~install: CWD: /home/pi/node_modules/i2c
195 silly lifecycle i2c@0.2.3~install: Args: [ '-c', 'node-gyp rebuild' ]
196 silly lifecycle i2c@0.2.3~install: Returned: code: 1 signal: null
197 info lifecycle i2c@0.2.3~install: Failed to exec install script
198 timing action:install Completed in 2945ms
199 verbose unlock done using /home/pi/.npm/_locks/staging-8a58fe8d264b10c5.lock for /home/pi/node_modules/.staging
200 timing stage:rollbackFailedOptional Completed in 58ms
201 timing stage:runTopLevelLifecycles Completed in 4057ms
202 silly saveTree pi
202 silly saveTree └─┬ i2c@0.2.3
202 silly saveTree ├── bindings@1.2.1
202 silly saveTree ├── coffee-script@1.9.1
202 silly saveTree ├── nan@2.3.5
202 silly saveTree ├── repl@0.1.3
202 silly saveTree └── underscore@1.8.2
203 warn enoent ENOENT: no such file or directory, open '/home/pi/package.json'
204 verbose enoent This is related to npm not being able to find a file.
205 warn pi No description
206 warn pi No repository field.
207 warn pi No README data
208 warn pi No license field.
209 verbose stack Error: i2c@0.2.3 install: node-gyp rebuild
209 verbose stack Exit status 1
209 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
209 verbose stack at EventEmitter.emit (events.js:315:20)
209 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
209 verbose stack at ChildProcess.emit (events.js:315:20)
209 verbose stack at maybeClose (internal/child_process.js:1021:16)
209 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
210 verbose pkgid i2c@0.2.3
211 verbose cwd /home/pi
212 verbose Linux 4.19.118-v7l+
213 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "i2c"
214 verbose node v12.18.2
215 verbose npm v6.14.6
216 error code ELIFECYCLE
217 error errno 1
218 error i2c@0.2.3 install: node-gyp rebuild
218 error Exit status 1
219 error Failed at the i2c@0.2.3 install script.
219 error This is probably not a problem with npm. There is likely additional logging output above.
220 verbose exit [ 1, true ]

As I said previously, the node is probably not compatible with nodejs 12. It has not been released for 4 years so that is not particularly surprising.

I am afraid I don't know what to suggest, I don't use i2c but there has recently been discussion about its support and I suspect there may be alternative ways of accessing your hardware. Have a search of the forum and if you don't have any joy then post a questions specifically asking about i2c.

For future reference it is best to get the install script to install nodejs and npm rather than doing it yourself, unless you know what you are doing. That is not the problem here though. The version of nodejs on nodesource includes npm so it isn't necessary to install it manually.
In your situation I would uninstall nodejs and npm and run the script again. However, as I said that is not the cause of the problem with this node.

Let's rewind... what piece of hardware are you trying to talk to that needs that. That is a raw nodejs i2c piece of code - not a Node-RED node - so may not be what we need.... (or may be).

As far as I could understand the OP wants to install contrib node-red-contrib- pca9685. The OP stated that the documentation instructs to install first the I2C package. As far as I could understand the contrib node pca9685 stopped using the I2C package in favor of I2c-bus package but the documentation has not been updated. Apparently @Sebchauvour is spending a lot of time and effort in something that is not necessary. However...even if he tries to install node-red-contrib-pca9685 there will be an issue. The package.json file for the contrib node lists as dependency: "i2c-bus": "~4.0.9" which is no longer the newest one.

Hello

Downgrade node js V9.11.2

Install node contib pca9685

System OK :wink:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.