We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e2a7f commit ffaf577Copy full SHA for ffaf577
nvm.sh
@@ -1802,6 +1802,10 @@ nvm_install_binary() {
1802
command mv "${TMPDIR}/"* "${VERSION_PATH}" && \
1803
command rm -rf "${TMPDIR}"
1804
); then
1805
+
1806
+ if [ -n "${ALIAS}" ]; then
1807
+ nvm alias "${ALIAS}" "${provided_version}"
1808
+ fi
1809
return 0
1810
fi
1811
@@ -2618,7 +2622,7 @@ nvm() {
2618
2622
NVM_UPGRADE_NPM=1
2619
2623
shift
2620
2624
;;
2621
- --default)
2625
+ --default)
2626
if [ -n "${ALIAS-}" ]; then
2627
nvm_err '--default and --alias are mutually exclusive, and may not be provided more than once'
2628
return 6
0 commit comments