As far as I can tell, WAB 2.0 ships with Node.js version 0.10.33.0. Looks like the latest Node version is 4.4.4. Has anyone tried WAB with that version?
Thomas,
I am running it using 4.2.4 so I would say you will be OK. FYI unless you explicitly change the startup.bat file, wab will always use the packaged version of nodeJS anyway. Here is the change I made to the startup.bat to use my local nodeJS.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: If you want to start nodejs manually with additional parameters, run ::
:: node_x86.exe/node_x64.exe from server directory instead of launching this ::
:: script file. ::
@ECHO OFF
SETLOCAL EnableDelayedExpansion
TITLE Web AppBuilder for ArcGIS
SET serverPath=server
SET serverjsFile=server.js
SET port=3344
SET wabVirtualPath=webappbuilder
SET portTaken=0
IF DEFINED USERDNSDOMAIN (SET FQDN=%COMPUTERNAME%.%USERDNSDOMAIN%) ELSE (SET FQDN=%COMPUTERNAME%)
rem IF DEFINED PROGRAMFILES(X86) (SET nodeFile=node_x64.exe) ELSE (SET nodeFile=node_x86.exe)
SET nodeFile="C:\Program Files\nodejs\node.exe"
Unable to share a lot of details, but running the "un-secure" version of Node.js on workstations that are developing the apps triggered some alarms. The way Node is run with WAB developer it opens a lot of http/https sockets that came to the attention of a scanner. So the issue is not with the app that WAB produces, but with WAB itself.
I am curious nodeJS is used for the Web AppBuilder builder portion and not the viewer portion. So how would these vulnerabilities matter once the app is deployed to your web server?
There are a number of vulnerability issues with older versions of Node.js that we really had no choice but to go to 6.2.0, and quickly. This has been logged with support as BUG-000096647.
Tim,
No advantage that I am aware of. this is just for those developers that are developing against nodeJS already and thus have a version on their machine.
What are the advantages if we use the latest version of Node.js vs the one that shipped with WAB DE 2.0?
Specifically, what UI or WAB behavior changes will occur? will these make it more efficient to the end user and/or the developer?
Looks like WAB runs perfectly happy with Node 6.2.0 as well.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.