(node:63208) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead

The issue is that mongoose still uses collection.ensureIndex and should be updated by them in the near future. To get rid of the message you can downgrade by using version 5.2.8 in your package.json (and delete any caches, last resort is to uninstall it the install it with npm install [email protected]): “mongoose”: “^5.2.8” EDIT: As of this edit, Mongoose … Read more

First Heroku deploy failed `error code=H10`

Found solution for me here: Heroku + node.js error (Web process failed to bind to $PORT within 60 seconds of launch) In my case my app crashed because I was hard setting the PORT, instead of using the port that heroku dinamicaly sets, which can be accessed with process.env.PORT

Error: Cannot find module ‘ejs’

I had this exact same problem a couple of days ago and couldn’t figure it out. Haven’t managed to fix the problem properly but this works as a temporary fix: Go up one level (above app.js) and do npm install ejs. It will create a new node_modules folder and Express should find the module then.

What is Procfile? and Web and Worker

Procfile is a mechanism for declaring what commands are run by your application’s dynos on the Heroku platform. From Process Types and the Procfile, which is a good introduction, but basically you use the Procfile to tell Heroku how to run various pieces of your app. The part to the left of the colon on each … Read more

What is Procfile? and Web and Worker

Procfile is a mechanism for declaring what commands are run by your application’s dynos on the Heroku platform. From Process Types and the Procfile, which is a good introduction, but basically you use the Procfile to tell Heroku how to run various pieces of your app. The part to the left of the colon on each … Read more

How do I uninstall a package installed using npm link?

The package can be uninstalled using the same uninstall or rm command that can be used for removing installed packages. The only thing to keep in mind is that the link needs to be uninstalled globally – the –global flag needs to be provided. In order to uninstall the globally linked foo package, the following command can be used (using sudo if necessary, depending on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)