From 0d7d007ea08be84d9a992f9ccf00c5e40c851dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reis?= Date: Wed, 25 Apr 2018 17:48:07 +0100 Subject: [PATCH 1/4] Change Node.js default to LTS Fixes: https://github.com/Microsoft/windows-dev-box-setup-scripts/issues/12 --- dev_web_nodejs.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev_web_nodejs.ps1 b/dev_web_nodejs.ps1 index de22b53..7ac7bb6 100644 --- a/dev_web_nodejs.ps1 +++ b/dev_web_nodejs.ps1 @@ -32,7 +32,8 @@ choco install inconsolata -y choco install ubuntu.font -y #--- Tools --- -choco install nodejs -y +choco install nodejs-lts -y # Node.js LTS, Recommended for most users +# choco install nodejs -y # Node.js Current, Latest features choco install sysinternals -y choco install docker-for-windows choco install python From c0cb66161d2f2eca2d953876fe98343cf689735e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reis?= Date: Wed, 25 Apr 2018 17:48:47 +0100 Subject: [PATCH 2/4] Use Python 2 with Node.js --- dev_web_nodejs.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dev_web_nodejs.ps1 b/dev_web_nodejs.ps1 index 7ac7bb6..6c627ed 100644 --- a/dev_web_nodejs.ps1 +++ b/dev_web_nodejs.ps1 @@ -36,8 +36,7 @@ choco install nodejs-lts -y # Node.js LTS, Recommended for most users # choco install nodejs -y # Node.js Current, Latest features choco install sysinternals -y choco install docker-for-windows -choco install python -choco install python2 # should we remove earlier python? +choco install python2 # Node.js requires Python 2 to build native modules choco install pip choco install easy.install From 7011368e13e4bae0e7479fb2cd05b32ce964794c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reis?= Date: Wed, 25 Apr 2018 16:21:28 +0100 Subject: [PATCH 3/4] Add VS Build Tools to compile Node.js native modules --- dev_web_nodejs.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev_web_nodejs.ps1 b/dev_web_nodejs.ps1 index 6c627ed..5eb2b85 100644 --- a/dev_web_nodejs.ps1 +++ b/dev_web_nodejs.ps1 @@ -34,6 +34,8 @@ choco install ubuntu.font -y #--- Tools --- choco install nodejs-lts -y # Node.js LTS, Recommended for most users # choco install nodejs -y # Node.js Current, Latest features +choco install visualstudio2017buildtools -y +choco install visualstudio2017-workload-vctools -y choco install sysinternals -y choco install docker-for-windows choco install python2 # Node.js requires Python 2 to build native modules From d97c020a43729af5b7ca89ef3d4cfa5a5236cc9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reis?= Date: Wed, 25 Apr 2018 16:46:28 +0100 Subject: [PATCH 4/4] Add -y to all choco install This is useful for running the PowerShell scripts directly. Ref: https://github.com/Microsoft/windows-dev-box-setup-scripts/issues/11 --- dev_web_nodejs.ps1 | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/dev_web_nodejs.ps1 b/dev_web_nodejs.ps1 index 5eb2b85..dc8d969 100644 --- a/dev_web_nodejs.ps1 +++ b/dev_web_nodejs.ps1 @@ -1,4 +1,4 @@ -# Description: Boxstarter Script +# Description: Boxstarter Script # Author: Microsoft # Common dev settings for web development @@ -14,35 +14,34 @@ Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\ Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2 #--- Tools --- -choco install visualstudiocode -y -choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' -y -choco install Git-Credential-Manager-for-Windows -y -choco install 7zip.install -y +choco install -y visualstudiocode +choco install -y git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' +choco install -y Git-Credential-Manager-for-Windows +choco install -y 7zip.install #--- Windows Subsystems/Features --- -choco install Microsoft-Hyper-V-All -source windowsFeatures -choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures +choco install -y Microsoft-Hyper-V-All -source windowsFeatures +choco install -y Microsoft-Windows-Subsystem-Linux -source windowsfeatures #--- Browsers --- -choco install Firefox -y -choco install Googlechrome -y +choco install -y Firefox +choco install -y Googlechrome #--- Fonts --- -choco install inconsolata -y -choco install ubuntu.font -y +choco install -y inconsolata +choco install -y ubuntu.font #--- Tools --- -choco install nodejs-lts -y # Node.js LTS, Recommended for most users -# choco install nodejs -y # Node.js Current, Latest features -choco install visualstudio2017buildtools -y -choco install visualstudio2017-workload-vctools -y -choco install sysinternals -y -choco install docker-for-windows -choco install python2 # Node.js requires Python 2 to build native modules -choco install pip -choco install easy.install +choco install -y nodejs-lts # Node.js LTS, Recommended for most users +# choco install -y nodejs # Node.js Current, Latest features +choco install -y visualstudio2017buildtools +choco install -y visualstudio2017-workload-vctools +choco install -y sysinternals +choco install -y docker-for-windows +choco install -y python2 # Node.js requires Python 2 to build native modules +choco install -y pip +choco install -y easy.install Enable-UAC Enable-MicrosoftUpdate Install-WindowsUpdate -acceptEula -