1
我從角度類非常非常不穩定或僅就我如何使用它找到啓動程序回購。我的代碼工作在本地打相同的服務作爲遠程但我得到了下面angular2通用是非常不穩定的 - [nodemon]應用程序崩潰 - 在啓動之前等待文件更改
我遵循的規則
npm run build
npm start
半點差錯,我得到了下面:
'Hash: 51619e5be8128fe9ed97eb75ce5c5bacf4f02ce1
Version: webpack 2.1.0-beta.22
Child
Hash: 51619e5be8128fe9ed97
Version: webpack 2.1.0-beta.22
Time: 18736ms
Asset Size Chunks Chunk Names
index.js 3.57 MB 0 [emitted] main
[320] ./src async 160 bytes {0} [built]
+ 544 hidden modules
Child
Hash: eb75ce5c5bacf4f02ce1
Version: webpack 2.1.0-beta.22
Time: 11670ms
Asset Size Chunks Chunk Names
index.js 33.5 kB 0 [emitted] main
+ 28 hidden modules
> [email protected] start /var/test-starter
> npm run server
> [email protected] server /var/test-starter
> nodemon dist/server/index.js
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /var/test-starter/dist/**/* src/index.html
[nodemon] starting `node dist/server/index.js`
Listening on: http://localhost:3000
EXCEPTION: Response with status: 200 Ok for URL: null
/var/test-starter/node_modules/zone.js/dist/zone-node.js:140
throw error;
^
Response with status: 200 Ok for URL: null
[nodemon] app crashed - waiting for file changes before starting...
哪有這個失事服務器?我必須殺死並重新啓動。
我使用angular2 n生產沒有問題。 angular2通用相當有問題。
如何優雅地解決?或者我沒有正確地投入生產?