Switch Nodejs Versions Easily

This is how you can switch NodeJS version to a different version (might be an earlier version if plugins/modules aren’t working with your current version of Node.js) # see more about nvm: https://github.com/creationix/nvm # added bonus: gives you the opportunity to switch node versions   # install nvm curl https://raw.github.com/creationix/nvm/master/install.sh | sh   # reload …

Installing NodeJS on Linux Without using Sudo

Installing NodeJS on Linux Without using Sudo. There a few different ways you can install node. “Software that you compile yourself should not go into /usr, it should go into your home directory. This is part of being a software developer.” # take ownership of the folders that npm/node use # please don’t do this …

Local Npm module grunt not found

Seeing this error: Local Npm module grunt not found? "devDependencies": { "grunt-contrib-watch": "", "grunt-contrib-clean": "", "grunt-contrib-jshint": "", "grunt-contrib-connect": "~0.3.0", "grunt-mocha-test": "", "grunt-nodemon": "", "grunt-docular": "", "matchdep": "", "mocha": "", "should": "", "sinon": "", "karma": "", "supertest": "", "grunt-concurrent": "~0.3.0", "grunt-exec": "~0.4.2" } Fix: grunt install dev dependencies npm install check all your dev dependencies are …

dev dependencies not installed

“dev dependencies not installed”. I came across this problem when trying to setup the database using grunt. As you can see the dev dependencies are listed but somehow not installing. http://package.json.nodejitsu.com/ According to the docs npm install should also install the devDependencies. So I tried to run the install again. That seemed to fix it. …

password authentication failed for user postgres

Having problems connecting the postgres database? Do a credentials check! User postgres with empty (no) password. User postgres is Owner of db. Local config Node Path NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript:/usr/lib/node_modules/projectname/src/ You cannot have an empty password with postgres. You cannot have an empty password with postgres. Adding a password to config, now it should work. If your postgress …

EADDRINUSE error killed

Node.js EADDRINUSE error killed. Troubleshooting error error when running ‘grunt server’. It might be that your previous node server was close unexpectedly and the processes are still running. To find out the process id’s: ps aux | grep node Then kill them: kill -9 PID Doing the -9 on kill sends a SIGKILL (instead of …