Package Details: nvm 0.37.2-1

Git Clone URL: https://aur.archlinux.org/nvm.git (read-only, click to copy)
Package Base: nvm
Description: Node Version Manager - Simple bash script to manage multiple active node.js versions
Upstream URL: https://github.com/nvm-sh/nvm
Licenses: MIT
Submitter: tomwadley
Maintainer: tomwadley
Last Packager: tomwadley
Votes: 163
Popularity: 2.78
First Submitted: 2015-03-14 21:57
Last Updated: 2020-11-28 17:09

Dependencies (1)

Required by (24)

Sources (3)

Pinned Comments

tomwadley commented on 2020-09-04 22:14

Due to the way nvm is designed, you have to source it before you can use it:

source /usr/share/nvm/init-nvm.sh

You will probably want that in your shell startup file, e.g.:

echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc

See nvm.install or the upstream README for more details.

Latest Comments

1 2 3 4 5 6 Next › Last »

foxite commented on 2021-02-18 19:18

@joshsteele21 I found out that the cause was that I used a GUI tool to change the LC_TIME, but the locale I changed it to wasn't installed. I guess that's a bug in KDE.

Changing it to a locale that was actually supported has solved the issue.

joshsteele21 commented on 2021-02-18 19:16

@foxite I have a similar issue, it happens every once in a while after an update. Apparently the issue has to do with glibc, at least in my case. There are files missing in /usr/share/i18n/locales

see https://unix.stackexchange.com/questions/604134/how-to-fix-missing-locale-files-on-manjaro/

tomwadley commented on 2021-02-12 00:24

@foxite presumably there is something wrong with your locale config. Take a look at the Locale wiki page.

foxite commented on 2021-02-11 12:02

Edit: For some reason I had assumed that sourcing init-nvm.sh was causing the error, but it's more likely that init-nvm.sh is encountering an error.

Adding this line to .bashrc as instructed:

source /usr/share/nvm/init-nvm.sh

Causes the following message to appear when I open a terminal:

manpath: can't set the locale; make sure $LC_* and $LANG are correct

Removing the line causes the message to go away, though obviously I can't use nvm without it. I suspect that this is related to the inexplicable locale errors I have been getting in various other command line tools. Upon inspection, there seems to be nothing wrong with $LANG or my $LC_* variables; they are the same with or without init-nvm.

Any ideas what is causing this problem or how to fix it? It is pretty annoying, but seems harmless.

tomwadley commented on 2020-09-04 22:14

Due to the way nvm is designed, you have to source it before you can use it:

source /usr/share/nvm/init-nvm.sh

You will probably want that in your shell startup file, e.g.:

echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc

See nvm.install or the upstream README for more details.

Nowaker commented on 2020-09-04 18:38

How do I use nvm these days? In the past, this package exposed nvm command I could freely use.

tomwadley commented on 2020-02-09 22:20

@FranklinYu The reason I kept them separate is because install-nvm-exec feel a little more "controversial" to me. I can imagine some people explicitly not wanting install-nvm-exec to run as it modifies your home directory... (not much mind you - it just creates ~/.nvm and puts some symlinks there)

But you're right that if users want to avoid install-nvm-exec they would also be avoiding init-nvm.sh as well.... so maybe keeping them separate is silly.

But the need to do that really highlights the way in which nvm was not designed to be packaged via a system package manager like pacman. The "official" way to install it is via their install.sh script which makes way more drastic changes to your home directory! (edits ~/.bashrc etc.)

FranklinYu commented on 2020-02-06 07:29

Do you think it makes sense to merge install-nvm-exec into init-nvm.sh? Both scripts are very short.

tomwadley commented on 2019-09-22 15:04

Thanks for the heads-up @donsmith - I've updated the url.

donsmith commented on 2019-09-22 04:38

@tomwadley, just a heads-up for your next update. The nvm repo has moved to https://github.com/nvm-sh/nvm. Obviously this has not broken this package - just letting you know.

I was confused about it until I went back in the commits and verified that the same repo used to belong to Tim (creationx) and has been removed from its old location.