Can't install node-red modules after upgrading node-red

hey all, im trying to install arduino module via the manage pallet after upgrading to the newest node-red, i am running supervisor install
my system is
Version core-2021.11.2
Version supervisor-2021.10.8
Operating System Debian GNU/Linux 10 (buster)
Docker version 20.10.9
Channel beta

this is my error message

2021-11-11T20:26:42.838Z Install : node-red-node-arduino 0.3.1

2021-11-11T20:26:42.887Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2021-11-11T20:27:07.082Z [err] npm
2021-11-11T20:27:07.082Z [err]  ERR! code 1
2021-11-11T20:27:07.082Z [err] npm ERR! path /config/node-red/node_modules/@serialport/bindings
2021-11-11T20:27:07.085Z [err] npm ERR!
2021-11-11T20:27:07.085Z [err]  command failed
2021-11-11T20:27:07.085Z [err] npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2021-11-11T20:27:07.085Z [err] npm ERR! gyp info it worked if it ends with ok
2021-11-11T20:27:07.085Z [err] npm ERR! gyp info using [email protected]
2021-11-11T20:27:07.085Z [err] npm ERR! gyp info using [email protected] | linux | x64
2021-11-11T20:27:07.085Z [err] npm ERR! gyp info find Python using Python version 3.9.5 found at "/usr/bin/python3"
2021-11-11T20:27:07.085Z [err] npm
2021-11-11T20:27:07.085Z [err]  ERR! gyp info spawn /usr/bin/python3
2021-11-11T20:27:07.085Z [err] npm ERR! gyp info spawn args [
2021-11-11T20:27:07.085Z [err] npm ERR!
2021-11-11T20:27:07.085Z [err]  gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
2021-11-11T20:27:07.085Z [err] npm ERR! gyp info spawn args   'binding.gyp',
2021-11-11T20:27:07.085Z [err] npm ERR! gyp info spawn args   '-f',
2021-11-11T20:27:07.085Z [err] npm
2021-11-11T20:27:07.085Z [err]  ERR! gyp info spawn args   'make',
2021-11-11T20:27:07.085Z [err] npm ERR! gyp info spawn args   '-I',
2021-11-11T20:27:07.085Z [err] npm ERR! gyp info spawn args   '/config/node-red/node_modules/@serialport/bindings/build/config.gypi',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   '-I',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   '-I',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   '/root/.cache/node-gyp/14.18.1/include/node/common.gypi',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
2021-11-11T20:27:07.086Z [err] npm ERR!
2021-11-11T20:27:07.086Z [err]  gyp info spawn args   '-Dvisibility=default',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/14.18.1',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/14.18.1/<(target_arch)/node.lib',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   '-Dmodule_root_dir=/config/node-red/node_modules/@serialport/bindings',
2021-11-11T20:27:07.086Z [err] npm 
2021-11-11T20:27:07.086Z [err] ERR! gyp info spawn args   '-Dnode_engine=v8',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   '--depth=.',
2021-11-11T20:27:07.086Z [err] npm ERR!
2021-11-11T20:27:07.086Z [err]  gyp info spawn args   '--no-parallel',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   '--generator-output',
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args   'build',
2021-11-11T20:27:07.086Z [err] npm
2021-11-11T20:27:07.086Z [err]  ERR! gyp info spawn args   '-Goutput_dir=.'
2021-11-11T20:27:07.086Z [err] npm ERR! gyp info spawn args ]
2021-11-11T20:27:07.086Z [err] npm ERR!
2021-11-11T20:27:07.086Z [err]  gyp ERR! build error 
2021-11-11T20:27:07.086Z [err] npm ERR! gyp ERR! stack Error: not found: make
2021-11-11T20:27:07.086Z [err] npm ERR!
2021-11-11T20:27:07.086Z [err]  gyp ERR! stack     at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:10:17)
2021-11-11T20:27:07.086Z [err] npm ERR! gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:57:18
2021-11-11T20:27:07.086Z [err] npm ERR!
2021-11-11T20:27:07.086Z [err]  gyp ERR! stack     at new Promise (<anonymous>)
2021-11-11T20:27:07.086Z [err] npm ERR! gyp ERR! stack     at step (/usr/lib/node_modules/npm/node_modules/which/which.js:54:21)
2021-11-11T20:27:07.086Z [err] npm 
2021-11-11T20:27:07.086Z [err] ERR! gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:71:22
2021-11-11T20:27:07.086Z [err] npm ERR! gyp ERR! stack     at new Promise (<anonymous>)
2021-11-11T20:27:07.086Z [err] npm 
2021-11-11T20:27:07.086Z [err] ERR! gyp ERR! stack     at subStep (/usr/lib/node_modules/npm/node_modules/which/which.js:69:33)
2021-11-11T20:27:07.086Z [err] npm ERR! gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:80:22
2021-11-11T20:27:07.086Z [err] npm 
2021-11-11T20:27:07.086Z [err] ERR! gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
2021-11-11T20:27:07.086Z [err] npm ERR! gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
2021-11-11T20:27:07.086Z [err] npm
2021-11-11T20:27:07.087Z [err]  ERR! gyp ERR! System Linux 5.10.0-0.bpo.8-amd64
2021-11-11T20:27:07.087Z [err] npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2021-11-11T20:27:07.087Z [err] npm
2021-11-11T20:27:07.087Z [err]  ERR! gyp ERR! cwd /config/node-red/node_modules/@serialport/bindings
2021-11-11T20:27:07.087Z [err] npm ERR! gyp ERR! node -v v14.18.1
2021-11-11T20:27:07.087Z [err] npm
2021-11-11T20:27:07.087Z [err]  ERR! gyp ERR! node-gyp -v v7.1.2
2021-11-11T20:27:07.087Z [err] npm ERR! gyp ERR! not ok
2021-11-11T20:27:07.112Z [err] 
2021-11-11T20:27:07.112Z [err] npm ERR!
2021-11-11T20:27:07.112Z [err]  A complete log of this run can be found in:
2021-11-11T20:27:07.112Z [err] npm ERR!     /root/.npm/_logs/2021-11-11T20_27_07_089Z-debug.log
2021-11-11T20:27:07.133Z rc=1

i can install other modules just not node-red-node-arduino

Seems like you are using docker, so maybe its something with allowing the container access to the resources you use, like the serialport.

definitely using docker. but you are speaking alien language lol… Can you point me to the right source so that I might be able to research it further my google skills are lets just say “no es bueno”

The better way to do it, is to copy the name of the of the node contrib you are trying to add, and then add it to the Node Red config in the addon. That way whenever NodeRed is rebuilt (updated), it will also pull the node contrib down with it.

1 Like

Sorry, but I have no idea actually.
I know that being in a container the program will by default be restricted on accessing local ressourcer, so these accesses have to be manually given, but I myself have no such needs with my own setup, so I am somewhat blank.

1 Like