Web AppBuilder Offline Installation Issues

113
2
a week ago
PaulJohns
Occasional Contributor

I’m trying to install the ArcGIS Web AppBuilder Developer Edition, but I’m having trouble configuring the installation wizard. My portal doesn’t have internet access, so it needs to be a local installation. When I run the "startup.bat" file for ArcGIS Web AppBuilder, the installation cannot complete successfully. I get an error: "Unavailable download for 'https://js.arcgis.com/3.46/init.js'." This indicates that the installation wizard is trying to access the internet, causing the installation to fail.

I’ve also checked the local JavaScript (JS) library after installing ArcGIS Enterprise 11.2, and it includes version 4.0. I confirmed that the "init.js" file is available, and I can successfully access the JS API through a web browser.

Could anyone help me configure the Web AppBuilder installation to use the local JS API library instead of downloading it from the internet?

Thank you!

2 Replies
TimWestern
MVP

It has been a while since I did a clean WAB Install, I don't remember needing to run for example npm install because of how WebAppBuilder works.

this page: https://enterprise.arcgis.com/en/portal/10.9.1/administer/windows/configure-a-disconnected-deploymen....

suggests downloading an offline or local hosted version of the ArcGIS API for Javascript for use with the dev edition

(It points here https://developers.arcgis.com/javascript/3/jshelp/intro_accessapi.html)

TimWestern_0-1752150441009.png





I'm not sure how well that works if you don't have in that zone an arcgis server of some kind to talk to however.



0 Kudos
PaulJohns
Occasional Contributor

Hi TimWestern,
Thank you for your assistance. I have resolved my problem. Maybe my short description here will help someone.

  1. Anyway, after portal installation, you already have a local JS library, normally at C:\Program Files\ArcGIS\Portal\framework\jsapi. The most complete library is jsapiCompact.
  2. After placing the Web AppBuilder installation folder on the C drive, you need to change the path in env.js to your local init.js, as shown in my example:
    javascript
     
     
  3. You need to configure config.js in the server folder and add authorization information, as shown in my example:
    {
    "portalUrl": "YOURCOMP.YOUR_DOMAIN:7443/arcgis",
    "appId": "YOUR_ID",
    "token": "YOUR_TOKEN",
    }
     
     
  4. After running start.bat, update the browser address bar as follows:

Enjoy! 🙂



0 Kudos