Category: node.js

Install a node workstation with nvm 0

Install a node workstation with nvm

1 NVM 1.1 Install nvm $> curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash $> export NVM_DIR="$HOME/.nvm" $> [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm 1.2 Verify it has installed $> command -v nvm If not,...

Node.js reloading modules solution 0

Node.js reloading modules solution

In node.js, if you make change to a module's exported variable, the changes will not propagate to another module that already imported it. So what solution can we do to go around this "caching"...

Resolving 502 Bad Gateway on bbb server 0

Resolving 502 Bad Gateway on bbb server

Well there can be multiple reasons for this error. But in my node.js development with mongoDB, this always occurs when mongoDB could not be started. The solution was always to cleanup old mongod.lock files....