Install a specific version of 
https://askubuntu.com/questions/957439/how-to-install-a-specific-version-of-node-on-ubuntu-server
#ubuntu #linux #nodejs #node #versioin #installation
  
  NODEJS on linux server:https://askubuntu.com/questions/957439/how-to-install-a-specific-version-of-node-on-ubuntu-server
#ubuntu #linux #nodejs #node #versioin #installation
Ask Ubuntu
  
  How to install a Specific Version of Node on Ubuntu Server
  I am trying to install Node 6.11.3 on my Ubuntu Server.
I don't want to use nvm for this.
I have already used this link but it just does not work out while using jenkins and stuff.
I want to
  I don't want to use nvm for this.
I have already used this link but it just does not work out while using jenkins and stuff.
I want to
Install NPM packages from 
Sometimes because of filtering issues you need to download node packages from http so make sure to make it http:
#node #npm #shit #installation #config
  http or https:npm config set registry https://registry.npmjs.org/
Sometimes because of filtering issues you need to download node packages from http so make sure to make it http:
npm config set registry https://registry.npmjs.org/
#node #npm #shit #installation #config
Preventing installation of 
 
In global mode (ie, with
By default, npm install will install all modules listed as dependencies in
With the
#node #npm #package_json #devDependencies #NODE_ENV
  devDependencies node modules:npm install in the package directory installs the dependencies in the local node_modules folder.In global mode (ie, with
-g or --global appended to the command), it installs the current package context (ie, the current working   directory) as a global package.By default, npm install will install all modules listed as dependencies in
package.json.With the
--production flag (or when the NODE_ENV environment variable is set to production`), `npm will not install modules        listed in devDependencies.#node #npm #package_json #devDependencies #NODE_ENV
In 
 
Read more here:
- https://docs.docker.com/engine/swarm/manage-nodes/#update-a-node
The great thing about this labeling is in docker compose file that you can tell docker which server should get deployed on which server (node):
 
 
#docker #node #swarm #label #role
  
  docker swarm mode you can list nodes with docker node ls. If you want to assign a label to each node you can use the below      command to update node labels. For example you can assign a key=value pair like role=storage to one of your node listed with the   first command:docker node update --label-add role=storage YOUR_HOSTNAME
Read more here:
- https://docs.docker.com/engine/swarm/manage-nodes/#update-a-node
The great thing about this labeling is in docker compose file that you can tell docker which server should get deployed on which server (node):
deploy:
replicas: 4
placement:
constraints:
- node.labels.role == storage
NOTE: role is something that we ourselves have been defined. You can define your own as requirements vary.#docker #node #swarm #label #role
Docker Documentation
  
  Manage nodes in a swarm
  Manage existing nodes in a swarm
  