Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.75 KB

node_npm_requirements.md

File metadata and controls

61 lines (42 loc) · 1.75 KB

Node & NPM Setup

Pre-requisites

Run the utility file at the root of this repo called 'developer_install_prerequisites.sh'

.\developer_install_prerequisites.sh

This will take care of installing the basic tools and prerequisites needed for EAO EPIC Eagle

  • Make sure to restart your shell before continuing then verify asdf installed
  • If it did not install follow manual install instructions at WindowsReadme.md
asdf install nodejs x.xx.x

Then run the following commands every time you need to switch npm versions in a project.

asdf reshim nodejs
npm i -g yarn
yarn install

Install Node.js

Includes npm... Just use default settings.

Verify the Installation

npm ls -g --depth=0

Uninstall Older Node (if needed)

  1. Uninstall all global packages: npm uninstall -g <package>
  2. Uninstall Node.js
  3. Delete C:\Users\{user}\AppData\Roaming\npm
  4. Delete C:\Users\{user}\AppData\Roaming\npm-cache
  5. Delete C:\Users\{user}\AppData\Local\Temp\npm-*
  6. Reboot
  7. Install Node.js

Install Packages

  1. Install Angular CLI: npm i -g @angular/[email protected]
  2. Install Yarn: npm i -g yarn
  3. Install TSLint: npm i -g tslint
  4. Install TypeScript (needed for Webpack): npm i -g typescript@'>=2.1.0 <2.4.0'

Verify Package Installation

  • Angular CLI 6.2.1 (run npm ls -g @angular/cli --depth=0 to verify)
  • Yarn 1.10.1 or greater (run yarn -v to verify)
  • TSLint 5.11.0 or greater (run tslint -v to verify)
  • TypeScript 2.3.4 (for webpack) (run npm ls -g typescript --depth=0 to verify)