|  | @@ -44,6 +44,10 @@ NPM_VERSION='4.0.5'
 | 
	
		
			
			| 44 | 44 |  NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps
 | 
	
		
			
			| 45 | 45 |  
 | 
	
		
			
			| 46 | 46 |  function mesh_install_nodejs {
 | 
	
		
			
			|  | 47 | +    # Note: this has to be jessie for now
 | 
	
		
			
			|  | 48 | +    echo "deb https://deb.nodesource.com/node_6.x jessie main" > ${rootdir}/etc/apt/sources.list.d/nodesource.list
 | 
	
		
			
			|  | 49 | +    echo "deb-src https://deb.nodesource.com/node_6.x jessie main" >> ${rootdir}/etc/apt/sources.list.d/nodesource.list
 | 
	
		
			
			|  | 50 | +    chroot "${rootdir}" apt-get update
 | 
	
		
			
			| 47 | 51 |      chroot "${rootdir}" apt-get -yq install nodejs curl
 | 
	
		
			
			| 48 | 52 |  
 | 
	
		
			
			| 49 | 53 |      if [ ! -f ${rootdir}/usr/bin/nodejs ]; then
 | 
	
	
		
			
			|  | @@ -136,8 +140,12 @@ function install_nodejs {
 | 
	
		
			
			| 136 | 140 |          return
 | 
	
		
			
			| 137 | 141 |      fi
 | 
	
		
			
			| 138 | 142 |  
 | 
	
		
			
			| 139 |  | -    apt-get -yq install nodejs
 | 
	
		
			
			| 140 |  | -    apt-get -yq install npm curl
 | 
	
		
			
			|  | 143 | +    # Note: this has to be jessie for now
 | 
	
		
			
			|  | 144 | +    echo "deb https://deb.nodesource.com/node_6.x jessie main" > /etc/apt/sources.list.d/nodesource.list
 | 
	
		
			
			|  | 145 | +    echo "deb-src https://deb.nodesource.com/node_6.x jessie main" >> /etc/apt/sources.list.d/nodesource.list
 | 
	
		
			
			|  | 146 | +
 | 
	
		
			
			|  | 147 | +    apt-get update
 | 
	
		
			
			|  | 148 | +    apt-get -yq install nodejs curl
 | 
	
		
			
			| 141 | 149 |  
 | 
	
		
			
			| 142 | 150 |      if [ ! -f /usr/bin/nodejs ]; then
 | 
	
		
			
			| 143 | 151 |          echo $'nodejs was not installed'
 |