# Getting Set Up | Babylon.js Documentation

**URL:** <https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155>\
**Category:** Questions\
**Created:** [July 14, 2022, 1:55am UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155 "2022-07-14T01:55:57Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [July 14, 2022, 1:55am UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/1 "2022-07-14T01:55:57Z")

</div>

> **[Getting Set Up | Babylon.js Documentation](https://doc.babylonjs.com/guidedLearning/createAGame/gettingSetUp)**
>
> Dive into some deeper game creation methods and techniques.

I was able to get a successful…

npm run build  
npm run start

However, when I tried RUN \> START DEBUGGING (F5), the latest release of Chrome browser gives me the following error, page. Firewall, Antivirus issue?

* * *

**This site can’t be reached**

localhost refused to connect.

Try:

Checking the connection  
Checking the proxy and the firewall

ERR\_CONNECTION\_REFUSED

* * *

I’m guessing it’s probably a simple fix? Anyone with some ideas I can try?

I’m using Visual Studio Code (in a Workspace).

Thanks for any assistance you can share.

_Side note: this broke VSC’s Go Live (button in lower right corner to test in browser) ability when I went with this way of testing Babylon JS 5._

---

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [July 14, 2022, 2:31am UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/2 "2022-07-14T02:31:34Z")

</div>

Update.

This is still an issue. But I was able to test the dist folder of files on our server and it works, showing the default sphere. Also, if I double-click on the index.html file and run it in the default browser it shows properly locally. (or right click and launch it with the go live server, or select index.html and click the Go Live button in the lower right of the IDE, which now works properly, not sure why, but I’ll take it).

---

<div class="post-metadata">

**Author:** ![Moriy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/moriy/32/30563_2.png) [@Moriy](https://forum.babylonjs.com/u/Moriy)\
**Post date:** [July 14, 2022, 3:06am UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/5 "2022-07-14T03:06:41Z")

</div>

Not use newest Chrome!!!  
Turn off automatic update!!!  
I often meet this question (Once a month)

---

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [July 14, 2022, 3:08am UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/6 "2022-07-14T03:08:14Z")

</div>

Thanks @Moriy. I’ve tried it on a handful of browsers. All the same error. Non of them work unfortunately. Thanks your help though.

---

<div class="post-metadata">

**Author:** ![Moriy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/moriy/32/30563_2.png) [@Moriy](https://forum.babylonjs.com/u/Moriy)\
**Post date:** [July 14, 2022, 3:23am UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/7 "2022-07-14T03:23:44Z")

</div>

Oh no, I can’t debug too 😨

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/e/3e03428bf9cb2a7325f94e15f25ea7e99fa5b0a2.png)

---

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [July 14, 2022, 3:40pm UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/8 "2022-07-14T15:40:47Z")

</div>

Same, yes.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [July 14, 2022, 3:46pm UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/9 "2022-07-14T15:46:23Z")

</div>

cc @RaananW

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [July 14, 2022, 5:33pm UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/10 "2022-07-14T17:33:40Z")

</div>

That should not stop you from debugging.  
Is debugging in the browser working?

---

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [July 14, 2022, 5:35pm UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/11 "2022-07-14T17:35:29Z")

</div>

Granted that’s just a Warning. But I’m still not able to debug with the F5, menu option or button on left-top side of VSC when it presents itself.

Same error today. Updated VSC to latest again.

 ![8080 browser error page](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/9/c/9c7ade4656c7abf02e76bf6dbb4c5c9a994e1c73.png)  
 ![launch chrome or other browser debug mode not working](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/5/b5ae6cb781e86870b99402a776f3588b0abce91c.png)

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [July 14, 2022, 6:58pm UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/12 "2022-07-14T18:58:26Z")

</div>

that’s your project setup, not the babylon repository, right?

---

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [July 14, 2022, 7:00pm UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/13 "2022-07-14T19:00:38Z")

</div>

Correct, on my local system. Trying to run it localhost as per the directions on the official website (link in previous post here). Then I sent it to our company server and it worked fine. But the interactive work of debugging is needed. Waiting to build and review is too time intensive for our needs.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [July 14, 2022, 7:05pm UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/14 "2022-07-14T19:05:07Z")

</div>

Does running `npm run start` work? You will need to make sure this task runs as well in order to debug correctly. Did you get this launch configuration somewhere from our docs? I am trying to understand if we explain incorrectly, or you are missing a step.

---

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [July 14, 2022, 7:33pm UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/15 "2022-07-14T19:33:57Z")

</div>

(yes, I went through the official documentation from the link that titles this thread, thanks)

:\BabylonJS\> npm run start

> babylonjs@1.0.0 start  
> webpack-dev-server --port 8080

‘webpack-dev-server’ is not recognized as an internal or external command,  
operable program or batch file.

---

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [July 14, 2022, 7:40pm UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/16 "2022-07-14T19:40:00Z")

</div>

Here’s the entire related console dump after ‘run’ for build and start.

[DRIVE]:\BabylonJS\> npm run build

> babylonjs@1.0.0 build  
> webpack

asset js/bundleName.js 24.5 MiB [compared for emit] (name: main)  
asset index.html 190 bytes [compared for emit]  
runtime modules 891 bytes 4 modules  
modules by path ./node\_modules/@babylonjs/core/ 10.2 MiB 1095 modules  
modules by path ./node\_modules/@babylonjs/gui/ 1.07 MiB  
modules by path ./node\_modules/@babylonjs/gui/3D/ 434 KiB 57 modules  
modules by path ./node\_modules/@babylonjs/gui/2D/ 663 KiB 42 modules  
./node\_modules/@babylonjs/gui/index.js 143 bytes [built] [code generated]  
modules by path ./node\_modules/@babylonjs/materials/ 342 KiB 60 modules  
modules by path ./node\_modules/@babylonjs/loaders/ 449 KiB 49 modules  
modules by path ./node\_modules/@babylonjs/serializers/ 281 KiB 28 modules  
./src/app.ts 1.6 KiB [built] [code generated]  
./node\_modules/@babylonjs/inspector/dist/babylon.inspector.bundle.max.js 4.83 MiB [built] [code generated]  
./node\_modules/tslib/tslib.es6.js 12 KiB [built] [code generated]  
./node\_modules/@babylonjs/gui-editor/dist/babylon.guiEditor.max.js 3.53 MiB [built] [code generated]  
webpack 5.73.0 compiled successfully in 7597 ms  
[DRIVE]:\BabylonJS\> npm run start

> babylonjs@1.0.0 start  
> webpack-dev-server --port 8080

‘webpack-dev-server’ is not recognized as an internal or external command,  
operable program or batch file.  
[DRIVE]:\BabylonJS\>

---

<div class="post-metadata">

**Author:** ![rdw1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rdw1/32/9212_2.png) [@rdw1](https://forum.babylonjs.com/u/rdw1)\
**Post date:** [July 14, 2022, 10:20pm UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/17 "2022-07-14T22:20:34Z")

</div>

It looks like you only ran a regular `npm install` and so the optional packages that are used during development weren’t installed.

Since `webpack-dev-server` isn’t working, you should run `npm install --include=dev` to make sure that the package is present in your `node_modules` folder. This is assuming it’s indeed added as a development dependency and not a regular one (check `devDependencies` in your `package.json`).

Alternatively, you could try `npx webpack-dev-server`, although it shouldn’t be necessary to install it globally.

---

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [July 15, 2022, 12:05am UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/18 "2022-07-15T00:05:37Z")

</div>

Thanks @rdw1, alas, same outcome. I tried all those steps now. back to build, start and…

> babylonjs@1.0.0 start  
> webpack-dev-server --port 8080

‘webpack-dev-server’ is not recognized as an internal or external command,  
operable program or batch file.

ERR\_CONNECTION\_REFUSED

---

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [July 15, 2022, 1:19am UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/19 "2022-07-15T01:19:56Z")

</div>

SUCCESS!  
I’m able to debug now in VSC with ‘F5’ (or menu option).

First I found on a net search and tried.

npx npm install webpack-dev-server --save-dev

I was here reviewing solutions.

> <https://stackoverflow.com/questions/51849282/webpack-dev-server-is-not-recognized-as-an-internal-or-external-command>

I tried

npm install webpack-dev-server --save-dev (again)

But realized this next line and tried it.

npm install -g webpack-dev-server (I thought I had done that before?)

I did a npm run build and then npm run start.

Finally I saw what I was hoping for

> babylonjs@1.0.0 start  
> webpack-dev-server --port 8080

_[webpack-dev-server] Project is running at:  
  [webpack-dev-server] Loopback: [http://localhost:8080/](http://localhost:8080/)… (continued on)._

 

Hit ‘F5’ when I saw 'webpack 5.73.0 compiled successfully in 643 ms (with no command prompt, just a tall rectangle icon, and I was in debug node with the sphere and background showing in the Chrome browser that popped up.

I hope this helps others that may run into this issue.

Thanks to everyone that helped me to work to solve this issue. Team work helped keep me motivated to a solution sooner than later. THANK YOU!

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [July 15, 2022, 6:39am UTC](https://forum.babylonjs.com/t/getting-set-up-babylon-js-documentation/32155/20 "2022-07-15T06:39:56Z")

</div>

Settup link in OPs first post.
