Skip to content

Commit

Permalink
Merge pull request NativeScript#1629 from 000panther/patch-5
Browse files Browse the repository at this point in the history
docs: Added info how to install ngc if it is not found
  • Loading branch information
NickIliev authored Apr 17, 2019
2 parents 890cce7 + e71a721 commit 8e0d975
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/plugins/ensure-plugins-quality.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ In order to ease the process add the following scripts in your `package.json` fi
```
"ngc": "node --max-old-space-size=8192 ./node_modules/.bin/ngc"
```
>**NOTE** In case the ngc command is not found, you need to install it: `npm install @angular/compiler-cli --save-dev`
This script will initiate Ahead of Time (AOT) compilation. The parameter `max-old-space-size` is a workaround to fix heap out of memory errors when running node binaries. It's a common issue when using TypeScript 2.1+ and the Angular compiler (ngc). Check out this issue for more information - https://github.com/angular/angular-cli/issues/5618.

Expand Down

0 comments on commit 8e0d975

Please sign in to comment.