mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Add PREFIX and NPM_CONFIG_PREFIX env vars to nvm debug
				
					
				
			This commit is contained in:
		
							
								
								
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -1446,7 +1446,9 @@ nvm() { | |||||||
|         setopt shwordsplit |         setopt shwordsplit | ||||||
|       fi |       fi | ||||||
|       echo >&2 "\$SHELL: $SHELL" |       echo >&2 "\$SHELL: $SHELL" | ||||||
|       echo >&2 "\$NVM_DIR: $(nvm_sanitize_path "$NVM_DIR")" |       echo >&2 "\$NVM_DIR: '$(nvm_sanitize_path "$NVM_DIR")'" | ||||||
|  |       echo >&2 "\$PREFIX: '$(nvm_sanitize_path "$PREFIX")'" | ||||||
|  |       echo >&2 "\$NPM_CONFIG_PREFIX: '$(nvm_sanitize_path "$NPM_CONFIG_PREFIX")'" | ||||||
|       local NVM_DEBUG_OUTPUT |       local NVM_DEBUG_OUTPUT | ||||||
|       for NVM_DEBUG_COMMAND in 'nvm current' 'which node' 'which iojs' 'which npm' 'npm config get prefix' 'npm root -g' |       for NVM_DEBUG_COMMAND in 'nvm current' 'which node' 'which iojs' 'which npm' 'npm config get prefix' 'npm root -g' | ||||||
|       do |       do | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user