Package Details: nvm 0.34.0-1

Git Clone URL: (read-only)
Package Base: nvm
Description: Node Version Manager - Simple bash script to manage multiple active node.js versions
Upstream URL:
Licenses: MIT
Submitter: tomwadley
Maintainer: tomwadley
Last Packager: tomwadley
Votes: 117
Popularity: 3.298903
First Submitted: 2015-03-14 21:57
Last Updated: 2019-01-09 00:05

Latest Comments

1 2 3 4 Next › Last »

FranklinYu commented on 2018-12-29 02:02

@Codex0 After installing, you should see your package manager prompting you to do so. If not, you should get a better package manager.

About why you need to do so, package maintainer has explained it on August 25th, 2018. Please find the corresponding comment.

Codex0 commented on 2018-12-28 14:50

Found that despite installing this I still had to manually execute:

echo 'source /usr/share/nvm/' >> ~/.bashrc
exec $SHELL

tomwadley commented on 2018-11-04 21:50

@hutliver Sorry to hear it. In that case, it's not a package issue. I'd suggest seeking help from upstream. Read their readme to make sure you haven't missed something. Otherwise, they're pretty responsive to Github issues.

hutliver commented on 2018-11-04 06:11

@tomwadley same error :/

tomwadley commented on 2018-11-01 18:34

@hutliver I'm not sure what's happening here. Can you try removing this package and installing nvm the "official" upstream way with their curl|bash?

hutliver commented on 2018-11-01 15:17

Hi! Facing this error with the package, there's no relevant info.. bash: /usr/share/nvm/ line 62: syntax error near unexpected token }' bash: /usr/share/nvm/ line 62:}' bash: /usr/share/nvm/bash_completion: line 48: syntax error near unexpected token }' bash: /usr/share/nvm/bash_completion: line 48:}'

using termite

tomwadley commented on 2018-08-25 19:19

@ferrantejake The post-install instructions explain that you have to source nvm into your shell before you can use it. This is unlike typical applications which install an executable into /usr/bin which you can just call out-of-the-box. This is the way nvm is designed and its a difficult problem to work around without making sacrifices that I don't think are appropriate to force on all users of the package. For example, I believe it would be possible for this package to install something in /etc to auto source nvm for all users, but that seems quite invasive to me. With some modifications to the way nvm works though, some sort of "system nvm" which doesn't require sourcing does seem possible, and it would be interesting to explore that one day, probably as a separate package.

For now, this package includes a handy script "/usr/share/nvm/" which you can source in your .bashrc to get nvm working.

ferrantejake commented on 2018-08-25 17:02

Seems to not be working out-of-the-box. I ran the following (from the nvm git repo) to get the package working in the command line:

export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/" ] && . "$NVM_DIR/" # This loads nvm

Would it be possible to get this added to the PKGBUILD script?

effeeffe commented on 2018-08-14 15:18

Now that package nodejs-fake does not exist anymore, what is the suggested way to go about this?

EDIT: the wiki has been updated.

Twiki commented on 2018-08-11 18:11

@tomwadley You are right. Thanks! In the readme at Github, sourcing nvm is mentioned after the second "command -v nvm". I stopped after the first.