mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	install-node: Fix errors in case node or npm is not installed.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							e84e6aa818
						
					
				
				
					commit
					a55cb919ff
				
			@@ -5,10 +5,7 @@ ZULIP_PATH=$(dirname "$0")
 | 
			
		||||
node_version=6.6.0
 | 
			
		||||
npm_version=3.10.3
 | 
			
		||||
 | 
			
		||||
current_node_version=$(node --version)
 | 
			
		||||
current_npm_version=$(npm --version)
 | 
			
		||||
 | 
			
		||||
if [ "$current_npm_version" = "$npm_version" ] && [ "$current_node_version" = "v$node_version" ]; then
 | 
			
		||||
if [ "$(npm --version)" = "$npm_version" ] && [ "$(node --version)" = "v$node_version" ]; then
 | 
			
		||||
    echo "Node version $node_version and npm version $npm_version are already installed."
 | 
			
		||||
    exit 0
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user