# Issue with Initializing library 'Browser' with no arguments failed

**URL:** https://forum.robotframework.org/t/issue-with-initializing-library-browser-with-no-arguments-failed/2950
**Category:** Browser
**Created:** [14 December 2021 14:42 UTC](https://forum.robotframework.org/t/issue-with-initializing-library-browser-with-no-arguments-failed/2950 "2021-12-14T14:42:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![JoostW](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/joostw/32/3778_2.png) [@JoostW](https://forum.robotframework.org/u/JoostW)
#### Post date: [14 December 2021 14:42 UTC](https://forum.robotframework.org/t/issue-with-initializing-library-browser-with-no-arguments-failed/2950/1 "2021-12-14T14:42:22Z")

</div>

Hi,

I have already performed the following:

1. Install node.js e.g. from [Download | Node.js](https://nodejs.org/en/download/)
2. Update pip `pip install -U pip` to ensure latest version is used
3. Install robotframework-browser from the commandline: `pip install robotframework-browser`
4. Install the node dependencies: run `rfbrowser init` in your shell

I have followed the installation above of the browser lib. Get the next Error:

[ERROR] Error in file ‘C:\*_\*_\tests\*_\Test\*_\Sprint\PLAYGROUND\PLAYGROUND.robot’ on line 2: Initializing library ‘Browser’ with no arguments failed: Couldn’t execute node. Please ensure you have node.js installed and in PATH. See [https://nodejs.org/](https://nodejs.org/) for instructions. Original error is [WinError 2] Het systeem kan het opgegeven bestand niet vinden  
Traceback (most recent call last):  
File “C:\Users\*_\AppData\Local\Programs\Python\Python39\lib\site-packages\Browser\browser.py", line 718, in **init**  
self.playwright = Playwright(  
File "C:\Users\*_\AppData\Local\Programs\Python\Python39\lib\site-packages\Browser\playwright.py”, line 50, in **init**  
self.ensure\_node\_dependencies()  
File “C:\Users\*\*\AppData\Local\Programs\Python\Python39\lib\site-packages\Browser\playwright.py”, line 65, in ensure\_node\_dependencies  
raise RuntimeError(

Is there something I missed when installing?

---

<div class="post-metadata">

### Author: ![aaltat](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/aaltat/32/15_2.png) [@aaltat](https://forum.robotframework.org/u/aaltat)
#### Post date: [14 December 2021 22:01 UTC](https://forum.robotframework.org/t/issue-with-initializing-library-browser-with-no-arguments-failed/2950/2 "2021-12-14T22:01:13Z")

</div>

As the error says, library can not find your NodeJs installation from the %PATH%. If you run `node --version` from command line you should also see an error.

---

<div class="post-metadata">

### Author: ![JoostW](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/joostw/32/3778_2.png) [@JoostW](https://forum.robotframework.org/u/JoostW)
#### Post date: [15 December 2021 08:17 UTC](https://forum.robotframework.org/t/issue-with-initializing-library-browser-with-no-arguments-failed/2950/3 "2021-12-15T08:17:47Z")

</div>

I have already checked this, see below the vers. and the location.  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/2/2398652175f17b5ab51f3e113371a370d753aaed.png)

---

<div class="post-metadata">

### Author: ![JoostW](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/joostw/32/3778_2.png) [@JoostW](https://forum.robotframework.org/u/JoostW)
#### Post date: [15 December 2021 11:53 UTC](https://forum.robotframework.org/t/issue-with-initializing-library-browser-with-no-arguments-failed/2950/4 "2021-12-15T11:53:19Z")

</div>

Got it resolved. The PATH was not correct in the environment variables.

---

<div class="post-metadata">

### Author: ![marlonizag](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/marlonizag/32/910_2.png) [@marlonizag](https://forum.robotframework.org/u/marlonizag)
#### Post date: [17 August 2022 15:05 UTC](https://forum.robotframework.org/t/issue-with-initializing-library-browser-with-no-arguments-failed/2950/5 "2022-08-17T15:05:45Z")

</div>

@JoostW Can you share what PATH you used?

I went through the same 4 steps you posted. I just recently upgraded PyCharm to 2022.2 which unfortunately no longer supports Robot Framework Support plugin and had to switch to Robot Framework Language Server

I am getting the same error:  
Unresolved library: Browser. Error generating libspec: Initializing library ‘Browser’ with no arguments failed: Couldn’t execute node. Please ensure you have node.js installed and in PATH. See [https://nodejs.org/](https://nodejs.org/) for instructions. Original error is [Errno 2] No such file or directory: ‘node’

environment:  
PyCharm 2022.2  
node --version —\> v16.9.1  
robotframework 5.0.1  
robotframework-browser 13.4.0  
I am using a virtual environment which is the path I am using for Language Server Python

 ![Screen Shot 2022-08-17 at 11.00.21 AM](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/e/e1845d06c6ca6c06882d7111aecbc7d6bf799524.png)

---

<div class="post-metadata">

### Author: ![JoostW](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/joostw/32/3778_2.png) [@JoostW](https://forum.robotframework.org/u/JoostW)
#### Post date: [18 August 2022 13:17 UTC](https://forum.robotframework.org/t/issue-with-initializing-library-browser-with-no-arguments-failed/2950/6 "2022-08-18T13:17:13Z")

</div>

@marlonizag,

The PATH i used in the “Environmentvariables” setting is:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/d/d0553b297823bbc4ec68b57745144cf8e321d676.png)

Environment:  
Pycharm 2022.1.4  
node vers: v16.13.1  
robotframework: 5.0.1  
robotframework-browser: 13.4.0
