Top "Express" questions

Express is a minimal and flexible Node.

TypeError: Router.use() requires middleware function but got a Object

There have been some middleware changes on the new version of express and I have made some changes in my …

javascript node.js express
Node.js global variables

I asked here: Does Node.js require inheritance? And I was told that I can set variables to the global …

javascript node.js express
ExpressJS - throw er Unhandled error event

I created expressjs application using the following commands: express -e folderName npm install ejs --save npm install When I run …

node.js express npm
Avoid "current URL string parser is deprecated" warning by setting useNewUrlParser to true

I have a database wrapper class that establishes a connection to some MongoDB instance: async connect(connectionString: string): Promise<…

node.js mongodb typescript express mongoose
How to redirect 404 errors to a page in ExpressJS?

I don't know a function for doing this, does anyone know of one?

node.js express
How to update a record using sequelize for node?

I'm creating a RESTful API with NodeJS, express, express-resource, and Sequelize that is used to manage datasets stored in a …

mysql node.js express sequelize.js
NodeJS: How to get the server's port?

You often see example hello world code for Node that creates an Http Server, starts listening on a port, then …

javascript node.js express port
How to generate unique ID with node.js

function generate(count) { var founded = false, _sym = 'abcdefghijklmnopqrstuvwxyz1234567890', str = ''; while(!founded) { for(var i = 0; i < count; i++) { …

javascript node.js express
Error: No default engine was specified and no extension was provided

I am working through setting up a http server using node.js and engine. However, I keep running into issues …

node.js http express
Push items into mongo array via mongoose

I've scoured SO a good bit looking for the answer but I'm sure that I'm lost for the right words …

node.js mongodb express mongoose