Skip to content

Instantly share code, notes, and snippets.

@christofluethi
Last active August 9, 2018 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christofluethi/49113c60d2b644b01e8db6cb568c23bc to your computer and use it in GitHub Desktop.
Save christofluethi/49113c60d2b644b01e8db6cb568c23bc to your computer and use it in GitHub Desktop.
node-installation

Installation of NodeJs, npm, TypeScript, AngularJS, @angular/cli on Windows 7 Professional SP 1 64-bit:

Since I have found many valuable hints scattered on various posts only after 'painful' search, here a compact compilation (not my ideas but my experience). Hope it helps. install Node.js Windows Installer 64-bit: https://nodejs.org/en/download/ Set npm directory for packages (npm 3.10.10 comes with Node.js but we'll update it later):

npm config set registry https://registry.npmjs.org/

Update npm to the latest version:

npm install npm@latest -g

Beware: npm update only works with the HTTPS-variant (registry https://registry.npmjs.org/). With the HTTP-setting (see below) you earn "shasum check failed".

Set npm directory for packages to the non-HTTPS-variant:

npm config set registry http://registry.npmjs.org/

Reason: the https-variant, which was necessary to update npm itself, does'nt work for all packages, e.g. @angular/cli@latest or angular-cli or typescript@latest either.

Install TypeScript:

npm install -g typescript@latest

Install AngularJS:

npm install angular (my version: 1.6.5)

https://angular.io/guide/quickstart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment