Skip to content

onc-healthit/site-ui

Repository files navigation

Support

GitHub Issues are not used to manage issues for this repository. Please report any issues you may have on the ETT Google Group. Our technical team will address all questions there. Thank you.

SiteUi

This project was generated with angular-cli version 1.0.0-beta.20-4.

Current versions

At the time of writing, this is the versions of Node and Angular CLI most recently used to setup Site UI. Other versions may cause a variety of errors, which may be documented in the troubleshooting section.

Node 8.9.5

Angular CLI 1.7.4

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Deploying to Github Pages

Run ng github-pages:deploy to deploy to Github Pages.

Troubleshooting

Problem

To fix this error when running npm install:

image

Potential Solution

Ensure the right version of Angular CLI is installed: npm install -g @angular/[email protected]

Problem

To fix an error like the following when running ng serve:

image

Potential Solution

Try this

npm install --save-dev @types/[email protected] (Or whatever node version is used)

Problem

Another potential error when running ng serve is the following:

image

Potential Solution

This happens because your Angular CLI version and Node JS version are not compatible, a helpful compatibility table can be found here:

https://stackoverflow.com/questions/60248452/is-there-a-compatibility-list-for-angular-angular-cli-and-node-js

Problem

Npm install gets stuck

C:\Github\site-ui>npm install -g @angular/[email protected] [..................] / normalizeTree: sill install loadCurrentTree

Potential Solution

This happens because you have an incompatible version of Node. Try a different version. (8.9.5 at the time of writing)

Problem

When attempting to npm install, after a while, an error appears. The message is very long, this is the end of it:

image

Potential Solution

This also happens because you have an incompatible version of Node. Try a different version. (8.9.5 at the time of writing)

Further help

To get more help on the angular-cli use ng --help or go check out the Angular-CLI README.