| 
				
			 | 
			
			
				@@ -150,6 +150,9 @@ function mesh_install_nodejs { 
			 | 
		
	
		
			
			| 
				150
			 | 
			
				150
			 | 
			
			
				     fi 
			 | 
		
	
		
			
			| 
				151
			 | 
			
				151
			 | 
			
			
				     cp "$rootdir/usr/bin/npm" "$rootdir/root/npm" 
			 | 
		
	
		
			
			| 
				152
			 | 
			
				152
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				153
			 | 
			
			
				+    # TEST 
			 | 
		
	
		
			
			| 
				
			 | 
			
				154
			 | 
			
			
				+    grep -r "require('os').cpus().length" "$rootdir/.npm-global/lib/node_modules"/* 
			 | 
		
	
		
			
			| 
				
			 | 
			
				155
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				153
			 | 
			
				156
			 | 
			
			
				     # deliberately called again 
			 | 
		
	
		
			
			| 
				154
			 | 
			
				157
			 | 
			
			
				     nodejs_fix_cpu_detection 
			 | 
		
	
		
			
			| 
				155
			 | 
			
				158
			 | 
			
			
				  
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -158,8 +161,6 @@ function mesh_install_nodejs { 
			 | 
		
	
		
			
			| 
				158
			 | 
			
				161
			 | 
			
			
				     $mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION} 
			 | 
		
	
		
			
			| 
				159
			 | 
			
				162
			 | 
			
			
				     cp "$rootdir/root/npm" "$rootdir/usr/bin/npm" 
			 | 
		
	
		
			
			| 
				160
			 | 
			
				163
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				161
			 | 
			
				
			 | 
			
			
				-    # TEST 
			 | 
		
	
		
			
			| 
				162
			 | 
			
				
			 | 
			
			
				-    grep -r "require('os').cpus().length" "$rootdir/.npm-global/lib/node_modules/npm"/* 
			 | 
		
	
		
			
			| 
				163
			 | 
			
				164
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				164
			 | 
			
				165
			 | 
			
			
				     # deliberate second install of npm 
			 | 
		
	
		
			
			| 
				165
			 | 
			
				166
			 | 
			
			
				     $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save 
			 |