# Problem with rfbrowser init

**URL:** <https://forum.robotframework.org/t/problem-with-rfbrowser-init/5055>\
**Category:** Browser\
**Created:** [12 December 2022 07:10 UTC](https://forum.robotframework.org/t/problem-with-rfbrowser-init/5055 "2022-12-12T07:10:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonJGold](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ronjgold/32/2154_2.png) [@RonJGold](https://forum.robotframework.org/u/RonJGold)\
**Post date:** [12 December 2022 07:10 UTC](https://forum.robotframework.org/t/problem-with-rfbrowser-init/5055/1 "2022-12-12T07:10:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [12 December 2022 09:32 UTC](https://forum.robotframework.org/t/problem-with-rfbrowser-init/5055/2 "2022-12-12T09:32:17Z")

</div>

> [@RonJGold](#):
>
> [Error: EPERM: operation not permitted, rmdir ‘C:\Users\ronjg.virtualenvs\test\_automation\Lib\site-packages\Browser\wrapper\node\_modules\pino\test’]

Remove that directory manually and retry ?

---

<div class="post-metadata">

**Author:** ![RonJGold](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ronjgold/32/2154_2.png) [@RonJGold](https://forum.robotframework.org/u/RonJGold)\
**Post date:** [12 December 2022 15:05 UTC](https://forum.robotframework.org/t/problem-with-rfbrowser-init/5055/3 "2022-12-12T15:05:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![spicard](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@spicard](https://forum.robotframework.org/u/spicard)\
**Post date:** [24 February 2024 21:55 UTC](https://forum.robotframework.org/t/problem-with-rfbrowser-init/5055/4 "2024-02-24T21:55:28Z")

</div>

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
