Upgrade NR 0.19.4 -> 1.0.4: missing node types

Hi there

I was running NR 0.19.4 (NodeJS v8.11.1) on RPi and wanted to use msg.reset for Join Node. As it was not present, I decided to upgrade NR.
I used script from https://nodered.org/docs/getting-started/raspberrypi
Rebooted RPi after successful upgrade but when I enter my NR page, I get error:

Flows stopped due to missing node types.

    serial-port
    mcp23017chip
    mcp23017input
    e-mail

And those nodes are rendered with dashed border. However, when I open Palette and search for those nodes, I have Installed buttons next to them.
So not sure what happened. Any help?
Thanks

PS, Also, all Dashboard seems to be missing (even Dashboard tab in the editor).

Did the install say it had completed successfully?
Please start node red in a terminal and post the full log here, you can stop/start using

node-red-stop
node-red-start

That may give us some extra information.

Some of the less core nodes were dropped from the core set a while back.
I would re-install them manually

node-red-stop
cd ~/.node-red
npm i -f node-red-node-serialport@latest node-red-node-email@latest node-red-contrib-mcp23017chip@latest
node-red-start
pi@raspberrypi:~ $ bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)


This script will remove versions of Node.js prior to version 7.x, and Node-RED and
if necessary replace them with Node.js 10.x LTS (dubnium) and the latest Node-RED from Npm.

It also moves any Node-RED nodes that are globally installed into your user
~/.node-red/node_modules directory, and adds them to your package.json, so that
you can manage them with the palette manager.

It also tries to run 'npm rebuild' to refresh any extra nodes you have installed
that may have a native binary component. While this normally works ok, you need
to check that it succeeds for your combination of installed nodes.

To do all this it runs commands as root - please satisfy yourself that this will
not damage your Pi, or otherwise compromise your configuration.
If in doubt please backup your SD card first.

Are you really sure you want to do this ? [y/N] ? y

Would you like to install the Pi-specific nodes ? [y/N] ? y

Running Node-RED install for user pi at /home/pi on raspbian


This can take 20-30 minutes on the slower Pi versions - please wait.

  Stop Node-RED                       ✔
  Remove old version of Node-RED      ✔
  Remove old version of Node.js       ✔
  Install Node.js for Armv6           ✔   Node v10.19.0   Npm 6.14.3
  Clean npm cache                     ✔
  Install Node-RED core               ✔   1.0.4
  Move global nodes to local          -
  Install extra Pi nodes              ✔
  Npm rebuild existing nodes          -
  Add shortcut commands               ✔
  Update systemd script               ✔


Any errors will be logged to   /var/log/nodered-install.log
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  Tue 24 Mar 16:04:24 CET 2020  -  Finished  Tue 24 Mar 16:22:53 CET 2020
Starting as a systemd service.
Started Node-RED graphical event wiring tool.
25 Mar 10:52:02 - [info]
Welcome to Node-RED
===================
25 Mar 10:52:02 - [info] Node-RED version: v1.0.4
25 Mar 10:52:02 - [info] Node.js  version: v10.19.0
25 Mar 10:52:02 - [info] Linux 4.14.71+ arm LE
25 Mar 10:52:10 - [info] Loading palette nodes
25 Mar 10:52:40 - [info] Dashboard version 2.10.1 started at /ui
It looks like serialport didn't compile properly. This is a common problem and its fix is well documented here https://github.com/voodootikigod/node-serialport#to-install
The result of requiring the package is:  undefined
25 Mar 10:52:42 - [warn] ------------------------------------------------------
25 Mar 10:52:42 - [warn] [node-red-node-serialport/serialport] Error: The module '/home/pi/.node-red/node_modules/serialport/build/Release/serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
25 Mar 10:52:42 - [warn] [node-red-node-arduino/arduino] Missing serialport dependency
25 Mar 10:52:42 - [warn] [node-red-contrib-mcp23017chip/mcp23017chip] Error: The module '/home/pi/.node-red/node_modules/i2c-bus/build/Release/i2c.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
25 Mar 10:52:42 - [warn] ------------------------------------------------------
25 Mar 10:52:42 - [info] Settings file  : /home/pi/.node-red/settings.js
25 Mar 10:52:42 - [info] Context store  : 'default' [module=memory]
25 Mar 10:52:42 - [info] User directory : /home/pi/.node-red
25 Mar 10:52:42 - [warn] Projects disabled : editorTheme.projects.enabled=false
25 Mar 10:52:42 - [info] Flows file     : /home/pi/.node-red/flows_raspberrypi.json
25 Mar 10:52:43 - [info] Server now running at http://127.0.0.1:1880/
25 Mar 10:52:44 - [warn]
---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
25 Mar 10:52:45 - [info] Waiting for missing types to be registered:
25 Mar 10:52:45 - [info]  - serial-port (provided by npm module node-red-node-serialport)
25 Mar 10:52:45 - [info]  - mcp23017chip
25 Mar 10:52:45 - [info]  - mcp23017input
25 Mar 10:52:45 - [info]  - e-mail (provided by npm module node-red-node-email)
25 Mar 10:52:45 - [info] To install any of these missing modules, run:
25 Mar 10:52:45 - [info]   npm install <module name>
25 Mar 10:52:45 - [info] in the directory:
25 Mar 10:52:45 - [info]   /home/pi/.node-red
pi@raspberrypi:~/.node-red $ npm i -f node-red-node-serialport@latest node-red-node-email@latest node-red-contrib-mcp23017chip@latest
npm WARN using --force I sure hope you know what you are doing.
npm WARN node-red-project@0.0.1 No repository field.
npm WARN node-red-project@0.0.1 No license field.

npm ERR! code EEXIST
npm ERR! path /home/pi/.node-red/node_modules/.bin/serialport-list
npm ERR! Refusing to delete /home/pi/.node-red/node_modules/.bin/serialport-list: is outside /home/pi/.node-red/node_modules/serialport and not a link
npm ERR! File exists: /home/pi/.node-red/node_modules/.bin/serialport-list
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2020-03-25T09_59_52_757Z-debug.log

So even -f did not help. However, palette says they are installed, npm says they are installed.. yet, NR does not seem to see them. Eh, upgrading is never a good idea... "if it ain't broke, don't fix it".

I've tried to uninstall those modules and also failed - looks like some folder structure issue? Hmm

pi@raspberrypi:~/.node-red $ npm uninstall node-red-node-serialport node-red-node-email node-red-contrib-mcp23017chip
npm WARN node-red-project@0.0.1 No repository field.
npm WARN node-red-project@0.0.1 No license field.

npm ERR! code EEXIST
npm ERR! path /home/pi/.node-red/node_modules/.bin/serialport-list
npm ERR! Refusing to delete /home/pi/.node-red/node_modules/.bin/serialport-list: is outside /home/pi/.node-red/node_modules/serialport and not a link
npm ERR! File exists: /home/pi/.node-red/node_modules/.bin/serialport-list
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2020-03-25T10_13_43_630Z-debug.log

I don't recall where I use serialport (and if I still need it). However, mcp23017 and mail are crucial for me.

So did doing that work?

When removed serialport-list, error complained about another file, so I've removed all three of them and looks like it's some kind of domino. Not sure how many files will it ask me to remove so it doesn't sound like a correct path.

pi@raspberrypi:~/.node-red $ rm  /home/pi/.node-red/node_modules/.bin/serialport-*
pi@raspberrypi:~/.node-red $ npm uninstall node-red-node-serialport node-red-node-email node-red-contrib-mcp23017chip
npm WARN node-red-project@0.0.1 No repository field.
npm WARN node-red-project@0.0.1 No license field.

npm ERR! code EEXIST
npm ERR! path /home/pi/.node-red/node_modules/.bin/prebuild-install
npm ERR! Refusing to delete /home/pi/.node-red/node_modules/.bin/prebuild-install: is outside /home/pi/.node-red/node_modules/prebuild-install and not a link
npm ERR! File exists: /home/pi/.node-red/node_modules/.bin/prebuild-install
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2020-03-25T10_42_37_048Z-debug.log

Probably best to clear out node_modules and reinstall all the nodes. Rename the node_modules folder to something else (just in case we need it back) and, in .node-red folder run
npm install
That should re-create node_modules from scratch.

1 Like

Looks like some more serious issue right now (partial log because Body is limited to 32000 characters; you entered 71350.).

pi@raspberrypi:~/.node-red $ npm i

> i2c-bus@1.2.5 install /home/pi/.node-red/node_modules/i2c-bus
> node-gyp rebuild

make: Entering directory '/home/pi/.node-red/node_modules/i2c-bus/build'
  CXX(target) Release/obj.target/i2c/src/i2c.o
In file included from ../src/i2c.cc:2:0:
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../node_modules/nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../src/i2c.cc:1:0:
/home/pi/.cache/node-gyp/10.19.0/include/node/node.h:177:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/pi/.cache/node-gyp/10.19.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/i2c.cc:2:0:
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../node_modules/nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../src/i2c.cc:1:0:
/home/pi/.cache/node-gyp/10.19.0/include/node/node.h:170:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/pi/.cache/node-gyp/10.19.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/i2c.cc:2:0:
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../node_modules/nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../src/i2c.cc:1:0:
/home/pi/.cache/node-gyp/10.19.0/include/node/node.h:163:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/pi/.cache/node-gyp/10.19.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/i2c.cc:2:0:
../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../node_modules/nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../src/i2c.cc:1:0:
/home/pi/.cache/node-gyp/10.19.0/include/node/node.h:177:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/pi/.cache/node-gyp/10.19.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/i2c.cc:95:0:
../src/./i2cfuncs.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE I2cFuncsAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./i2cfuncs.cc:48:32: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->Int32Value();
                                ^
In file included from /home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/home/pi/.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/i2c.cc:95:0:
../src/./i2cfuncs.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE I2cFuncsSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./i2cfuncs.cc:60:32: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->Int32Value();
                                ^
In file included from /home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/home/pi/.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/i2c.cc:96:0:
../src/./readbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readbyte.cc:49:32: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->Int32Value();
                                ^
In file included from /home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/home/pi/.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/i2c.cc:96:0:
../src/./readbyte.cc:50:34: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   __u8 cmd = info[1]->Int32Value();
                                  ^
In file included from /home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/home/pi/.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/i2c.cc:96:0:
../src/./readbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readbyte.cc:62:32: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->Int32Value();
                                ^
In file included from /home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/home/pi/.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/i2c.cc:96:0:
../src/./readbyte.cc:63:34: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   __u8 cmd = info[1]->Int32Value();
                                  ^
In file included from /home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/home/pi/.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/i2c.cc:97:0:
../src/./readword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadWordAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readword.cc:49:32: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->Int32Value();
                                ^
In file included from /home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/home/pi/.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/i2c.cc:97:0:
../src/./readword.cc:50:34: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   __u8 cmd = info[1]->Int32Value();
                                  ^
In file included from /home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/home/pi/.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/i2c.cc:97:0:
../src/./readword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadWordSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readword.cc:62:32: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->Int32Value();
                                ^
In file included from /home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/home/pi/.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/i2c.cc:97:0:
../src/./readword.cc:63:34: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   __u8 cmd = info[1]->Int32Value();
                                  ^
In file included from /home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                              ^
/home/pi/.cache/node-gyp/10.19.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/i2c.cc:98:0:
../src/./readblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readblock.cc:66:32: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->Int32Value();
                                ^
In file included from /home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/10.19.0/include/node/node.h:63,
                 from ../src/i2c.cc:1:
/home/pi/.cache/node-gyp/10.19.0/include/node/v8.h:2478:46: note: declared here
   V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);

[...]

In file included from ../src/poller.cpp:1:0:
../../nan/nan.h:1655:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  CXX(target) Release/obj.target/serialport/src/serialport_linux.o
  SOLINK_MODULE(target) Release/obj.target/serialport.node
  COPY Release/serialport.node
make: Leaving directory '/home/pi/.node-red/node_modules/serialport/build'
npm WARN node-red-project@0.0.1 No repository field.
npm WARN node-red-project@0.0.1 No license field.

added 487 packages from 306 contributors and audited 1797 packages in 685.687s
found 67 vulnerabilities (45 low, 10 moderate, 12 high)
  run `npm audit fix` to fix them, or `npm audit` for details
pi@raspberrypi:~/.node-red $

Charlie Foxtrot.

Those are warnings, at the end it says it has added 487 packages and there are no errors so you should be good to go.

Had to reinstall e-mail node but after that it looks like all is working fine.
Thanks for all your help!

1 Like

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