Problem with rfbrowser init

I can’t install node dependencies, it keeps giving me exit status 4294963238
Here is my log of the error,

(test_automation) PS C:\Automation\test_automation> rfbrowser init
2022-12-12 09:06:55,390 [INFO ] ==============================================================================================================
2022-12-12 09:06:55,390 [INFO ] Installing node dependencies…
2022-12-12 09:06:55,390 [INFO ] Installing rfbrowser node dependencies at C:\Users\ronjg.virtualenvs\test_automation\Lib\site-packages\Browser\wrapper
2022-12-12 09:06:57,580 [INFO ] npm WARN config production Use --omit=dev instead.

2022-12-12 09:07:00,050 [INFO ] npm WARN cleanup Failed to remove some directories [

2022-12-12 09:07:00,050 [INFO ] npm WARN cleanup [

2022-12-12 09:07:00,050 [INFO ] npm WARN cleanup ‘C:\Users\ronjg\.virtualenvs\test_automation\Lib\site-packages\Browser\wrapper\node_modules’,

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\ronjg.virtualenvs\test_automation\Lib\site-packages\Browser\wrapper\node_modules\pino\test’] {

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup errno: -4048,

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup code: ‘EPERM’,

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup syscall: ‘rmdir’,

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup path: ‘C:\Users\ronjg\.virtualenvs\test_automation\Lib\site-packages\Browser\wrapper\node_modules\pino\test’

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup }

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup ],

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup [

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup ‘C:\Users\ronjg\.virtualenvs\test_automation\Lib\site-packages\Browser\wrapper\node_modules\@grpc’,

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\ronjg.virtualenvs\test_automation\Lib\site-packages\Browser\wrapper\node_modules@grpc\grpc-js\src\generated\grpc’] {

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup errno: -4048,

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup code: ‘EPERM’,

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup syscall: ‘rmdir’,

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup path: ‘C:\Users\ronjg\.virtualenvs\test_automation\Lib\site-packages\Browser\wrapper\node_modules\@grpc\grpc-js\src\generated\grpc’

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup }

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup ]

2022-12-12 09:07:00,053 [INFO ] npm WARN cleanup ]

2022-12-12 09:07:00,053 [INFO ] npm ERR! code ENOENT

2022-12-12 09:07:00,053 [INFO ] npm ERR! syscall spawn bash

2022-12-12 09:07:00,053 [INFO ] npm ERR! path C:\Users\ronjg.virtualenvs\test_automation\Lib\site-packages\Browser\wrapper\node_modules\playwright

2022-12-12 09:07:00,053 [INFO ] npm ERR! errno -4058

2022-12-12 09:07:00,053 [INFO ] npm ERR! enoent spawn bash ENOENT

2022-12-12 09:07:00,053 [INFO ] npm ERR! enoent This is related to npm not being able to find a file.

2022-12-12 09:07:00,053 [INFO ] npm ERR! enoent

2022-12-12 09:07:00,053 [INFO ]

2022-12-12 09:07:00,053 [INFO ] npm ERR! A complete log of this run can be found in:

2022-12-12 09:07:00,053 [INFO ] npm ERR! C:\Users\ronjg\AppData\Local\npm-cache_logs\2022-12-12T07_06_57_557Z-debug-0.log

2022-12-12 09:07:00,070 [INFO ]
2022-12-12 09:07:00,070 [INFO ]
2022-12-12 09:07:00,070 [INFO ]
2022-12-12 09:07:00,070 [INFO ]
2022-12-12 09:07:00,070 [INFO ]
2022-12-12 09:07:00,070 [INFO ]
2022-12-12 09:07:00,070 [INFO ]
2022-12-12 09:07:00,070 [INFO ] ==============================================================================================================
2022-12-12 09:07:00,070 [INFO ] Traceback (most recent call last):
File “C:\Users\ronjg.virtualenvs\test_automation\Lib\site-packages\Browser\entry.py”, line 49, in rfbrowser_init
_rfbrowser_init(skip_browser_install)
File “C:\Users\ronjg.virtualenvs\test_automation\Lib\site-packages\Browser\entry.py”, line 159, in _rfbrowser_init
raise RuntimeError(
RuntimeError: Problem installing node dependencies.Node process returned with exit status 4294963238

2022-12-12 09:07:00,070 [INFO ] ==============================================================================================================
2022-12-12 09:07:00,070 [INFO ] Used Python is: C:\Users\ronjg.virtualenvs\test_automation\Scripts\python.exe
Version: 3.11.1
2022-12-12 09:07:00,070 [INFO ] ==============================================================================================================
2022-12-12 09:07:00,070 [INFO ] pip freeze output:

2022-12-12 09:07:00,570 [INFO ] backports.cached-property==1.0.2
grpcio==1.51.1
grpcio-tools==1.51.1
overrides==7.3.1
protobuf==4.21.10
robotframework==6.0.1
robotframework-assertion-engine==0.6.1
robotframework-browser==14.3.0
robotframework-pythonlibcore==4.0.0
typing_extensions==4.4.0
wrapt==1.14.1

2022-12-12 09:07:00,570 [INFO ] ==============================================================================================================
2022-12-12 09:07:01,690 [INFO ] npm version is:n
2022-12-12 09:07:01,695 [INFO ] 9.2.0

2022-12-12 09:07:01,695 [INFO ] ==============================================================================================================
2022-12-12 09:07:01,695 [INFO ] Installation directory C:\Users\ronjg\.virtualenvs\test_automation\Lib\site-packages\Browser\wrapper does not contain the required files
Printing contents:

2022-12-12 09:07:01,695 [INFO ] wrapper/

2022-12-12 09:07:01,695 [INFO ] index.js

2022-12-12 09:07:01,695 [INFO ] package-lock.json

2022-12-12 09:07:01,695 [INFO ] package.json

2022-12-12 09:07:01,695 [INFO ] node_modules/

2022-12-12 09:07:01,695 [INFO ] @grpc/

2022-12-12 09:07:01,695 [INFO ] static/

2022-12-12 09:07:01,695 [INFO ] selector-finder.js

2022-12-12 09:07:01,695 [INFO ] ==============================================================================================================
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in run_code
File "C:\Users\ronjg.virtualenvs\test_automation\Scripts\rfbrowser.exe_main
.py", line 7, in
File “C:\Users\ronjg.virtualenvs\test_automation\Lib\site-packages\Browser\entry.py”, line 260, in main
runner(command, skip_browsers, trace_file)
File “C:\Users\ronjg.virtualenvs\test_automation\Lib\site-packages\Browser\entry.py”, line 205, in runner
rfbrowser_init(skip_browsers)
File “C:\Users\ronjg.virtualenvs\test_automation\Lib\site-packages\Browser\entry.py”, line 57, in rfbrowser_init
raise error
File “C:\Users\ronjg.virtualenvs\test_automation\Lib\site-packages\Browser\entry.py”, line 49, in rfbrowser_init
_rfbrowser_init(skip_browser_install)
File “C:\Users\ronjg.virtualenvs\test_automation\Lib\site-packages\Browser\entry.py”, line 159, in _rfbrowser_init
raise RuntimeError(
RuntimeError: Problem installing node dependencies.Node process returned with exit status 4294963238

Remove that directory manually and retry ?

Hi thanks for the reply.
each time i run rfbrowser it specifies a different file. afterwards the specified file vanishes and I can’t delete it manually.

I had the same problem on Ubuntu. Node v12 is the latest version on Ubuntu 22.04
You need Node v16+ (even v18 now with PW v1.41)
Find a source using cURL (I used NodeSource and installed Node v20 Lts)
And all was good