Stuck in install

I have been struggling all day, trying guide after guide, trying to figure out how to squash all the error messages. My command line knowledge is about a 4 on a good day.

I am running the install script to try and install it on a pi3. I broke node.js twice.
At the moment it is finally completing the install script, but, with errors.

Using NVM to manage Node.js + please run nvm use lts before running Node-RED
NOTE: Using nvm is NOT RECOMMENDED. Node-RED will not run as a service under nvm.
manpath: can't set the locale; make sure $LC_* and $LANG are correct

ive tried dpkg-reconfigure locales to resolve the last one, but did not help, still getting it. The "nvm use lts" does not want to go away.
Can someone help me?

Do you really need NVM, that appears to be causing your issues and as it states, it isn't recommended.

dont know if Pi-hole uses it, bit I can install that somewhere else.
Ill try and find a guide on how to remove NVM

great, now I am failing on " Install Node.js LTS ✘ Failed to install Node.js - Exit"

Probably best to uninstall node.js as well. The script should put the right version in the right place.

okey, Ill give it another go. I already uninstalled in previously. Ill try again.

Personally, I don't use the script as I'd rather know how to manage things myself. Once Node.js is installed following the instructions on their website, everything else is very simple.

If that still doesn't work post the full install log here. It tells you where that is when you run the script. When pasting it here use the </> button at the top of the forum entry window.

hope this is what you ment: Raspberry pi to relay board wire diagram

yes I did use the install script but it did not go smoothly.

I think we are getting confused as you have started two threads running at once. Please run the install script again and post the install log here if it fails.

I tried to reinstall and this is the result.



***************************************

Started : Sun Dec 13 12:27:36 GMT 2020
Running for user pi at /home/pi
Found global nodes:   :

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

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.
Already have nodejs v15.4.0
Now install nodejs
Using NVM !!! v15.4.0
Now using --- v14.15.1
Versions: node:v14.15.1 npm:6.14.9
npm WARN using --force I sure hope you know what you are doing.
Now install Node-RED
npm WARN deprecated bcrypt@3.0.6: versions < v5.0.0 do not handle NUL in passwords properly
npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated bcrypt@3.0.8: versions < v5.0.0 do not handle NUL in passwords properly
/home/pi/.nvm/versions/node/v14.15.1/bin/node-red -> /home/pi/.nvm/versions/node/v14.15.1/lib/node_modules/node-red/red.js
/home/pi/.nvm/versions/node/v14.15.1/bin/node-red-pi -> /home/pi/.nvm/versions/node/v14.15.1/lib/node_modules/node-red/bin/node-red-pi
+ node-red@1.2.6
updated 1 package in 76.745s
1.2.6 
Now create basic package.json for the user and move any global nodes
Installing extra nodes: node-red-node-pi-gpio@latest node-red-node-random@latest node-red-node-ping@latest node-red-contrib-play-audio@latest node-red-node-smooth@latest node-red-node-serialport@latest :

> mdns@2.7.2 install /home/pi/.node-red/node_modules/mdns
> node-gyp rebuild

make: Entering directory '/home/pi/.node-red/node_modules/mdns/build'
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
In file included from ../src/dns_sd.cpp:1:
../src/mdns.hpp:32:10: fatal error: dns_sd.h: No such file or directory
 #include <dns_sd.h>
          ^~~~~~~~~~
compilation terminated.
make: *** [dns_sd_bindings.target.mk:177: Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1
make: Leaving directory '/home/pi/.node-red/node_modules/mdns/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/pi/.nvm/versions/node/v14.15.1/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:277:12)
gyp ERR! System Linux 5.4.79-v7+
gyp ERR! command "/home/pi/.nvm/versions/node/v14.15.1/bin/node" "/home/pi/.nvm/versions/node/v14.15.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/.node-red/node_modules/mdns
gyp ERR! node -v v14.15.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mdns@2.7.2 (node_modules/mdns):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mdns@2.7.2 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ node-red-node-smooth@0.1.2
+ node-red-contrib-play-audio@2.5.0
+ node-red-node-ping@0.2.2
+ node-red-node-pi-gpio@1.2.3
+ node-red-node-random@0.2.0
+ node-red-node-serialport@0.11.1
updated 6 packages in 51.148s

> serialport@9.0.3 postinstall /home/pi/.node-red/node_modules/serialport
> node thank-you.js

e[96me[1mThank you for using serialport!e[96me[1m
e[0me[96mIf you rely on this package, please consider supporting our open collective:e[22me[39m
> e[94mhttps://opencollective.com/serialport/donatee[0m



> @serialport/bindings@9.0.3 install /home/pi/.node-red/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=14.15.1 runtime=node arch=arm libc= platform=linux)
make: Entering directory '/home/pi/.node-red/node_modules/@serialport/bindings/build'
  CXX(target) Release/obj.target/bindings/src/serialport.o
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:78:69: 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]
   uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
                                                                     ^~~~~~~~~~~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:135:71: 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]
   uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
                                                                       ^~~~~~~~~~~~~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:175:70: 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]
   uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:215:70: 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]
   uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:270:68: 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]
   uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
                                                                    ^~~~~~~~~~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:314:68: 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]
   uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
                                                                    ^~~~~~~~~~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:363:76: 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]
   uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
                                                                            ^~~~~~~~~~~~~~~~~~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:409:70: 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]
   uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: At global scope:
../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of 'ToParityEnum' [-Wparentheses]
 SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
                            ^
../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of 'ToStopBitEnum' [-Wparentheses]
 SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
                              ^
In file included from ../../../nan/nan.h:56,
                 from ../src/./serialport.h:6,
                 from ../src/serialport.cpp:1:
/home/pi/.cache/node-gyp/14.15.1/include/node/node.h:758:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local<v8::Object>)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/home/pi/.cache/node-gyp/14.15.1/include/node/node.h:792:3: note: in expansion of macro 'NODE_MODULE_X'
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../src/serialport.cpp:483:1: note: in expansion of macro 'NODE_MODULE'
 NODE_MODULE(serialport, init);
 ^~~~~~~~~~~
  CXX(target) Release/obj.target/bindings/src/serialport_unix.o
../src/serialport_unix.cpp: In function 'int setup(int, OpenBaton*)':
../src/serialport_unix.cpp:176:60: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:176:13: note: 'snprintf' output 20 or more bytes (assuming 1043) into a destination of size 1024
     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp: In function 'void EIO_Open(uv_work_t*)':
../src/serialport_unix.cpp:86:60: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:86:13: note: 'snprintf' output 22 or more bytes (assuming 1045) into a destination of size 1024
     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CXX(target) Release/obj.target/bindings/src/poller.o
  CXX(target) Release/obj.target/bindings/src/serialport_linux.o
  SOLINK_MODULE(target) Release/obj.target/bindings.node
  COPY Release/bindings.node
make: Leaving directory '/home/pi/.node-red/node_modules/@serialport/bindings/build'
node-red-contrib-googlehome@0.0.10 /home/pi/.node-red/node_modules/node-red-contrib-googlehome
mqtt@2.18.8 /home/pi/.node-red/node_modules/mqtt
commist@1.1.0 /home/pi/.node-red/node_modules/commist
leven@2.1.0 /home/pi/.node-red/node_modules/leven
minimist@1.2.5 /home/pi/.node-red/node_modules/minimist
concat-stream@1.6.2 /home/pi/.node-red/node_modules/concat-stream
buffer-from@1.1.1 /home/pi/.node-red/node_modules/buffer-from
inherits@2.0.4 /home/pi/.node-red/node_modules/inherits
readable-stream@2.3.7 /home/pi/.node-red/node_modules/readable-stream
core-util-is@1.0.2 /home/pi/.node-red/node_modules/core-util-is
isarray@1.0.0 /home/pi/.node-red/node_modules/isarray
process-nextick-args@2.0.1 /home/pi/.node-red/node_modules/process-nextick-args
safe-buffer@5.1.2 /home/pi/.node-red/node_modules/safe-buffer
string_decoder@1.1.1 /home/pi/.node-red/node_modules/string_decoder
util-deprecate@1.0.2 /home/pi/.node-red/node_modules/util-deprecate
typedarray@0.0.6 /home/pi/.node-red/node_modules/typedarray
end-of-stream@1.4.4 /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
es6-map@0.1.5 /home/pi/.node-red/node_modules/es6-map
d@1.0.1 /home/pi/.node-red/node_modules/d
es5-ext@0.10.53 /home/pi/.node-red/node_modules/es5-ext
es6-iterator@2.0.3 /home/pi/.node-red/node_modules/es6-iterator
es6-symbol@3.1.3 /home/pi/.node-red/node_modules/es6-symbol
ext@1.4.0 /home/pi/.node-red/node_modules/ext
type@2.1.0 /home/pi/.node-red/node_modules/ext/node_modules/type
next-tick@1.0.0 /home/pi/.node-red/node_modules/next-tick
type@1.2.0 /home/pi/.node-red/node_modules/type
es6-set@0.1.5 /home/pi/.node-red/node_modules/es6-set
es6-symbol@3.1.1 /home/pi/.node-red/node_modules/es6-set/node_modules/es6-symbol
event-emitter@0.3.5 /home/pi/.node-red/node_modules/event-emitter
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
extend@3.0.2 /home/pi/.node-red/node_modules/extend
glob@7.1.6 /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.5.1 /home/pi/.node-red/node_modules/pumpify
duplexify@3.7.1 /home/pi/.node-red/node_modules/duplexify
stream-shift@1.0.1 /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.3.1 /home/pi/.node-red/node_modules/unique-stream
json-stable-stringify-without-jsonify@1.0.1 /home/pi/.node-red/node_modules/json-stable-stringify-without-jsonify
through2-filter@3.0.0 /home/pi/.node-red/node_modules/through2-filter
through2@2.0.5 /home/pi/.node-red/node_modules/through2
xtend@4.0.2 /home/pi/.node-red/node_modules/xtend
mqtt-packet@5.6.1 /home/pi/.node-red/node_modules/mqtt-packet
bl@1.2.3 /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.5.2 /home/pi/.node-red/node_modules/websocket-stream
ws@3.3.3 /home/pi/.node-red/node_modules/ws
async-limiter@1.0.1 /home/pi/.node-red/node_modules/async-limiter
ultron@1.1.1 /home/pi/.node-red/node_modules/ultron
request@2.88.2 /home/pi/.node-red/node_modules/request
aws-sign2@0.7.0 /home/pi/.node-red/node_modules/aws-sign2
aws4@1.11.0 /home/pi/.node-red/node_modules/aws4
caseless@0.12.0 /home/pi/.node-red/node_modules/caseless
combined-stream@1.0.8 /home/pi/.node-red/node_modules/combined-stream
delayed-stream@1.0.0 /home/pi/.node-red/node_modules/delayed-stream
forever-agent@0.6.1 /home/pi/.node-red/node_modules/forever-agent
form-data@2.3.3 /home/pi/.node-red/node_modules/form-data
asynckit@0.4.0 /home/pi/.node-red/node_modules/asynckit
mime-types@2.1.27 /home/pi/.node-red/node_modules/mime-types
mime-db@1.44.0 /home/pi/.node-red/node_modules/mime-db
har-validator@5.1.5 /home/pi/.node-red/node_modules/har-validator
ajv@6.12.6 /home/pi/.node-red/node_modules/ajv
fast-deep-equal@3.1.3 /home/pi/.node-red/node_modules/fast-deep-equal
fast-json-stable-stringify@2.1.0 /home/pi/.node-red/node_modules/fast-json-stable-stringify
json-schema-traverse@0.4.1 /home/pi/.node-red/node_modules/json-schema-traverse
uri-js@4.4.0 /home/pi/.node-red/node_modules/uri-js
punycode@2.1.1 /home/pi/.node-red/node_modules/punycode
har-schema@2.0.0 /home/pi/.node-red/node_modules/har-schema
http-signature@1.2.0 /home/pi/.node-red/node_modules/http-signature
assert-plus@1.0.0 /home/pi/.node-red/node_modules/assert-plus
jsprim@1.4.1 /home/pi/.node-red/node_modules/jsprim
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
sshpk@1.16.1 /home/pi/.node-red/node_modules/sshpk
asn1@0.2.4 /home/pi/.node-red/node_modules/asn1
safer-buffer@2.1.2 /home/pi/.node-red/node_modules/safer-buffer
bcrypt-pbkdf@1.0.2 /home/pi/.node-red/node_modules/bcrypt-pbkdf
tweetnacl@0.14.5 /home/pi/.node-red/node_modules/tweetnacl
dashdash@1.14.1 /home/pi/.node-red/node_modules/dashdash
ecc-jsbn@0.1.2 /home/pi/.node-red/node_modules/ecc-jsbn
jsbn@0.1.1 /home/pi/.node-red/node_modules/jsbn
getpass@0.1.7 /home/pi/.node-red/node_modules/getpass
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
oauth-sign@0.9.0 /home/pi/.node-red/node_modules/oauth-sign
performance-now@2.1.0 /home/pi/.node-red/node_modules/performance-now
qs@6.5.2 /home/pi/.node-red/node_modules/qs
tough-cookie@2.5.0 /home/pi/.node-red/node_modules/tough-cookie
psl@1.8.0 /home/pi/.node-red/node_modules/psl
tunnel-agent@0.6.0 /home/pi/.node-red/node_modules/tunnel-agent
uuid@3.4.0 /home/pi/.node-red/node_modules/uuid
node-red-contrib-play-audio@2.5.0 /home/pi/.node-red/node_modules/node-red-contrib-play-audio
node-red-contrib-pythonshell@1.5.4 /home/pi/.node-red/node_modules/node-red-contrib-pythonshell
node-red-dashboard@2.25.0 /home/pi/.node-red/node_modules/node-red-dashboard
compression@1.7.4 /home/pi/.node-red/node_modules/compression
accepts@1.3.7 /home/pi/.node-red/node_modules/accepts
negotiator@0.6.2 /home/pi/.node-red/node_modules/negotiator
bytes@3.0.0 /home/pi/.node-red/node_modules/bytes
compressible@2.0.18 /home/pi/.node-red/node_modules/compressible
debug@2.6.9 /home/pi/.node-red/node_modules/debug
ms@2.0.0 /home/pi/.node-red/node_modules/ms
on-headers@1.0.2 /home/pi/.node-red/node_modules/on-headers
vary@1.1.2 /home/pi/.node-red/node_modules/vary
gridstack@0.6.4 /home/pi/.node-red/node_modules/gridstack
jquery@3.5.1 /home/pi/.node-red/node_modules/jquery
serve-static@1.14.1 /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.3 /home/pi/.node-red/node_modules/parseurl
send@0.17.1 /home/pi/.node-red/node_modules/send
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.7.3 /home/pi/.node-red/node_modules/http-errors
setprototypeof@1.1.1 /home/pi/.node-red/node_modules/setprototypeof
statuses@1.5.0 /home/pi/.node-red/node_modules/statuses
toidentifier@1.0.0 /home/pi/.node-red/node_modules/toidentifier
mime@1.6.0 /home/pi/.node-red/node_modules/mime
ms@2.1.1 /home/pi/.node-red/node_modules/send/node_modules/ms
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.1 /home/pi/.node-red/node_modules/range-parser
socket.io@2.3.0 /home/pi/.node-red/node_modules/socket.io
debug@4.1.1 /home/pi/.node-red/node_modules/socket.io/node_modules/debug
ms@2.1.3 /home/pi/.node-red/node_modules/socket.io/node_modules/ms
engine.io@3.4.2 /home/pi/.node-red/node_modules/engine.io
base64id@2.0.0 /home/pi/.node-red/node_modules/base64id
cookie@0.3.1 /home/pi/.node-red/node_modules/cookie
debug@4.1.1 /home/pi/.node-red/node_modules/engine.io/node_modules/debug
ms@2.1.3 /home/pi/.node-red/node_modules/engine.io/node_modules/ms
engine.io-parser@2.2.1 /home/pi/.node-red/node_modules/engine.io-parser
after@0.8.2 /home/pi/.node-red/node_modules/after
arraybuffer.slice@0.0.7 /home/pi/.node-red/node_modules/arraybuffer.slice
base64-arraybuffer@0.1.4 /home/pi/.node-red/node_modules/base64-arraybuffer
blob@0.0.5 /home/pi/.node-red/node_modules/blob
has-binary2@1.0.3 /home/pi/.node-red/node_modules/has-binary2
isarray@2.0.1 /home/pi/.node-red/node_modules/has-binary2/node_modules/isarray
ws@7.4.1 /home/pi/.node-red/node_modules/engine.io/node_modules/ws
socket.io-adapter@1.1.2 /home/pi/.node-red/node_modules/socket.io-adapter
socket.io-client@2.3.0 /home/pi/.node-red/node_modules/socket.io-client
backo2@1.0.2 /home/pi/.node-red/node_modules/backo2
base64-arraybuffer@0.1.5 /home/pi/.node-red/node_modules/socket.io-client/node_modules/base64-arraybuffer
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@4.1.1 /home/pi/.node-red/node_modules/socket.io-client/node_modules/debug
ms@2.1.3 /home/pi/.node-red/node_modules/socket.io-client/node_modules/ms
engine.io-client@3.4.4 /home/pi/.node-red/node_modules/engine.io-client
component-emitter@1.3.0 /home/pi/.node-red/node_modules/engine.io-client/node_modules/component-emitter
component-inherit@0.0.3 /home/pi/.node-red/node_modules/component-inherit
debug@3.1.0 /home/pi/.node-red/node_modules/engine.io-client/node_modules/debug
has-cors@1.1.0 /home/pi/.node-red/node_modules/has-cors
indexof@0.0.1 /home/pi/.node-red/node_modules/indexof
parseqs@0.0.6 /home/pi/.node-red/node_modules/engine.io-client/node_modules/parseqs
parseuri@0.0.6 /home/pi/.node-red/node_modules/engine.io-client/node_modules/parseuri
ws@6.1.4 /home/pi/.node-red/node_modules/engine.io-client/node_modules/ws
xmlhttprequest-ssl@1.5.5 /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
parseqs@0.0.5 /home/pi/.node-red/node_modules/parseqs
better-assert@1.0.2 /home/pi/.node-red/node_modules/better-assert
callsite@1.0.0 /home/pi/.node-red/node_modules/callsite
parseuri@0.0.5 /home/pi/.node-red/node_modules/parseuri
socket.io-parser@3.3.1 /home/pi/.node-red/node_modules/socket.io-client/node_modules/socket.io-parser
component-emitter@1.3.0 /home/pi/.node-red/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/component-emitter
debug@3.1.0 /home/pi/.node-red/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/debug
ms@2.0.0 /home/pi/.node-red/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/ms
isarray@2.0.1 /home/pi/.node-red/node_modules/socket.io-client/node_modules/isarray
to-array@0.1.4 /home/pi/.node-red/node_modules/to-array
socket.io-parser@3.4.1 /home/pi/.node-red/node_modules/socket.io-parser
debug@4.1.1 /home/pi/.node-red/node_modules/socket.io-parser/node_modules/debug
ms@2.1.3 /home/pi/.node-red/node_modules/socket.io-parser/node_modules/ms
isarray@2.0.1 /home/pi/.node-red/node_modules/socket.io-parser/node_modules/isarray
node-red-node-pi-gpio@1.2.3 /home/pi/.node-red/node_modules/node-red-node-pi-gpio
node-red-node-ping@0.2.2 /home/pi/.node-red/node_modules/node-red-node-ping
node-red-node-random@0.2.0 /home/pi/.node-red/node_modules/node-red-node-random
node-red-node-serialport@0.11.1 /home/pi/.node-red/node_modules/node-red-node-serialport
serialport@9.0.3 /home/pi/.node-red/node_modules/serialport
@serialport/binding-mock@9.0.2 /home/pi/.node-red/node_modules/@serialport/binding-mock
@serialport/binding-abstract@9.0.2 /home/pi/.node-red/node_modules/@serialport/binding-abstract
debug@4.3.1 /home/pi/.node-red/node_modules/@serialport/binding-abstract/node_modules/debug
ms@2.1.2 /home/pi/.node-red/node_modules/@serialport/binding-abstract/node_modules/ms
debug@4.3.1 /home/pi/.node-red/node_modules/@serialport/binding-mock/node_modules/debug
ms@2.1.2 /home/pi/.node-red/node_modules/@serialport/binding-mock/node_modules/ms
@serialport/bindings@9.0.3 /home/pi/.node-red/node_modules/@serialport/bindings
@serialport/parser-readline@9.0.1 /home/pi/.node-red/node_modules/@serialport/parser-readline
@serialport/parser-delimiter@9.0.1 /home/pi/.node-red/node_modules/@serialport/parser-delimiter
bindings@1.5.0 /home/pi/.node-red/node_modules/@serialport/bindings/node_modules/bindings
file-uri-to-path@1.0.0 /home/pi/.node-red/node_modules/file-uri-to-path
debug@4.3.1 /home/pi/.node-red/node_modules/@serialport/bindings/node_modules/debug
ms@2.1.2 /home/pi/.node-red/node_modules/@serialport/bindings/node_modules/ms
nan@2.14.2 /home/pi/.node-red/node_modules/nan
prebuild-install@6.0.0 /home/pi/.node-red/node_modules/prebuild-install
detect-libc@1.0.3 /home/pi/.node-red/node_modules/detect-libc
expand-template@2.0.3 /home/pi/.node-red/node_modules/expand-template
github-from-package@0.0.0 /home/pi/.node-red/node_modules/github-from-package
mkdirp-classic@0.5.3 /home/pi/.node-red/node_modules/mkdirp-classic
napi-build-utils@1.0.2 /home/pi/.node-red/node_modules/napi-build-utils
node-abi@2.19.3 /home/pi/.node-red/node_modules/node-abi
semver@5.7.1 /home/pi/.node-red/node_modules/semver
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.5 /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.3 /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
strip-ansi@3.0.1 /home/pi/.node-red/node_modules/strip-ansi
ansi-regex@2.1.1 /home/pi/.node-red/node_modules/ansi-regex
wide-align@1.1.3 /home/pi/.node-red/node_modules/wide-align
set-blocking@2.0.0 /home/pi/.node-red/node_modules/set-blocking
rc@1.2.8 /home/pi/.node-red/node_modules/rc
deep-extend@0.6.0 /home/pi/.node-red/node_modules/deep-extend
ini@1.3.8 /home/pi/.node-red/node_modules/ini
strip-json-comments@2.0.1 /home/pi/.node-red/node_modules/strip-json-comments
simple-get@3.1.0 /home/pi/.node-red/node_modules/simple-get
decompress-response@4.2.1 /home/pi/.node-red/node_modules/decompress-response
mimic-response@2.1.0 /home/pi/.node-red/node_modules/mimic-response
simple-concat@1.0.1 /home/pi/.node-red/node_modules/simple-concat
tar-fs@2.1.1 /home/pi/.node-red/node_modules/tar-fs
chownr@1.1.4 /home/pi/.node-red/node_modules/chownr
tar-stream@2.1.4 /home/pi/.node-red/node_modules/tar-stream
bl@4.0.3 /home/pi/.node-red/node_modules/tar-stream/node_modules/bl
buffer@5.7.1 /home/pi/.node-red/node_modules/buffer
base64-js@1.5.1 /home/pi/.node-red/node_modules/base64-js
ieee754@1.2.1 /home/pi/.node-red/node_modules/ieee754
readable-stream@3.6.0 /home/pi/.node-red/node_modules/tar-stream/node_modules/readable-stream
fs-constants@1.0.0 /home/pi/.node-red/node_modules/fs-constants
which-pm-runs@1.0.0 /home/pi/.node-red/node_modules/which-pm-runs
@serialport/parser-byte-length@9.0.1 /home/pi/.node-red/node_modules/@serialport/parser-byte-length
@serialport/parser-cctalk@9.0.1 /home/pi/.node-red/node_modules/@serialport/parser-cctalk
@serialport/parser-ready@9.0.1 /home/pi/.node-red/node_modules/@serialport/parser-ready
@serialport/parser-regex@9.0.1 /home/pi/.node-red/node_modules/@serialport/parser-regex
@serialport/stream@9.0.2 /home/pi/.node-red/node_modules/@serialport/stream
debug@4.3.1 /home/pi/.node-red/node_modules/@serialport/stream/node_modules/debug
ms@2.1.2 /home/pi/.node-red/node_modules/@serialport/stream/node_modules/ms
debug@4.3.1 /home/pi/.node-red/node_modules/serialport/node_modules/debug
ms@2.1.2 /home/pi/.node-red/node_modules/serialport/node_modules/ms
node-red-node-smooth@0.1.2 /home/pi/.node-red/node_modules/node-red-node-smooth
Now add the shortcut and start/stop/log scripts to the menu
Now add systemd script and configure it for pi
ln: failed to create symbolic link '/usr/bin/python': File exists
Now add launcher to top bar, add cpu temp example, make sure ping works
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "nds_NL"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("nds_NL").
The user `pi' is already a member of `gpio'.
Memory : 1.0G
Finished : Sun Dec 13 12:27:36 GMT 2020

I am very confused that the script uses nvm and the says it should not be used.

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      ✔
  Using NVM to manage Node.js         +   please run   nvm use lts   before running Node-REDde.js                     
  NOTE: Using nvm is NOT RECOMMENDED.     Node-RED will not run as a service under nvm.ll Node-RED core               
manpath: can't set the locale; make sure $LC_* and $LANG are correct
  Update Node.js LTS                  ✔   Node v14.15.1   Npm 6.14.9
  Clean npm cache                     ✔
  Install Node-RED core               ✔   1.2.6 
  Move global nodes to local          -
  Install extra Pi nodes              ✔
  Npm rebuild existing nodes          ✔
  Add shortcut commands               ✔/nodered-install.log
  Update systemd script               ✔



All done.
  You can now start Node-RED with the command  ./node-red
  Then point your browser to localhost:1880 or http://{your_pi_ip-address}:1880

Started  Sun Dec 13 12:27:36 GMT 2020  -  Finished  Sun Dec 13 12:36:25 GMT 2020

That is correct, so apparently you have not removed nvm. So sort that, make sure you also remove nodejs as the current version you have is not a supported version.

I did remove nvm at first but the install script said it needed it so back on it goes.
Sure Ill remove it. Ill also remove nodejs.
Then ill run the install script again and post the response.

I think you misinterpreted whatever you thought told you that you needed it.

Can this thread be closed now as I gather from another thread that you have re-installed Raspbian and node red installed correctly?

yes, A clean install from the ground up was the solution. Not sure if its safe to let pi-hole run next to it. afraid it will destroy the node red.

What do you mean by that? I run pi-hole on a pi with node red, there should be no interaction between them.

1 Like

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