Skip to content

Commit fb1a837

Browse files
committed
New: Install node via nvs and use windows-build-tools
* Use `nvs` to install LTS and latest version of node. * Install `windows-build-tools` instead of independent packages for building node binary packages. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ref: microsoft#46
1 parent 725c4da commit fb1a837

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

dev_web_nodejs.ps1

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,16 @@ choco install -y inconsolata
3838
# choco install -y ubuntu.font
3939

4040
#--- Tools ---
41-
choco install -y nodejs-lts # Node.js LTS, Recommended for most users
42-
# choco install -y nodejs # Node.js Current, Latest features
43-
choco install -y visualstudio2017buildtools
44-
choco install -y visualstudio2017-workload-vctools
41+
choco install -y nvs
42+
refreshenv
43+
nvs install latest
44+
nvs install lst
45+
nvs link lts
46+
npm install -g windows-build-tools
47+
4548
choco install -y sysinternals
4649
choco install -y docker-for-windows
47-
choco install -y python2 # Node.js requires Python 2 to build native modules
50+
# choco install -y python2 # Node.js requires Python 2 to build native modules
4851

4952
Enable-UAC
5053
Enable-MicrosoftUpdate

0 commit comments

Comments
 (0)