2017-05-14 54 views
0

我已經下載anuglar2快速入門從這裏開始: https://github.com/angular/quickstart角快速啓動應用程序墜毀在Heroku

它工作在本地主機上,但是當我推在Heroku它給我的錯誤: Application error

到底哪裏出問題了在Heroku上使用angular2快速入門?

這裏是heorku管理日誌細節:

2017-05-14T15:13:16.400648+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via: 
2017-05-14T15:13:16.400445+00:00 app[web.1]: npm ERR!  npm bugs angular-quickstart 
2017-05-14T15:13:16.400839+00:00 app[web.1]: npm ERR!  npm owner ls angular-quickstart 
2017-05-14T15:13:16.401036+00:00 app[web.1]: npm ERR! There is likely additional logging output above. 
2017-05-14T15:13:16.406429+00:00 app[web.1]: 
2017-05-14T15:13:16.406738+00:00 app[web.1]: npm ERR! Please include the following file with any support request: 
2017-05-14T15:13:16.406911+00:00 app[web.1]: npm ERR!  /app/npm-debug.log 
2017-05-14T15:13:16.501756+00:00 heroku[web.1]: State changed from starting to crashed 
2017-05-14T15:13:16.486330+00:00 heroku[web.1]: Process exited with status 1 
+0

這個問題仍然是開放的新的答案,因爲我不能上運行的角度快速啓動應用程序Heroku的。 –

回答

1

在systemjs.config作爲

paths: { 
     // paths serve as alias 
     'npm:': 'https://unpkg.com/' 
    }, 
+0

嗨,謝謝,仍然收到錯誤,那麼systemjs.config的其他部分呢?像 ''我們的應用程序在應用程序文件夾中 'app':'app', ... ' –

+0

npm版本是:'3.10.10'我已經檢查過heroku應用程序控制臺,是它好嗎? –