我追隨者安裝MEAN堆棧應用程序的每條指令。嘗試運行意味着堆棧時未處理的「錯誤」事件
在這一切我跑grunt
,當我去http://localhost:3000
我得到以下錯誤末尾:
Running "clean:0" (clean) task
Running "jshint:all" (jshint) task
>> 47 files lint free.
Running "csslint:src" (csslint) task
>> 5 files lint free.
Running "concurrent:tasks" (concurrent) task
Running "nodemon:dev" (nodemon) task
Running "watch" task
Waiting...
[nodemon] v1.0.20
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node --debug server.js`
debugger listening on port 5858
Mongoose: packages.findOne({ name: 'config' }) { fields: undefined }
3000
Mean app started on port 3000 (development)
Mongoose: users.ensureIndex({ email: 1 }) { safe: undefined, background: true, unique: true }
Mongoose: users.ensureIndex({ username: 1 }) { safe: undefined, background: true, unique: true }
GET/304 41.185 ms - -
events.js:72
throw er; // Unhandled 'error' event
^
Error: ENOENT, open '/var/www/finnviz/bower_components/bootstrap/dist/css/bootstrap.css'
[nodemon] app crashed - waiting for file changes before starting...
我搜查,發現this answer,但這似乎並沒有這樣的情況,當我運行ps aux | grep node
我沒有得到任何正在運行的進程:
trufa 14763 0.0 0.0 23492 956 pts/14 S+ 15:39 0:00 grep --color=auto node
我經歷了很多答案搜查,但似乎都不適用。有些人建議change the port。我試過了,錯誤是一樣的。
有關如何進行的任何建議?
我給它一個嘗試,回來給你,謝謝運行另一臺服務器! – Trufa 2014-09-25 15:27:01
謝謝你解決了這個問題。 – Trufa 2014-09-25 17:19:20