Changes

From SME Server
Jump to navigationJump to search
914 bytes added ,  17:43, 14 December 2016
Line 336: Line 336:  
  db.rocketchat_settings.update({"_id" : "From_Email"}, {$set: {"value":"admin@yourdomain.com"}})
 
  db.rocketchat_settings.update({"_id" : "From_Email"}, {$set: {"value":"admin@yourdomain.com"}})
 
  db.rocketchat_settings.update({"_id" : "SMTP_Host"}, {$set: {"value":"mail.yourdomain.com"}})
 
  db.rocketchat_settings.update({"_id" : "SMTP_Host"}, {$set: {"value":"mail.yourdomain.com"}})
 +
 +
==Node usage==
 +
 +
Use n, an extremely simple Node version manager that can be installed via npm.
 +
 +
Say you want Node.js v0.10.x to build Atom.
 +
 +
npm install -g n  # Install n globally
 +
n 0.10.33          # Install and use v0.10.33
 +
 +
Usage:
 +
n                            # Output versions installed
 +
n latest                    # Install or activate the latest node release
 +
n stable                    # Install or activate the latest stable node release
 +
n <version>                  # Install node <version>
 +
n use <version> [args ...]  # Execute node <version> with [args ...]
 +
n bin <version>              # Output bin path for <version>
 +
n rm <version ...>          # Remove the given version(s)
 +
n --latest                  # Output the latest node version available
 +
n --stable                  # Output the latest stable node version available
 +
n ls                        # Output the versions of node available

Navigation menu