Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Angular 4 app

Tags:

angular

am using https://www.youtube.com/watch?v=nxV3weqMzYo this video for deploying my angular 2 app in live but its gives below error

D:\selva\backup\ticketing>ngh
An error occurred!
 Error: Unspecified error (run without silent option for detail)
    at C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-ghpages\node_
modules\gh-pages\lib\index.js:232:19
    at _rejected (C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-gh
pages\node_modules\q\q.js:844:24)
    at C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-ghpages\node_
modules\q\q.js:870:30
    at Promise.when (C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli
-ghpages\node_modules\q\q.js:1122:31)
    at Promise.promise.promiseDispatch (C:\Users\selva\AppData\Roaming\npm\node_
modules\angular-cli-ghpages\node_modules\q\q.js:788:41)
    at C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-ghpages\node_
modules\q\q.js:604:44
    at runSingle (C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-gh
pages\node_modules\q\q.js:137:13)
    at flush (C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-ghpage
s\node_modules\q\q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

please help me to rectify this error

expected behavior: deploying ticketing project to github pages

steps which i did

step 1: ng-build --prod

step 2: pushed all files to github including node_modules and dist folder

Here i have cleared all data's in ".gitignore" file to upload all project data to github account (including node_modules and dist folder)

step 3: ng-build --prod --base-href https://selva1990kumar.github.io/ticketing/

step 4:ngh

IT PRODUCE THIS ERROR

An error occurred!
 Error: Unspecified error (run without silent option for detail)
    at C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-ghpages\node_
modules\gh-pages\lib\index.js:232:19
    at _rejected (C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-gh
pages\node_modules\q\q.js:844:24)
    at C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-ghpages\node_
modules\q\q.js:870:30
    at Promise.when (C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli
-ghpages\node_modules\q\q.js:1122:31)
    at Promise.promise.promiseDispatch (C:\Users\selva\AppData\Roaming\npm\node_
modules\angular-cli-ghpages\node_modules\q\q.js:788:41)
    at C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-ghpages\node_
modules\q\q.js:604:44
    at runSingle (C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-gh
pages\node_modules\q\q.js:137:13)
    at flush (C:\Users\selva\AppData\Roaming\npm\node_modules\angular-cli-ghpage
s\node_modules\q\q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

enter image description here

like image 346
selva Avatar asked Jun 09 '17 13:06

selva


1 Answers

First of all run this to get detailed info

ngh --no-silent

Then if you get an error like this

message: '\n*** Please tell me who you are

Just Run :

git config --global user.email "[email protected]"

And This :

git config --global user.name "Github User Name"

And Finally :

ngh

Check Here For More Info

like image 156
Chinedu Etoh Avatar answered Oct 12 '22 03:10

Chinedu Etoh