質問編集履歴
1
2018.3.7 追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -76,6 +76,104 @@
|
|
76
76
|
|
77
77
|
|
78
78
|
|
79
|
+
2018.3.7
|
80
|
+
|
81
|
+
いただいた回答の通り、mongodコマンドを入力してみましたが、未だ解決できず...
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
1.mongod入力
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
2018-03-07T04:55:34.304+0900 I CONTROL [initandlisten] MongoDB starting : pid=663 port=27017 dbpath=/data/db 64-bit host=ICHIHANAMBA.local
|
90
|
+
|
91
|
+
2018-03-07T04:55:34.304+0900 I CONTROL [initandlisten] db version v3.6.2
|
92
|
+
|
93
|
+
2018-03-07T04:55:34.304+0900 I CONTROL [initandlisten] git version: 489d177dbd0f0420a8ca04d39fd78d0a2c539420
|
94
|
+
|
95
|
+
2018-03-07T04:55:34.304+0900 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2n 7 Dec 2017
|
96
|
+
|
97
|
+
2018-03-07T04:55:34.304+0900 I CONTROL [initandlisten] allocator: system
|
98
|
+
|
99
|
+
2018-03-07T04:55:34.304+0900 I CONTROL [initandlisten] modules: none
|
100
|
+
|
101
|
+
2018-03-07T04:55:34.304+0900 I CONTROL [initandlisten] build environment:
|
102
|
+
|
103
|
+
2018-03-07T04:55:34.304+0900 I CONTROL [initandlisten] distarch: x86_64
|
104
|
+
|
105
|
+
2018-03-07T04:55:34.304+0900 I CONTROL [initandlisten] target_arch: x86_64
|
106
|
+
|
107
|
+
2018-03-07T04:55:34.304+0900 I CONTROL [initandlisten] options: {}
|
108
|
+
|
109
|
+
2018-03-07T04:55:34.307+0900 I STORAGE [initandlisten] exception in initAndListen: NonExistentPath: Data directory /data/db not found., terminating
|
110
|
+
|
111
|
+
2018-03-07T04:55:34.307+0900 I CONTROL [initandlisten] now exiting
|
112
|
+
|
113
|
+
2018-03-07T04:55:34.307+0900 I CONTROL [initandlisten] shutting down with code:100
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
2.touch app.js、node app.jsコマンド入力
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
body-parser deprecated bodyParser: use individual json/urlencoded middlewares app.js:34:9
|
122
|
+
|
123
|
+
body-parser deprecated undefined extended: provide extended option node_modules/body-parser/index.js:105:29
|
124
|
+
|
125
|
+
{ MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]
|
126
|
+
|
127
|
+
at Pool.<anonymous> (/Users/miwaichihana/hoge/node_modules/mongodb-core/lib/topologies/server.js:503:11)
|
128
|
+
|
129
|
+
at Pool.emit (events.js:160:13)
|
130
|
+
|
131
|
+
at Connection.<anonymous> (/Users/miwaichihana/hoge/node_modules/mongodb-core/lib/connection/pool.js:326:12)
|
132
|
+
|
133
|
+
at Object.onceWrapper (events.js:255:19)
|
134
|
+
|
135
|
+
at Connection.emit (events.js:160:13)
|
136
|
+
|
137
|
+
at Socket.<anonymous> (/Users/miwaichihana/hoge/node_modules/mongodb-core/lib/connection/connection.js:245:50)
|
138
|
+
|
139
|
+
at Object.onceWrapper (events.js:255:19)
|
140
|
+
|
141
|
+
at Socket.emit (events.js:160:13)
|
142
|
+
|
143
|
+
at emitErrorNT (internal/streams/destroy.js:64:8)
|
144
|
+
|
145
|
+
at process._tickCallback (internal/process/next_tick.js:152:19)
|
146
|
+
|
147
|
+
name: 'MongoNetworkError',
|
148
|
+
|
149
|
+
message: 'failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]' }
|
150
|
+
|
151
|
+
(node:666) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]
|
152
|
+
|
153
|
+
at Pool.<anonymous> (/Users/miwaichihana/hoge/node_modules/mongodb-core/lib/topologies/server.js:503:11)
|
154
|
+
|
155
|
+
at Pool.emit (events.js:160:13)
|
156
|
+
|
157
|
+
at Connection.<anonymous> (/Users/miwaichihana/hoge/node_modules/mongodb-core/lib/connection/pool.js:326:12)
|
158
|
+
|
159
|
+
at Object.onceWrapper (events.js:255:19)
|
160
|
+
|
161
|
+
at Connection.emit (events.js:160:13)
|
162
|
+
|
163
|
+
at Socket.<anonymous> (/Users/miwaichihana/hoge/node_modules/mongodb-core/lib/connection/connection.js:245:50)
|
164
|
+
|
165
|
+
at Object.onceWrapper (events.js:255:19)
|
166
|
+
|
167
|
+
at Socket.emit (events.js:160:13)
|
168
|
+
|
169
|
+
at emitErrorNT (internal/streams/destroy.js:64:8)
|
170
|
+
|
171
|
+
at process._tickCallback (internal/process/next_tick.js:152:19)
|
172
|
+
|
173
|
+
(node:666) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
|
174
|
+
|
175
|
+
(node:666) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
|
176
|
+
|
79
177
|
|
80
178
|
|
81
179
|
```
|