I use CLI to run command npm build
but it is not working
Asked
Active
Viewed 307 times
0
-
your project is created by angular cli ? – Chandru Oct 06 '17 at 13:58
-
use **ng build** instead of npm build – Chandru Oct 06 '17 at 13:58
-
refer this link https://stackoverflow.com/questions/37991556/ng-is-not-recognized-as-an-internal-or-external-command – Chandru Oct 06 '17 at 14:01
1 Answers
0
Use ng build --prod instead of npm build

Chandru
- 10,864
- 6
- 38
- 53
-
error:- 'ng' is not recognized as an internal or external command, operable program or batch file. – Tarang NSquareIT Oct 06 '17 at 14:02
-
Either you haven't installed the CLI globally or you haven't added your NPM home dir to your PATH? – Chandru Oct 06 '17 at 14:05