I have installed MeanIO on my Ubuntu 16.04.
After doing an npm install in my project directory, I ran gulp. I got this:
Tue, 02 May 2017 10:08:07 GMT cluster MEAN app started on port 3000 (development) with cluster worker id 0
[12:08:09] index.html reloaded.
[12:08:23] jshint: 28 files lint free
Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html
After googling the problem, I added this to my server.js file:
const mongoose = require('mongoose');
mongoose.Promise = Promise;
I have also tried adding this instead:
var mongoose = require('mongoose');
mongoose.Promise = global.Promise;
Now I get this on running gulp:
Tue, 02 May 2017 10:18:07 GMT cluster MEAN app started on port 3000 (development) with cluster worker id 0
[12:18:09] index.html reloaded.
[12:18:20] jshint: 28 files lint free
On going to localhost:3000, it keeps loading forever.
How can I get rid of this?
via trollster
No comments:
Post a Comment