|  | @@ -128,6 +128,13 @@ function mesh_install_nodejs {
 | 
	
		
			
			| 128 | 128 |      $mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION}
 | 
	
		
			
			| 129 | 129 |      cp $rootdir/root/npm $rootdir/usr/bin/npm
 | 
	
		
			
			| 130 | 130 |  
 | 
	
		
			
			|  | 131 | +    # deliberate second install of npm
 | 
	
		
			
			|  | 132 | +    $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save
 | 
	
		
			
			|  | 133 | +    if [ -f $rootdir/usr/local/bin/npm ]; then
 | 
	
		
			
			|  | 134 | +        cp $rootdir/usr/local/bin/npm /usr/bin/npm
 | 
	
		
			
			|  | 135 | +    fi
 | 
	
		
			
			|  | 136 | +    cp $rootdir/usr/bin/npm $rootdir/root/npm
 | 
	
		
			
			|  | 137 | +
 | 
	
		
			
			| 131 | 138 |      # check the version numbers
 | 
	
		
			
			| 132 | 139 |      cat <<EOF > $rootdir/usr/bin/test_nodejs_install
 | 
	
		
			
			| 133 | 140 |  #!/bin/bash
 |