Better debug logging and setting node/npm file permissions to 755