Upgrade problem: Node-RED is not yet fully installed

I am trying to update NR on my RaspberryPi (OS version 9 stretch) to version 0.19.
After executing the update script, NR will not start anymore, but says:

Node-RED is not yet fully installed
This Node-RED install doesn't support using apt.

I ran the script several times, rebooted the Pi, but no luck.
Any idea about what could be wrong?

Below I have included a small portion of that most recent part of /var/log/nodered-install.log that may contain useful info for someone...

Started : Mon Sep 17 16:07:42 CEST 2018
Running for user pi at /home/pi
Found global nodes:   :
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodered' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
npm WARN using --force I sure hope you know what you are doing.
npm ERR! asyncWrite is not a function
npm ERR! pna.nextTick is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-09-17T14_07_58_203Z-debug.log

> sqlite3@3.1.13 install /home/pi/.node-red/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

[sqlite3] Success: "/home/pi/.node-red/node_modules/sqlite3/lib/binding/node-v57-linux-arm/node_sqlite3.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> node-red-dashboard@2.8.2 postinstall /home/pi/.node-red/node_modules/node-red-dashboard
> node fixfa.js


> node-red-node-pi-sense-hat@0.0.15 postinstall /home/pi/.node-red/node_modules/node-red-node-pi-sense-hat
> scripts/checklib.sh

Sense HAT python library is installed

> serialport@6.1.1 install /home/pi/.node-red/node_modules/serialport
> prebuild-install || node-gyp rebuild

prebuild-install info begin Prebuild-install version 2.5.1
prebuild-install info looking for local prebuild @ prebuilds/serialport-v6.1.1-node-v57-linux-arm.tar.gz
prebuild-install info npm cache directory missing, creating it... 
prebuild-install info looking for cached prebuild @ /home/pi/.npm/_prebuilds/https-github.com-node-serialport-node-serialport-releases-download-v6.1.1-serialport-v6.1.1-node-v57-linux-arm.tar.gz
prebuild-install http request GET https://github.com/node-serialport/node-serialport/releases/download/v6.1.1/serialport-v6.1.1-node-v57-linux-arm.tar.gz
prebuild-install http 404 https://github.com/node-serialport/node-serialport/releases/download/v6.1.1/serialport-v6.1.1-node-v57-linux-arm.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=8.12.0 runtime=node arch=arm platform=linux)
make: Entering directory '/home/pi/.node-red/node_modules/serialport/build'
  CXX(target) Release/obj.target/serialport/src/serialport.o
../src/serialport.cpp: In function 'void EIO_AfterOpen(uv_work_t*)':
../src/serialport.cpp:95:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterUpdate(uv_work_t*)':
../src/serialport.cpp:150:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterClose(uv_work_t*)':
../src/serialport.cpp:188:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterFlush(uv_work_t*)':
../src/serialport.cpp:231:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterSet(uv_work_t*)':
../src/serialport.cpp:285:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterGet(uv_work_t*)':
../src/serialport.cpp:336:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterGetBaudRate(uv_work_t*)':
../src/serialport.cpp:383:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterDrain(uv_work_t*)':
../src/serialport.cpp:424:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  CXX(target) Release/obj.target/serialport/src/serialport_unix.o
  CXX(target) Release/obj.target/serialport/src/poller.o
../src/poller.cpp: In static member function 'static void Poller::onData(uv_poll_t*, int, int)':
../src/poller.cpp:69:29: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   obj->callback.Call(2, argv);
                             ^
In file included from ../src/poller.cpp:1:0:
../../nan/nan.h:1618: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'

> bcrypt@0.8.7 install /home/pi/.node-red/node_modules/bcrypt
> node-gyp rebuild

make: Entering directory '/home/pi/.node-red/node_modules/bcrypt/build'
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
  SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
  COPY Release/bcrypt_lib.node
make: Leaving directory '/home/pi/.node-red/node_modules/bcrypt/build'
moment@2.21.0 /home/pi/.node-red/node_modules/moment
node-red-admin@0.1.3 /home/pi/.node-red/node_modules/node-red-admin
bcryptjs@2.3.0 /home/pi/.node-red/node_modules/bcryptjs
cli-table@0.3.1 /home/pi/.node-red/node_modules/cli-table
colors@1.0.3 /home/pi/.node-red/node_modules/cli-table/node_modules/colors
colors@1.1.2 /home/pi/.node-red/node_modules/colors
minimist@1.2.0 /home/pi/.node-red/node_modules/minimist
read@1.0.7 /home/pi/.node-red/node_modules/read
mute-stream@0.0.7 /home/pi/.node-red/node_modules/mute-stream
request@2.74.0 /home/pi/.node-red/node_modules/request

...

some more info (not sure if it is relevant):

journalctl -f -u nodered -o cat

Started Node-RED graphical event wiring tool.
nodered.service: Main process exited, code=exited, status=127/n/a
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
nodered.service: Start request repeated too quickly.
Failed to start Node-RED graphical event wiring tool.
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.

which version of node.js and npm do you have installed ?

node -v  
npm -v

Just to confirm - you used the script from the Node-RED pi docs page ?

versions:

node -v
v8.12.0
npm -v
6.4.1

I used:

bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)

I have the same problem on my raspberry 0 since yesterday after the upgrade with the script

Please confirm the same information that has been asked in this thread previously

Which version node and npm what user are you running the script from

what do which node and which node-red report back ?

which node
/usr/local/bin/node
which node-red

(node-red is not found)

so it's telling the truth - Node-RED isn't fully installed...

Can you try running the bash install script once more (as your normal user) - and report the contents of /var/log/nodered-install.log

/var/log/nodered-install.log part 1

Started : Tue Sep 18 19:50:50 CEST 2018
Running for user pi at /home/pi
Found global nodes:   :
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodered' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
npm WARN using --force I sure hope you know what you are doing.
npm ERR! asyncWrite is not a function
npm ERR! pna.nextTick is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-09-18T17_51_01_310Z-debug.log

> sqlite3@3.1.13 install /home/pi/.node-red/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

[sqlite3] Success: "/home/pi/.node-red/node_modules/sqlite3/lib/binding/node-v57-linux-arm/node_sqlite3.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> node-red-dashboard@2.8.2 postinstall /home/pi/.node-red/node_modules/node-red-dashboard
> node fixfa.js


> node-red-node-pi-sense-hat@0.0.15 postinstall /home/pi/.node-red/node_modules/node-red-node-pi-sense-hat
> scripts/checklib.sh

Sense HAT python library is installed

> serialport@6.1.1 install /home/pi/.node-red/node_modules/serialport
> prebuild-install || node-gyp rebuild

prebuild-install info begin Prebuild-install version 2.5.1
prebuild-install info looking for local prebuild @ prebuilds/serialport-v6.1.1-node-v57-linux-arm.tar.gz
prebuild-install info npm cache directory missing, creating it... 
prebuild-install info looking for cached prebuild @ /home/pi/.npm/_prebuilds/https-github.com-node-serialport-node-serialport-releases-download-v6.1.1-serialport-v6.1.1-node-v57-linux-arm.tar.gz
prebuild-install http request GET https://github.com/node-serialport/node-serialport/releases/download/v6.1.1/serialport-v6.1.1-node-v57-linux-arm.tar.gz
prebuild-install http 404 https://github.com/node-serialport/node-serialport/releases/download/v6.1.1/serialport-v6.1.1-node-v57-linux-arm.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=8.12.0 runtime=node arch=arm platform=linux)
make: Entering directory '/home/pi/.node-red/node_modules/serialport/build'
  CXX(target) Release/obj.target/serialport/src/serialport.o
../src/serialport.cpp: In function 'void EIO_AfterOpen(uv_work_t*)':
../src/serialport.cpp:95:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterUpdate(uv_work_t*)':
../src/serialport.cpp:150:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterClose(uv_work_t*)':
../src/serialport.cpp:188:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterFlush(uv_work_t*)':
../src/serialport.cpp:231:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterSet(uv_work_t*)':
../src/serialport.cpp:285:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterGet(uv_work_t*)':
../src/serialport.cpp:336:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterGetBaudRate(uv_work_t*)':
../src/serialport.cpp:383:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterDrain(uv_work_t*)':
../src/serialport.cpp:424:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:6:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  CXX(target) Release/obj.target/serialport/src/serialport_unix.o
  CXX(target) Release/obj.target/serialport/src/poller.o
../src/poller.cpp: In static member function 'static void Poller::onData(uv_poll_t*, int, int)':
../src/poller.cpp:69:29: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   obj->callback.Call(2, argv);
                             ^
In file included from ../src/poller.cpp:1:0:
../../nan/nan.h:1618: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'

> bcrypt@0.8.7 install /home/pi/.node-red/node_modules/bcrypt
> node-gyp rebuild

make: Entering directory '/home/pi/.node-red/node_modules/bcrypt/build'
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
  SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
  COPY Release/bcrypt_lib.node
make: Leaving directory '/home/pi/.node-red/node_modules/bcrypt/build'
moment@2.21.0 /home/pi/.node-red/node_modules/moment
node-red-admin@0.1.3 /home/pi/.node-red/node_modules/node-red-admin
bcryptjs@2.3.0 /home/pi/.node-red/node_modules/bcryptjs
cli-table@0.3.1 /home/pi/.node-red/node_modules/cli-table
colors@1.0.3 /home/pi/.node-red/node_modules/cli-table/node_modules/colors
colors@1.1.2 /home/pi/.node-red/node_modules/colors
minimist@1.2.0 /home/pi/.node-red/node_modules/minimist
read@1.0.7 /home/pi/.node-red/node_modules/read
mute-stream@0.0.7 /home/pi/.node-red/node_modules/mute-stream
request@2.74.0 /home/pi/.node-red/node_modules/request
aws-sign2@0.6.0 /home/pi/.node-red/node_modules/aws-sign2
aws4@1.7.0 /home/pi/.node-red/node_modules/aws4
bl@1.1.2 /home/pi/.node-red/node_modules/request/node_modules/bl
readable-stream@2.0.6 /home/pi/.node-red/node_modules/request/node_modules/readable-stream
core-util-is@1.0.2 /home/pi/.node-red/node_modules/core-util-is
inherits@2.0.3 /home/pi/.node-red/node_modules/inherits
isarray@1.0.0 /home/pi/.node-red/node_modules/isarray
process-nextick-args@1.0.7 /home/pi/.node-red/node_modules/request/node_modules/process-nextick-args
string_decoder@0.10.31 /home/pi/.node-red/node_modules/request/node_modules/string_decoder
util-deprecate@1.0.2 /home/pi/.node-red/node_modules/util-deprecate
caseless@0.11.0 /home/pi/.node-red/node_modules/caseless
combined-stream@1.0.6 /home/pi/.node-red/node_modules/combined-stream
delayed-stream@1.0.0 /home/pi/.node-red/node_modules/delayed-stream
extend@3.0.1 /home/pi/.node-red/node_modules/extend
forever-agent@0.6.1 /home/pi/.node-red/node_modules/forever-agent
form-data@1.0.1 /home/pi/.node-red/node_modules/request/node_modules/form-data
async@2.6.1 /home/pi/.node-red/node_modules/async
lodash@4.17.10 /home/pi/.node-red/node_modules/lodash
mime-types@2.1.18 /home/pi/.node-red/node_modules/mime-types
mime-db@1.33.0 /home/pi/.node-red/node_modules/mime-db
har-validator@2.0.6 /home/pi/.node-red/node_modules/har-validator
chalk@1.1.3 /home/pi/.node-red/node_modules/chalk
ansi-styles@2.2.1 /home/pi/.node-red/node_modules/ansi-styles
escape-string-regexp@1.0.5 /home/pi/.node-red/node_modules/escape-string-regexp
has-ansi@2.0.0 /home/pi/.node-red/node_modules/has-ansi
ansi-regex@2.1.1 /home/pi/.node-red/node_modules/ansi-regex
strip-ansi@3.0.1 /home/pi/.node-red/node_modules/strip-ansi
supports-color@2.0.0 /home/pi/.node-red/node_modules/supports-color
commander@2.15.1 /home/pi/.node-red/node_modules/commander
is-my-json-valid@2.17.2 /home/pi/.node-red/node_modules/is-my-json-valid
generate-function@2.0.0 /home/pi/.node-red/node_modules/generate-function
generate-object-property@1.2.0 /home/pi/.node-red/node_modules/generate-object-property
is-property@1.0.2 /home/pi/.node-red/node_modules/is-property
is-my-ip-valid@1.0.0 /home/pi/.node-red/node_modules/is-my-ip-valid
jsonpointer@4.0.1 /home/pi/.node-red/node_modules/jsonpointer
xtend@4.0.1 /home/pi/.node-red/node_modules/xtend
pinkie-promise@2.0.1 /home/pi/.node-red/node_modules/pinkie-promise
pinkie@2.0.4 /home/pi/.node-red/node_modules/pinkie
hawk@3.1.3 /home/pi/.node-red/node_modules/hawk
boom@2.10.1 /home/pi/.node-red/node_modules/boom
hoek@2.16.3 /home/pi/.node-red/node_modules/hoek
cryptiles@2.0.5 /home/pi/.node-red/node_modules/cryptiles
sntp@1.0.9 /home/pi/.node-red/node_modules/sntp
http-signature@1.1.1 /home/pi/.node-red/node_modules/http-signature
assert-plus@0.2.0 /home/pi/.node-red/node_modules/assert-plus
jsprim@1.4.1 /home/pi/.node-red/node_modules/jsprim
assert-plus@1.0.0 /home/pi/.node-red/node_modules/jsprim/node_modules/assert-plus
extsprintf@1.3.0 /home/pi/.node-red/node_modules/extsprintf
json-schema@0.2.3 /home/pi/.node-red/node_modules/json-schema
verror@1.10.0 /home/pi/.node-red/node_modules/verror
assert-plus@1.0.0 /home/pi/.node-red/node_modules/verror/node_modules/assert-plus
sshpk@1.14.2 /home/pi/.node-red/node_modules/sshpk
asn1@0.2.3 /home/pi/.node-red/node_modules/asn1
assert-plus@1.0.0 /home/pi/.node-red/node_modules/sshpk/node_modules/assert-plus
dashdash@1.14.1 /home/pi/.node-red/node_modules/dashdash
assert-plus@1.0.0 /home/pi/.node-red/node_modules/dashdash/node_modules/assert-plus
getpass@0.1.7 /home/pi/.node-red/node_modules/getpass
assert-plus@1.0.0 /home/pi/.node-red/node_modules/getpass/node_modules/assert-plus
safer-buffer@2.1.2 /home/pi/.node-red/node_modules/safer-buffer
is-typedarray@1.0.0 /home/pi/.node-red/node_modules/is-typedarray
isstream@0.1.2 /home/pi/.node-red/node_modules/isstream
json-stringify-safe@5.0.1 /home/pi/.node-red/node_modules/json-stringify-safe
node-uuid@1.4.8 /home/pi/.node-red/node_modules/node-uuid
oauth-sign@0.8.2 /home/pi/.node-red/node_modules/oauth-sign
qs@6.2.3 /home/pi/.node-red/node_modules/qs
stringstream@0.0.6 /home/pi/.node-red/node_modules/stringstream
tough-cookie@2.3.4 /home/pi/.node-red/node_modules/tough-cookie
punycode@1.4.1 /home/pi/.node-red/node_modules/punycode
tunnel-agent@0.4.3 /home/pi/.node-red/node_modules/request/node_modules/tunnel-agent
when@3.7.7 /home/pi/.node-red/node_modules/when
node-red-contrib-ibm-watson-iot@0.2.8 /home/pi/.node-red/node_modules/node-red-contrib-ibm-watson-iot
ibmiotf@0.2.41 /home/pi/.node-red/node_modules/ibmiotf
axios@0.5.4 /home/pi/.node-red/node_modules/axios
es6-promise@2.3.0 /home/pi/.node-red/node_modules/es6-promise
bluebird@2.11.0 /home/pi/.node-red/node_modules/bluebird
btoa@1.1.2 /home/pi/.node-red/node_modules/btoa
concat-stream@1.6.2 /home/pi/.node-red/node_modules/concat-stream
buffer-from@1.0.0 /home/pi/.node-red/node_modules/buffer-from
readable-stream@2.3.5 /home/pi/.node-red/node_modules/readable-stream
process-nextick-args@2.0.0 /home/pi/.node-red/node_modules/process-nextick-args
safe-buffer@5.1.1 /home/pi/.node-red/node_modules/safe-buffer
string_decoder@1.0.3 /home/pi/.node-red/node_modules/string_decoder
typedarray@0.0.6 /home/pi/.node-red/node_modules/typedarray
events@1.1.1 /home/pi/.node-red/node_modules/events
form-data@2.3.2 /home/pi/.node-red/node_modules/form-data
asynckit@0.4.0 /home/pi/.node-red/node_modules/asynckit
format@0.2.2 /home/pi/.node-red/node_modules/format
loglevel@1.6.1 /home/pi/.node-red/node_modules/loglevel
mqtt@2.16.0 /home/pi/.node-red/node_modules/mqtt
commist@1.0.0 /home/pi/.node-red/node_modules/commist
leven@1.0.2 /home/pi/.node-red/node_modules/leven
end-of-stream@1.4.1 /home/pi/.node-red/node_modules/end-of-stream
once@1.4.0 /home/pi/.node-red/node_modules/once
wrappy@1.0.2 /home/pi/.node-red/node_modules/wrappy
help-me@1.1.0 /home/pi/.node-red/node_modules/help-me
callback-stream@1.1.0 /home/pi/.node-red/node_modules/callback-stream
glob-stream@6.1.0 /home/pi/.node-red/node_modules/glob-stream
glob@7.1.2 /home/pi/.node-red/node_modules/glob
fs.realpath@1.0.0 /home/pi/.node-red/node_modules/fs.realpath
inflight@1.0.6 /home/pi/.node-red/node_modules/inflight
minimatch@3.0.4 /home/pi/.node-red/node_modules/minimatch
brace-expansion@1.1.11 /home/pi/.node-red/node_modules/brace-expansion
balanced-match@1.0.0 /home/pi/.node-red/node_modules/balanced-match
concat-map@0.0.1 /home/pi/.node-red/node_modules/concat-map
path-is-absolute@1.0.1 /home/pi/.node-red/node_modules/path-is-absolute
glob-parent@3.1.0 /home/pi/.node-red/node_modules/glob-parent
is-glob@3.1.0 /home/pi/.node-red/node_modules/is-glob
is-extglob@2.1.1 /home/pi/.node-red/node_modules/is-extglob
path-dirname@1.0.2 /home/pi/.node-red/node_modules/path-dirname
is-negated-glob@1.0.0 /home/pi/.node-red/node_modules/is-negated-glob
ordered-read-streams@1.0.1 /home/pi/.node-red/node_modules/ordered-read-streams
pumpify@1.4.0 /home/pi/.node-red/node_modules/pumpify
duplexify@3.5.4 /home/pi/.node-red/node_modules/duplexify
stream-shift@1.0.0 /home/pi/.node-red/node_modules/stream-shift
pump@2.0.1 /home/pi/.node-red/node_modules/pumpify/node_modules/pump
remove-trailing-separator@1.1.0 /home/pi/.node-red/node_modules/remove-trailing-separator
to-absolute-glob@2.0.2 /home/pi/.node-red/node_modules/to-absolute-glob
is-absolute@1.0.0 /home/pi/.node-red/node_modules/is-absolute
is-relative@1.0.0 /home/pi/.node-red/node_modules/is-relative
is-unc-path@1.0.0 /home/pi/.node-red/node_modules/is-unc-path
unc-path-regex@0.1.2 /home/pi/.node-red/node_modules/unc-path-regex
is-windows@1.0.2 /home/pi/.node-red/node_modules/is-windows
unique-stream@2.2.1 /home/pi/.node-red/node_modules/unique-stream
json-stable-stringify@1.0.1 /home/pi/.node-red/node_modules/json-stable-stringify
jsonify@0.0.0 /home/pi/.node-red/node_modules/jsonify
through2-filter@2.0.0 /home/pi/.node-red/node_modules/through2-filter
through2@2.0.3 /home/pi/.node-red/node_modules/through2
mqtt-packet@5.5.0 /home/pi/.node-red/node_modules/mqtt-packet
bl@1.2.2 /home/pi/.node-red/node_modules/bl
pump@3.0.0 /home/pi/.node-red/node_modules/pump
reinterval@1.1.0 /home/pi/.node-red/node_modules/reinterval
split2@2.2.0 /home/pi/.node-red/node_modules/split2
websocket-stream@5.1.2 /home/pi/.node-red/node_modules/websocket-stream
ws@3.3.3 /home/pi/.node-red/node_modules/ws
async-limiter@1.0.0 /home/pi/.node-red/node_modules/async-limiter
ultron@1.1.1 /home/pi/.node-red/node_modules/ultron
node-red-contrib-mongodb3@1.0.0 /home/pi/.node-red/node_modules/node-red-contrib-mongodb3
cfenv@1.0.4 /home/pi/.node-red/node_modules/cfenv
js-yaml@3.7.0 /home/pi/.node-red/node_modules/js-yaml
argparse@1.0.10 /home/pi/.node-red/node_modules/argparse
sprintf-js@1.0.3 /home/pi/.node-red/node_modules/sprintf-js
esprima@2.7.3 /home/pi/.node-red/node_modules/esprima
ports@1.1.0 /home/pi/.node-red/node_modules/ports
underscore@1.8.3 /home/pi/.node-red/node_modules/underscore
mongodb@3.0.5 /home/pi/.node-red/node_modules/mongodb
mongodb-core@3.0.5 /home/pi/.node-red/node_modules/mongodb-core
bson@1.0.6 /home/pi/.node-red/node_modules/bson
require_optional@1.0.1 /home/pi/.node-red/node_modules/require_optional
resolve-from@2.0.0 /home/pi/.node-red/node_modules/resolve-from
semver@5.5.0 /home/pi/.node-red/node_modules/semver
node-red-contrib-mysensors@2.0.1 /home/pi/.node-red/node_modules/node-red-contrib-mysensors
sqlite@2.9.1 /home/pi/.node-red/node_modules/sqlite

part 2

    sqlite3@3.1.13 /home/pi/.node-red/node_modules/sqlite3
    nan@2.7.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/nan
    node-pre-gyp@0.6.38 /home/pi/.node-red/node_modules/sqlite3/node_modules/node-pre-gyp
    hawk@3.1.3 /home/pi/.node-red/node_modules/sqlite3/node_modules/hawk
    boom@2.10.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/boom
    hoek@2.16.3 /home/pi/.node-red/node_modules/sqlite3/node_modules/hoek
    cryptiles@2.0.5 /home/pi/.node-red/node_modules/sqlite3/node_modules/cryptiles
    sntp@1.0.9 /home/pi/.node-red/node_modules/sqlite3/node_modules/sntp
    mkdirp@0.5.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/mkdirp
    minimist@0.0.8 /home/pi/.node-red/node_modules/sqlite3/node_modules/minimist
    nopt@4.0.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/nopt
    abbrev@1.1.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/abbrev
    osenv@0.1.4 /home/pi/.node-red/node_modules/sqlite3/node_modules/osenv
    os-homedir@1.0.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/os-homedir
    os-tmpdir@1.0.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/os-tmpdir
    npmlog@4.1.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/npmlog
    are-we-there-yet@1.1.4 /home/pi/.node-red/node_modules/sqlite3/node_modules/are-we-there-yet
    delegates@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/delegates
    readable-stream@2.3.3 /home/pi/.node-red/node_modules/sqlite3/node_modules/readable-stream
    core-util-is@1.0.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/core-util-is
    inherits@2.0.3 /home/pi/.node-red/node_modules/sqlite3/node_modules/inherits
    isarray@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/isarray
    process-nextick-args@1.0.7 /home/pi/.node-red/node_modules/sqlite3/node_modules/process-nextick-args
    safe-buffer@5.1.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/safe-buffer
    string_decoder@1.0.3 /home/pi/.node-red/node_modules/sqlite3/node_modules/string_decoder
    util-deprecate@1.0.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/util-deprecate
    console-control-strings@1.1.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/console-control-strings
    gauge@2.7.4 /home/pi/.node-red/node_modules/sqlite3/node_modules/gauge
    aproba@1.2.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/aproba
    has-unicode@2.0.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/has-unicode
    object-assign@4.1.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/object-assign
    signal-exit@3.0.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/signal-exit
    string-width@1.0.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/string-width
    code-point-at@1.1.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/code-point-at
    is-fullwidth-code-point@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/is-fullwidth-code-point
    number-is-nan@1.0.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/number-is-nan
    strip-ansi@3.0.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/strip-ansi
    ansi-regex@2.1.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/ansi-regex
    wide-align@1.1.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/wide-align
    set-blocking@2.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/set-blocking
    rc@1.2.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/rc
    deep-extend@0.4.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/deep-extend
    ini@1.3.4 /home/pi/.node-red/node_modules/sqlite3/node_modules/ini
    minimist@1.2.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/rc/node_modules/minimist
    strip-json-comments@2.0.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/strip-json-comments
    request@2.81.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/request
    aws-sign2@0.6.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/aws-sign2
    aws4@1.6.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/aws4
    caseless@0.12.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/caseless
    combined-stream@1.0.5 /home/pi/.node-red/node_modules/sqlite3/node_modules/combined-stream
    delayed-stream@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/delayed-stream
    extend@3.0.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/extend
    forever-agent@0.6.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/forever-agent
    form-data@2.1.4 /home/pi/.node-red/node_modules/sqlite3/node_modules/form-data
    asynckit@0.4.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/asynckit
    mime-types@2.1.17 /home/pi/.node-red/node_modules/sqlite3/node_modules/mime-types
    mime-db@1.30.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/mime-db
    har-validator@4.2.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/har-validator
    ajv@4.11.8 /home/pi/.node-red/node_modules/sqlite3/node_modules/ajv
    co@4.6.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/co
    json-stable-stringify@1.0.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/json-stable-stringify
    jsonify@0.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/jsonify
    har-schema@1.0.5 /home/pi/.node-red/node_modules/sqlite3/node_modules/har-schema
    http-signature@1.1.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/http-signature
    assert-plus@0.2.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/assert-plus
    jsprim@1.4.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/jsprim
    assert-plus@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/jsprim/node_modules/assert-plus
    extsprintf@1.3.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/extsprintf
    json-schema@0.2.3 /home/pi/.node-red/node_modules/sqlite3/node_modules/json-schema
    verror@1.10.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/verror
    assert-plus@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/verror/node_modules/assert-plus
    sshpk@1.13.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/sshpk
    asn1@0.2.3 /home/pi/.node-red/node_modules/sqlite3/node_modules/asn1
    assert-plus@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/sshpk/node_modules/assert-plus
    dashdash@1.14.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/dashdash
    assert-plus@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/dashdash/node_modules/assert-plus
    getpass@0.1.7 /home/pi/.node-red/node_modules/sqlite3/node_modules/getpass
    assert-plus@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/getpass/node_modules/assert-plus
    is-typedarray@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/is-typedarray
    isstream@0.1.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/isstream
    json-stringify-safe@5.0.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/json-stringify-safe
    oauth-sign@0.8.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/oauth-sign
    performance-now@0.2.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/performance-now
    qs@6.4.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/qs
    stringstream@0.0.5 /home/pi/.node-red/node_modules/sqlite3/node_modules/stringstream
    tough-cookie@2.3.3 /home/pi/.node-red/node_modules/sqlite3/node_modules/tough-cookie
    punycode@1.4.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/punycode
    tunnel-agent@0.6.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/tunnel-agent
    uuid@3.1.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/uuid
    rimraf@2.6.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/rimraf
    glob@7.1.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/glob
    fs.realpath@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/fs.realpath
    inflight@1.0.6 /home/pi/.node-red/node_modules/sqlite3/node_modules/inflight
    once@1.4.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/once
    wrappy@1.0.2 /home/pi/.node-red/node_modules/sqlite3/node_modules/wrappy
    minimatch@3.0.4 /home/pi/.node-red/node_modules/sqlite3/node_modules/minimatch
    brace-expansion@1.1.8 /home/pi/.node-red/node_modules/sqlite3/node_modules/brace-expansion
    balanced-match@1.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/balanced-match
    concat-map@0.0.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/concat-map
    path-is-absolute@1.0.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/path-is-absolute
    semver@5.4.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/semver
    tar@2.2.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/tar
    block-stream@0.0.9 /home/pi/.node-red/node_modules/sqlite3/node_modules/block-stream
    fstream@1.0.11 /home/pi/.node-red/node_modules/sqlite3/node_modules/fstream
    graceful-fs@4.1.11 /home/pi/.node-red/node_modules/sqlite3/node_modules/graceful-fs
    tar-pack@3.4.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/tar-pack
    debug@2.6.9 /home/pi/.node-red/node_modules/sqlite3/node_modules/debug
    ms@2.0.0 /home/pi/.node-red/node_modules/sqlite3/node_modules/ms
    fstream-ignore@1.0.5 /home/pi/.node-red/node_modules/sqlite3/node_modules/fstream-ignore
    uid-number@0.0.6 /home/pi/.node-red/node_modules/sqlite3/node_modules/uid-number
    bcrypt-pbkdf@1.0.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/bcrypt-pbkdf
    tweetnacl@0.14.5 /home/pi/.node-red/node_modules/sqlite3/node_modules/tweetnacl
    ecc-jsbn@0.1.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/ecc-jsbn
    jsbn@0.1.1 /home/pi/.node-red/node_modules/sqlite3/node_modules/jsbn
    node-red-contrib-play-audio@2.3.1 /home/pi/.node-red/node_modules/node-red-contrib-play-audio
    node-red-dashboard@2.8.2 /home/pi/.node-red/node_modules/node-red-dashboard
    serve-static@1.13.2 /home/pi/.node-red/node_modules/serve-static
    encodeurl@1.0.2 /home/pi/.node-red/node_modules/encodeurl
    escape-html@1.0.3 /home/pi/.node-red/node_modules/escape-html
    parseurl@1.3.2 /home/pi/.node-red/node_modules/parseurl
    send@0.16.2 /home/pi/.node-red/node_modules/send
    debug@2.6.9 /home/pi/.node-red/node_modules/send/node_modules/debug
    ms@2.0.0 /home/pi/.node-red/node_modules/ms
    depd@1.1.2 /home/pi/.node-red/node_modules/depd
    destroy@1.0.4 /home/pi/.node-red/node_modules/destroy
    etag@1.8.1 /home/pi/.node-red/node_modules/etag
    fresh@0.5.2 /home/pi/.node-red/node_modules/fresh
    http-errors@1.6.2 /home/pi/.node-red/node_modules/http-errors
    depd@1.1.1 /home/pi/.node-red/node_modules/http-errors/node_modules/depd
    setprototypeof@1.0.3 /home/pi/.node-red/node_modules/setprototypeof
    statuses@1.4.0 /home/pi/.node-red/node_modules/statuses
    mime@1.4.1 /home/pi/.node-red/node_modules/mime
    on-finished@2.3.0 /home/pi/.node-red/node_modules/on-finished
    ee-first@1.1.1 /home/pi/.node-red/node_modules/ee-first
    range-parser@1.2.0 /home/pi/.node-red/node_modules/range-parser
    socket.io@1.7.4 /home/pi/.node-red/node_modules/socket.io
    debug@2.3.3 /home/pi/.node-red/node_modules/socket.io/node_modules/debug
    ms@0.7.2 /home/pi/.node-red/node_modules/socket.io/node_modules/ms
    engine.io@1.8.5 /home/pi/.node-red/node_modules/engine.io
    accepts@1.3.3 /home/pi/.node-red/node_modules/accepts
    negotiator@0.6.1 /home/pi/.node-red/node_modules/negotiator
    base64id@1.0.0 /home/pi/.node-red/node_modules/base64id
    cookie@0.3.1 /home/pi/.node-red/node_modules/cookie
    debug@2.3.3 /home/pi/.node-red/node_modules/engine.io/node_modules/debug
    ms@0.7.2 /home/pi/.node-red/node_modules/engine.io/node_modules/ms
    engine.io-parser@1.3.2 /home/pi/.node-red/node_modules/engine.io-parser
    after@0.8.2 /home/pi/.node-red/node_modules/after
    arraybuffer.slice@0.0.6 /home/pi/.node-red/node_modules/arraybuffer.slice
    base64-arraybuffer@0.1.5 /home/pi/.node-red/node_modules/base64-arraybuffer
    blob@0.0.4 /home/pi/.node-red/node_modules/blob
    has-binary@0.1.7 /home/pi/.node-red/node_modules/has-binary
    isarray@0.0.1 /home/pi/.node-red/node_modules/has-binary/node_modules/isarray
    wtf-8@1.0.0 /home/pi/.node-red/node_modules/wtf-8
    ws@1.1.5 /home/pi/.node-red/node_modules/engine.io/node_modules/ws
    options@0.0.6 /home/pi/.node-red/node_modules/options
    ultron@1.0.2 /home/pi/.node-red/node_modules/engine.io/node_modules/ultron
    object-assign@4.1.0 /home/pi/.node-red/node_modules/socket.io/node_modules/object-assign
    socket.io-adapter@0.5.0 /home/pi/.node-red/node_modules/socket.io-adapter
    debug@2.3.3 /home/pi/.node-red/node_modules/socket.io-adapter/node_modules/debug
    ms@0.7.2 /home/pi/.node-red/node_modules/socket.io-adapter/node_modules/ms
    socket.io-parser@2.3.1 /home/pi/.node-red/node_modules/socket.io-parser
    component-emitter@1.1.2 /home/pi/.node-red/node_modules/socket.io-parser/node_modules/component-emitter
    debug@2.2.0 /home/pi/.node-red/node_modules/socket.io-parser/node_modules/debug
    ms@0.7.1 /home/pi/.node-red/node_modules/socket.io-parser/node_modules/ms
    isarray@0.0.1 /home/pi/.node-red/node_modules/socket.io-parser/node_modules/isarray
    json3@3.3.2 /home/pi/.node-red/node_modules/json3
    socket.io-client@1.7.4 /home/pi/.node-red/node_modules/socket.io-client
    backo2@1.0.2 /home/pi/.node-red/node_modules/backo2
    component-bind@1.0.0 /home/pi/.node-red/node_modules/component-bind
    component-emitter@1.2.1 /home/pi/.node-red/node_modules/component-emitter
    debug@2.3.3 /home/pi/.node-red/node_modules/socket.io-client/node_modules/debug
    ms@0.7.2 /home/pi/.node-red/node_modules/socket.io-client/node_modules/ms
    engine.io-client@1.8.5 /home/pi/.node-red/node_modules/engine.io-client
    component-inherit@0.0.3 /home/pi/.node-red/node_modules/component-inherit
    debug@2.3.3 /home/pi/.node-red/node_modules/engine.io-client/node_modules/debug
    ms@0.7.2 /home/pi/.node-red/node_modules/engine.io-client/node_modules/ms
    has-cors@1.1.0 /home/pi/.node-red/node_modules/has-cors
    indexof@0.0.1 /home/pi/.node-red/node_modules/indexof
    parsejson@0.0.3 /home/pi/.node-red/node_modules/parsejson
    better-assert@1.0.2 /home/pi/.node-red/node_modules/better-assert
    callsite@1.0.0 /home/pi/.node-red/node_modules/callsite
    parseqs@0.0.5 /home/pi/.node-red/node_modules/parseqs
    parseuri@0.0.5 /home/pi/.node-red/node_modules/parseuri
    ws@1.1.5 /home/pi/.node-red/node_modules/engine.io-client/node_modules/ws
    ultron@1.0.2 /home/pi/.node-red/node_modules/engine.io-client/node_modules/ultron
    xmlhttprequest-ssl@1.5.3 /home/pi/.node-red/node_modules/xmlhttprequest-ssl
    yeast@0.1.2 /home/pi/.node-red/node_modules/yeast
    object-component@0.0.3 /home/pi/.node-red/node_modules/object-component
    to-array@0.1.4 /home/pi/.node-red/node_modules/to-array
    node-red-node-ledborg@0.0.18 /home/pi/.node-red/node_modules/node-red-node-ledborg
    node-red-node-mongodb@0.0.14 /home/pi/.node-red/node_modules/node-red-node-mongodb
    mongodb@2.2.35 /home/pi/.node-red/node_modules/node-red-node-mongodb/node_modules/mongodb
    es6-promise@3.2.1 /home/pi/.node-red/node_modules/node-red-node-mongodb/node_modules/es6-promise
    mongodb-core@2.1.19 /home/pi/.node-red/node_modules/node-red-node-mongodb/node_modules/mongodb-core
    readable-stream@2.2.7 /home/pi/.node-red/node_modules/node-red-node-mongodb/node_modules/readable-stream
    buffer-shims@1.0.0 /home/pi/.node-red/node_modules/buffer-shims
    process-nextick-args@1.0.7 /home/pi/.node-red/node_modules/node-red-node-mongodb/node_modules/process-nextick-args
    node-red-node-pi-sense-hat@0.0.15 /home/pi/.node-red/node_modules/node-red-node-pi-sense-hat
    node-red-node-ping@0.0.15 /home/pi/.node-red/node_modules/node-red-node-ping
    node-red-node-random@0.1.0 /home/pi/.node-red/node_modules/node-red-node-random
    node-red-node-serialport@0.6.5 /home/pi/.node-red/node_modules/node-red-node-serialport
    serialport@6.1.1 /home/pi/.node-red/node_modules/serialport
    bindings@1.3.0 /home/pi/.node-red/node_modules/bindings
    debug@3.1.0 /home/pi/.node-red/node_modules/debug
    nan@2.10.0 /home/pi/.node-red/node_modules/nan
    prebuild-install@2.5.1 /home/pi/.node-red/node_modules/prebuild-install
    detect-libc@1.0.3 /home/pi/.node-red/node_modules/detect-libc
    expand-template@1.1.0 /home/pi/.node-red/node_modules/expand-template
    github-from-package@0.0.0 /home/pi/.node-red/node_modules/github-from-package
    mkdirp@0.5.1 /home/pi/.node-red/node_modules/mkdirp
    minimist@0.0.8 /home/pi/.node-red/node_modules/mkdirp/node_modules/minimist
    node-abi@2.3.0 /home/pi/.node-red/node_modules/node-abi
    noop-logger@0.1.1 /home/pi/.node-red/node_modules/noop-logger
    npmlog@4.1.2 /home/pi/.node-red/node_modules/npmlog
    are-we-there-yet@1.1.4 /home/pi/.node-red/node_modules/are-we-there-yet
    delegates@1.0.0 /home/pi/.node-red/node_modules/delegates
    console-control-strings@1.1.0 /home/pi/.node-red/node_modules/console-control-strings
    gauge@2.7.4 /home/pi/.node-red/node_modules/gauge
    aproba@1.2.0 /home/pi/.node-red/node_modules/aproba
    has-unicode@2.0.1 /home/pi/.node-red/node_modules/has-unicode
    object-assign@4.1.1 /home/pi/.node-red/node_modules/object-assign
    signal-exit@3.0.2 /home/pi/.node-red/node_modules/signal-exit
    string-width@1.0.2 /home/pi/.node-red/node_modules/string-width
    code-point-at@1.1.0 /home/pi/.node-red/node_modules/code-point-at
    is-fullwidth-code-point@1.0.0 /home/pi/.node-red/node_modules/is-fullwidth-code-point
    number-is-nan@1.0.1 /home/pi/.node-red/node_modules/number-is-nan
    wide-align@1.1.2 /home/pi/.node-red/node_modules/wide-align
    set-blocking@2.0.0 /home/pi/.node-red/node_modules/set-blocking
    os-homedir@1.0.2 /home/pi/.node-red/node_modules/os-homedir
    pump@2.0.1 /home/pi/.node-red/node_modules/prebuild-install/node_modules/pump
    rc@1.2.6 /home/pi/.node-red/node_modules/rc
    deep-extend@0.4.2 /home/pi/.node-red/node_modules/deep-extend
    ini@1.3.5 /home/pi/.node-red/node_modules/ini
    strip-json-comments@2.0.1 /home/pi/.node-red/node_modules/strip-json-comments
    simple-get@2.7.0 /home/pi/.node-red/node_modules/simple-get
    decompress-response@3.3.0 /home/pi/.node-red/node_modules/decompress-response
    mimic-response@1.0.0 /home/pi/.node-red/node_modules/mimic-response
    simple-concat@1.0.0 /home/pi/.node-red/node_modules/simple-concat
    tar-fs@1.16.0 /home/pi/.node-red/node_modules/tar-fs
    chownr@1.0.1 /home/pi/.node-red/node_modules/chownr
    pump@1.0.3 /home/pi/.node-red/node_modules/tar-fs/node_modules/pump
    tar-stream@1.5.5 /home/pi/.node-red/node_modules/tar-stream
    tunnel-agent@0.6.0 /home/pi/.node-red/node_modules/tunnel-agent
    which-pm-runs@1.0.0 /home/pi/.node-red/node_modules/which-pm-runs
    promirepl@1.0.1 /home/pi/.node-red/node_modules/promirepl
    prompt-list@3.1.2 /home/pi/.node-red/node_modules/prompt-list
    ansi-cyan@0.1.1 /home/pi/.node-red/node_modules/ansi-cyan
    ansi-wrap@0.1.0 /home/pi/.node-red/node_modules/ansi-wrap
    ansi-dim@0.1.1 /home/pi/.node-red/node_modules/ansi-dim
    prompt-radio@1.2.1 /home/pi/.node-red/node_modules/prompt-radio
    debug@2.6.9 /home/pi/.node-red/node_modules/prompt-radio/node_modules/debug
    prompt-checkbox@2.2.0 /home/pi/.node-red/node_modules/prompt-checkbox
    debug@2.6.9 /home/pi/.node-red/node_modules/prompt-checkbox/node_modules/debug
    prompt-base@4.1.0 /home/pi/.node-red/node_modules/prompt-base
    koalas@1.0.2 /home/pi/.node-red/node_modules/koalas
    log-utils@0.2.1 /home/pi/.node-red/node_modules/log-utils
    ansi-colors@0.2.0 /home/pi/.node-red/node_modules/ansi-colors
    ansi-bgblack@0.1.1 /home/pi/.node-red/node_modules/ansi-bgblack
    ansi-bgblue@0.1.1 /home/pi/.node-red/node_modules/ansi-bgblue
    ansi-bgcyan@0.1.1 /home/pi/.node-red/node_modules/ansi-bgcyan
    ansi-bggreen@0.1.1 /home/pi/.node-red/node_modules/ansi-bggreen
    ansi-bgmagenta@0.1.1 /home/pi/.node-red/node_modules/ansi-bgmagenta
    ansi-bgred@0.1.1 /home/pi/.node-red/node_modules/ansi-bgred
    ansi-bgwhite@0.1.1 /home/pi/.node-red/node_modules/ansi-bgwhite
    ansi-bgyellow@0.1.1 /home/pi/.node-red/node_modules/ansi-bgyellow
    ansi-black@0.1.1 /home/pi/.node-red/node_modules/ansi-black
    ansi-blue@0.1.1 /home/pi/.node-red/node_modules/ansi-blue
    ansi-bold@0.1.1 /home/pi/.node-red/node_modules/ansi-bold
    ansi-gray@0.1.1 /home/pi/.node-red/node_modules/ansi-gray
    ansi-green@0.1.1 /home/pi/.node-red/node_modules/ansi-green
    ansi-grey@0.1.1 /home/pi/.node-red/node_modules/ansi-grey
    ansi-hidden@0.1.1 /home/pi/.node-red/node_modules/ansi-hidden
    ansi-inverse@0.1.1 /home/pi/.node-red/node_modules/ansi-inverse
    ansi-italic@0.1.1 /home/pi/.node-red/node_modules/ansi-italic
    ansi-magenta@0.1.1 /home/pi/.node-red/node_modules/ansi-magenta
    ansi-red@0.1.1 /home/pi/.node-red/node_modules/ansi-red
    ansi-reset@0.1.1 /home/pi/.node-red/node_modules/ansi-reset
    ansi-strikethrough@0.1.1 /home/pi/.node-red/node_modules/ansi-strikethrough
    ansi-underline@0.1.1 /home/pi/.node-red/node_modules/ansi-underline
    ansi-white@0.1.1 /home/pi/.node-red/node_modules/ansi-white
    ansi-yellow@0.1.1 /home/pi/.node-red/node_modules/ansi-yellow
    lazy-cache@2.0.2 /home/pi/.node-red/node_modules/lazy-cache
    set-getter@0.1.0 /home/pi/.node-red/node_modules/set-getter
    to-object-path@0.3.0 /home/pi/.node-red/node_modules/to-object-path
    kind-of@3.2.2 /home/pi/.node-red/node_modules/kind-of
    is-buffer@1.1.6 /home/pi/.node-red/node_modules/is-buffer
    error-symbol@0.1.0 /home/pi/.node-red/node_modules/error-symbol
    info-symbol@0.1.0 /home/pi/.node-red/node_modules/info-symbol
    log-ok@0.1.1 /home/pi/.node-red/node_modules/log-ok
    success-symbol@0.1.0 /home/pi/.node-red/node_modules/success-symbol
    time-stamp@1.1.0 /home/pi/.node-red/node_modules/time-stamp
    warning-symbol@0.1.0 /home/pi/.node-red/node_modules/warning-symbol
    prompt-actions@3.0.2 /home/pi/.node-red/node_modules/prompt-actions
    debug@2.6.9 /home/pi/.node-red/node_modules/prompt-actions/node_modules/debug
    prompt-question@5.0.2 /home/pi/.node-red/node_modules/prompt-question
    clone-deep@1.0.0 /home/pi/.node-red/node_modules/clone-deep
    for-own@1.0.0 /home/pi/.node-red/node_modules/for-own
    for-in@1.0.2 /home/pi/.node-red/node_modules/for-in
    is-plain-object@2.0.4 /home/pi/.node-red/node_modules/is-plain-object
    isobject@3.0.1 /home/pi/.node-red/node_modules/isobject
    kind-of@5.1.0 /home/pi/.node-red/node_modules/clone-deep/node_modules/kind-of
    shallow-clone@1.0.0 /home/pi/.node-red/node_modules/shallow-clone
    is-extendable@0.1.1 /home/pi/.node-red/node_modules/is-extendable
    kind-of@5.1.0 /home/pi/.node-red/node_modules/shallow-clone/node_modules/kind-of
    mixin-object@2.0.1 /home/pi/.node-red/node_modules/mixin-object
    for-in@0.1.8 /home/pi/.node-red/node_modules/mixin-object/node_modules/for-in
    define-property@1.0.0 /home/pi/.node-red/node_modules/define-property
    is-descriptor@1.0.2 /home/pi/.node-red/node_modules/is-descriptor
    is-accessor-descriptor@1.0.0 /home/pi/.node-red/node_modules/is-accessor-descriptor
    kind-of@6.0.2 /home/pi/.node-red/node_modules/is-accessor-descriptor/node_modules/kind-of
    is-data-descriptor@1.0.0 /home/pi/.node-red/node_modules/is-data-descriptor
    kind-of@6.0.2 /home/pi/.node-red/node_modules/is-data-descriptor/node_modules/kind-of
    kind-of@6.0.2 /home/pi/.node-red/node_modules/is-descriptor/node_modules/kind-of
    kind-of@5.1.0 /home/pi/.node-red/node_modules/prompt-question/node_modules/kind-of
    prompt-choices@4.0.6 /home/pi/.node-red/node_modules/prompt-choices
    arr-flatten@1.1.0 /home/pi/.node-red/node_modules/arr-flatten
    arr-swap@1.0.1 /home/pi/.node-red/node_modules/arr-swap
    is-number@3.0.0 /home/pi/.node-red/node_modules/is-number
    choices-separator@2.0.0 /home/pi/.node-red/node_modules/choices-separator
    debug@2.6.9 /home/pi/.node-red/node_modules/choices-separator/node_modules/debug
    strip-color@0.1.0 /home/pi/.node-red/node_modules/strip-color
    collection-visit@1.0.0 /home/pi/.node-red/node_modules/collection-visit
    map-visit@1.0.0 /home/pi/.node-red/node_modules/map-visit
    object-visit@1.0.1 /home/pi/.node-red/node_modules/object-visit
    extend-shallow@2.0.1 /home/pi/.node-red/node_modules/extend-shallow
    kind-of@5.1.0 /home/pi/.node-red/node_modules/prompt-choices/node_modules/kind-of
    pointer-symbol@1.0.0 /home/pi/.node-red/node_modules/pointer-symbol
    radio-symbol@2.0.0 /home/pi/.node-red/node_modules/radio-symbol
    set-value@2.0.0 /home/pi/.node-red/node_modules/set-value
    split-string@3.1.0 /home/pi/.node-red/node_modules/split-string
    extend-shallow@3.0.2 /home/pi/.node-red/node_modules/split-string/node_modules/extend-shallow
    assign-symbols@1.0.0 /home/pi/.node-red/node_modules/assign-symbols
    is-extendable@1.0.1 /home/pi/.node-red/node_modules/split-string/node_modules/is-extendable
    terminal-paginator@2.0.2 /home/pi/.node-red/node_modules/terminal-paginator
    debug@2.6.9 /home/pi/.node-red/node_modules/terminal-paginator/node_modules/debug
    toggle-array@1.0.1 /home/pi/.node-red/node_modules/toggle-array
    readline-ui@2.2.3 /home/pi/.node-red/node_modules/readline-ui
    debug@2.6.9 /home/pi/.node-red/node_modules/readline-ui/node_modules/debug
    readline-utils@2.2.3 /home/pi/.node-red/node_modules/readline-utils
    window-size@1.1.0 /home/pi/.node-red/node_modules/window-size
    string-width@2.1.1 /home/pi/.node-red/node_modules/readline-ui/node_modules/string-width
    is-fullwidth-code-point@2.0.0 /home/pi/.node-red/node_modules/readline-ui/node_modules/is-fullwidth-code-point
    strip-ansi@4.0.0 /home/pi/.node-red/node_modules/readline-ui/node_modules/strip-ansi
    ansi-regex@3.0.0 /home/pi/.node-red/node_modules/readline-ui/node_modules/ansi-regex
    static-extend@0.1.2 /home/pi/.node-red/node_modules/static-extend
    define-property@0.2.5 /home/pi/.node-red/node_modules/static-extend/node_modules/define-property
    is-descriptor@0.1.6 /home/pi/.node-red/node_modules/static-extend/node_modules/is-descriptor
    is-accessor-descriptor@0.1.6 /home/pi/.node-red/node_modules/static-extend/node_modules/is-accessor-descriptor
    kind-of@3.2.2 /home/pi/.node-red/node_modules/static-extend/node_modules/is-accessor-descriptor/node_modules/kind-of
    is-data-descriptor@0.1.4 /home/pi/.node-red/node_modules/static-extend/node_modules/is-data-descriptor
    kind-of@3.2.2 /home/pi/.node-red/node_modules/static-extend/node_modules/is-data-descriptor/node_modules/kind-of
    kind-of@5.1.0 /home/pi/.node-red/node_modules/static-extend/node_modules/kind-of
    object-copy@0.1.0 /home/pi/.node-red/node_modules/object-copy
    copy-descriptor@0.1.1 /home/pi/.node-red/node_modules/copy-descriptor
    define-property@0.2.5 /home/pi/.node-red/node_modules/object-copy/node_modules/define-property
    is-descriptor@0.1.6 /home/pi/.node-red/node_modules/object-copy/node_modules/is-descriptor
    is-accessor-descriptor@0.1.6 /home/pi/.node-red/node_modules/object-copy/node_modules/is-accessor-descriptor
    is-data-descriptor@0.1.4 /home/pi/.node-red/node_modules/object-copy/node_modules/is-data-descriptor
    kind-of@5.1.0 /home/pi/.node-red/node_modules/object-copy/node_modules/is-descriptor/node_modules/kind-of
    node-red-node-smooth@0.1.0 /home/pi/.node-red/node_modules/node-red-node-smooth
    bcrypt-pbkdf@1.0.1 /home/pi/.node-red/node_modules/bcrypt-pbkdf
    tweetnacl@0.14.5 /home/pi/.node-red/node_modules/tweetnacl
    ecc-jsbn@0.1.1 /home/pi/.node-red/node_modules/ecc-jsbn
    jsbn@0.1.1 /home/pi/.node-red/node_modules/jsbn
    bcrypt@0.8.7 /home/pi/.node-red/node_modules/bcrypt
    bindings@1.2.1 /home/pi/.node-red/node_modules/bcrypt/node_modules/bindings
    nan@2.3.5 /home/pi/.node-red/node_modules/bcrypt/node_modules/nan
    Invalid MIT-MAGIC-COOKIE-1 keyCant connect to display: :0
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    	LANGUAGE = (unset),
    	LC_ALL = (unset),
    	LC_CTYPE = "UTF-8",
    	LANG = "en_GB.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
    The user `pi' is already a member of `gpio'.
    Finished : Tue Sep 18 19:50:50 CEST 2018

@willemx -

  1. What model Pi do you have this running on?
  2. how big is the SD card you are using? (in a terminal window enter df -h)
  3. are you running Stretch lite or the full stretch?
  4. what version of stretch?
  5. what is the script you are running?
  6. have you recently done an sudo apt-get update && sudo apt-get upgrade?

Looking on google there do seem to be quite a few reports of this error (asyncwrite is not a function) due to odd combinations of npm, node, node environments such as n, etc
But nothing stands out as being the obvious candidate here.

The nuclear option is going to be to delete nodejs and reinstall that via the script also.

  1. What model Pi do you have this running on?
    Raspberry Pi B3+

  2. how big is the SD card you are using? (in a terminal window enter df -h )

    df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/root        15G  4.0G   10G  29% /
    devtmpfs        460M     0  460M   0% /dev
    tmpfs           464M     0  464M   0% /dev/shm
    tmpfs           464M   18M  446M   4% /run
    tmpfs           5.0M  4.0K  5.0M   1% /run/lock
    tmpfs           464M     0  464M   0% /sys/fs/cgroup
    /dev/mmcblk0p1   42M   22M   20M  54% /boot
    tmpfs            93M     0   93M   0% /run/user/109
    tmpfs            93M     0   93M   0% /run/user/1000
    
    
  3. are you running Stretch lite or the full stretch?

  4. what version of stretch?

    cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="9"
    VERSION="9 (stretch)"
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

    uname -a
    Linux pimeterkast 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018 armv7l GNU/Linux

  1. what is the script you are running?
    bash &lt;(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
  1. have you recently done an sudo apt-get update && sudo apt-get upgrade ?
    yes

JFI - It looks like I've run into same/very similar issue

and what does your which node report ?

pi@plinth:~ $ which node
/usr/bin/node

(Do you want me to reply here as well or should I just let you work with @willemx)?

both the same problem - so may as well both be here. I think I'm going to ask you both to try uninstalling nodejs then reinstall. but first clear the npm cache

npm cache clear
sudo npm cache clear
sudo apt-get purge nodejs npm

then re-run the bash install/upgrade command

I think you are both on Pi Zero ? - but yes seems to be some sort of weird nodejs/npm version interaction which is biting us.

No - OP is on Pi3B+ - pretty much uptodate - mine is on PiZeroW running jessie from 2016