Help Wanted - testing updated install script

Okay so not sure why but the /var/log/nodered-install.log file is empty. But it seems that /var/log/nodered-install.log.1 has the valid information...

Already have nodejs v14.17.0
OLD nodejs 14 :
NEW nodejs  :

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

Started : Thu 29 Jul 2021 10:33:36 PM CEST
Running for user debian at /home/debian
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...
E: Unable to locate package nodered

Versions: node:v10.24.0 npm:5.8.0
Now install Node-RED 
npm WARN npm npm does not support Node.js v10.24.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN notice [SECURITY] bcrypt has the following vulnerability: 1 low. Go here for more details: https://www.npmjs.com/advisories?search=bcrypt&version=5.0.1 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
/usr/local/bin/node-red -> /usr/local/lib/node_modules/node-red/red.js
/usr/local/bin/node-red-pi -> /usr/local/lib/node_modules/node-red/bin/node-red-pi

> bcrypt@5.0.1 install /usr/local/lib/node_modules/node-red/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build

[bcrypt] Success: "/usr/local/lib/node_modules/node-red/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" is installed via remote
npm WARN ws@7.5.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.5.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

+ node-red@2.0.4
added 290 packages from 369 contributors in 26.133s
2.0.4 
Now create basic package.json for the user and move any global nodes
Now add the shortcut and start/stop/log scripts to the menu
Now add systemd script and configure it for debian
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
Memory  : 11G
Started :  Thu 29 Jul 2021 10:33:36 PM CEST 
Finished:  Thu 29 Jul 2021 10:34:13 PM CEST

The command node -v outputs v10.24.0:
0

but when I type n i receive:
1

Ah right so yes you are using n.
Ok I need to look at/ fix that.
Generally we advise against using n or nvm as that can cause issues when trying to run as a service ( on boot) but I should at least catch and warn about it.

Looks like node.js 10.24 is expecting npm v6 not v5 so somehow you have a disconnect between npm versions.

That is the normal error message you get when using the deb version of nodejs10

FYI @dceejay - I changed nothing on the machine and the script now detects everything as expected.

After passing --node14 the script finished without any errors.

1 Like

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