nvm is not compatible with the npm config “prefix” option:

Delete and Reset the prefix Note: Change the version number with the one indicated in the error message. nvm is not compatible with the npm config “prefix” option: currently set to “/usr/local” Run “npm config delete prefix” or “nvm use –delete-prefix v6.11.1 –silent” to unset it. Credits to @gabfiocchi on Github – “You need to overwrite … Read more

Cannot access mongodb through browser – It looks like you are trying to access MongoDB over HTTP on the native driver port

18 I open terminal and enter the following commands which then outputs I open another terminal and enter which open the mongo shell and prompts for mongo commands, but when I go to localhost/27017 I receive the following message: I created a simple nodejs application using express and when I POST data it seems the … Read more

ode.js vs. meteor.js what’s the difference?

A loose analogy is, “Meteor is to Node as Rails is to Ruby.” It’s a large, opinionated framework that uses Node on the server. Node itself is just a low-level framework providing functions for sending and receiving HTTP requests and performing other I/O. Meteor is radically ambitious: By default, every page it serves is actually … Read more

Nodejs – Redirect url

The logic of determining a “wrong” url is specific to your application. It could be a simple file not found error or something else if you are doing a RESTful app. Once you’ve figured that out, sending a redirect is as simple as: