Impossible to install puppeteer nodes

Hello everyone,
I am trying to add a headless browser on my node red server host by home assistant. I tried to install node-red-contrib-puppeteer-new directly from the palette, but an error occurs.

2022-06-09T11:25:11.555Z Install : node-red-contrib-puppeteer-new 0.3.2

2022-06-09T11:25:11.766Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-06-09T11:25:14.872Z [err] npm
2022-06-09T11:25:14.876Z [err]  WARN
2022-06-09T11:25:14.876Z [err]  config production Use `--omit=dev` instead.
2022-06-09T11:25:29.412Z [err] npm
2022-06-09T11:25:29.413Z [err]  ERR! code 1
2022-06-09T11:25:29.414Z [err] npm ERR!
2022-06-09T11:25:29.415Z [err]  path /config/node-red/node_modules/puppeteer
2022-06-09T11:25:29.425Z [err] npm ERR! command failed
2022-06-09T11:25:29.426Z [err] npm ERR! command
2022-06-09T11:25:29.426Z [err]  sh -c node install.js
2022-06-09T11:25:29.427Z [err] npm ERR! The chromium binary is not available for arm64.
2022-06-09T11:25:29.427Z [err] npm ERR!
2022-06-09T11:25:29.427Z [err]  If you are on Ubuntu, you can install with: 
2022-06-09T11:25:29.427Z [err] npm ERR! 
2022-06-09T11:25:29.427Z [err] npm ERR!
2022-06-09T11:25:29.428Z [err]   sudo apt install chromium
2022-06-09T11:25:29.428Z [err] npm ERR! 
2022-06-09T11:25:29.428Z [err] npm 
2022-06-09T11:25:29.428Z [err] ERR!
2022-06-09T11:25:29.429Z [err]  
2022-06-09T11:25:29.429Z [err] npm
2022-06-09T11:25:29.430Z [err]  ERR!  sudo apt install chromium-browser
2022-06-09T11:25:29.430Z [err] npm ERR! 
2022-06-09T11:25:29.430Z [err] npm ERR! /config/node-red/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:119
2022-06-09T11:25:29.430Z [err] npm ERR!                     throw new Error();
2022-06-09T11:25:29.430Z [err] npm ERR!                     ^
2022-06-09T11:25:29.430Z [err] npm
2022-06-09T11:25:29.430Z [err]  ERR! 
2022-06-09T11:25:29.430Z [err] npm ERR! Error
2022-06-09T11:25:29.430Z [err] npm
2022-06-09T11:25:29.431Z [err]  ERR!     at /config/node-red/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:119:27
2022-06-09T11:25:29.431Z [err] npm ERR!     at FSReqCallback.oncomplete (node:fs:198:21)
2022-06-09T11:25:29.443Z [err] 
2022-06-09T11:25:29.445Z [err] npm ERR! A complete log of this run can be found in:
2022-06-09T11:25:29.445Z [err] npm ERR!     /root/.npm/_logs/2022-06-09T11_25_14_617Z-debug-0.log
2022-06-09T11:25:29.508Z rc=1

Do you know how to solve the issue ?

Best regards

It’s not compatible with your system

1 Like

Do you know an alternative way to install it ?

Or an alternative way to have a headless browser through nodered ?

Why do you need a headless browser?
Usually node reds built-in nodes can handle it or command line scripts with curl or wget.

I need it to scrap things on website with some authentification and actions to retrieve datas.

It should still be possible with the existing tools as long as there is no chapta or the like.

1 Like

Hello,

Using this “old” thread as I have the error message trying to install any kind of node in my homeassistant nodered via the palette …


'''
'2022-10-19T09:52:06.541Z Install : node-red-contrib-calc 1.0.5

2022-10-19T09:52:06.732Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]

2022-10-19T09:52:08.462Z [err] npm

2022-10-19T09:52:08.463Z [err] WARN

2022-10-19T09:52:08.464Z [err] config production Use `--omit=dev` instead.

2022-10-19T09:52:13.213Z [err] npm

2022-10-19T09:52:13.214Z [err] ERR!

2022-10-19T09:52:13.214Z [err] code

2022-10-19T09:52:13.214Z [err] ENOTEMPTY

2022-10-19T09:52:13.215Z [err] npm

2022-10-19T09:52:13.215Z [err] ERR! syscall

2022-10-19T09:52:13.216Z [err] rename

2022-10-19T09:52:13.216Z [err] npm ERR!

2022-10-19T09:52:13.216Z [err] path /config/node-red/node_modules/amqplib

2022-10-19T09:52:13.217Z [err] npm ERR! dest

2022-10-19T09:52:13.218Z [err] /config/node-red/node_modules/.amqplib-ut0JoYyE

2022-10-19T09:52:13.218Z [err] npm ERR!

2022-10-19T09:52:13.218Z [err] errno -39

2022-10-19T09:52:13.223Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/amqplib' -> '/config/node-red/node_modules/.amqplib-ut0JoYyE'

2022-10-19T09:52:13.230Z [err]

2022-10-19T09:52:13.231Z [err] npm ERR!

2022-10-19T09:52:13.231Z [err] A complete log of this run can be found in:

2022-10-19T09:52:13.231Z [err] npm ERR! /root/.npm/_logs/2022-10-19T09_52_08_317Z-debug-0.log

2022-10-19T09:52:13.257Z rc=217'
```

If anyone can give me a hand?

Cheers 

Srv

You should create a new thread.
It is not likely that your problems are the same.

And by replying to an old thread you most likely only get responses from the ones that participated in the thread and not the entire community.