How do I use nvm these days? In the past, this package exposed nvm
command I could freely use.
Search Criteria
Package Details: nvm 0.39.7-1
Package Actions
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: | 282 |
Popularity: | 6.27 |
First Submitted: | 2015-03-14 21:57 (UTC) |
Last Updated: | 2023-12-06 07:03 (UTC) |
Dependencies (1)
- bash (bash-devel-static-gitAUR, bash-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR) (optional) – bash completion
Required by (291)
- aero-browser (make)
- ai-browser-git (make)
- ai-writer (make)
- aliyunpan-odomu-git (make)
- alpaca-electron-git (make)
- alpha-badger (make)
- altus (make)
- android-toolkit (make)
- android-toolkit-git (make)
- antares-sql (make)
- apple-music-desktop (make)
- apple-music-electron-git (make)
- armcord (make)
- autocut-client (make)
- autorecord-manager (make)
- awakened-poe-trade-git (make)
- baize-toolbox-git (make)
- balena-etcher (make)
- bazecor-git (make)
- beekeeper-studio-git (make)
- before-dawn (make)
- bettersoundcloud (make)
- bilive-danmaku-git (make)
- blinker-git (make)
- bluestone (make)
- bluestone-git (make)
- bookord-git (make)
- boson-git (make)
- bruno (make)
- bruno-git (make)
- bs-manager-git (make)
- buttercup-desktop-git (make)
- caprine-ng-git (make)
- catcat-dm-react (make)
- cerebro-git (make)
- chatall (make)
- chatall-git (make)
- chatd (make)
- cider (make)
- cider-git (make)
- claude-desktop (make)
- clickercompanion (make)
- cocomusic (make)
- commas (make)
- commas-git (make)
- companion (make)
- cpod (make)
- cpod-git (make)
- craze (make)
- creamplayer (make)
- cro-chain-desktop (make)
- cryptique-git (make)
- dartsmate-git (make)
- dash-player-git (make)
- datcom-jitsi-meet-electron (make)
- dbd-icon-toolbox-git (make)
- dialogcraft (make)
- discord-netflix (make)
- doomguy-git (make)
- dopamine-git (make)
- drawio-desktop-git (make)
- droppoint-git (make)
- dust-mail-client-git (make)
- easy-player (make)
- electerm-git (make)
- electron-devdocs-git (make)
- electron-music (make)
- electron-music-player (make)
- electron-netease-cloud-music-git (make)
- electron-widgets-git (make)
- elephicon (make)
- elevate-git (make)
- epub-reader (make)
- escrcpy (make)
- etcher-git (make)
- excel-parser-processor-git (make)
- favicon-generator (make)
- fchat-rising (make)
- ferdium (make)
- ferdium-beta (make)
- ferdium-git (make)
- ferdium-nightly (make)
- ffbox (make)
- figma-linux-git (make)
- finance-manager-git (make)
- flashpoint-launcher (make)
- flexplayer (make)
- flowtestai-git (make)
- fluent-reader-git (make)
- focustune-git (make)
- fotoluks-manager-git (make)
- frame-eth (make)
- frame-eth-canary-git (make)
- frame-eth-dev (make)
- frame-eth-git (make)
- franz (make)
- freedomgpt-git (make)
- frontimer (make)
- fsolauncher (make)
- fx_cast (make)
- gameclock-git (make)
- gdevelop (make)
- ghost-chat (make)
- ghost-chat-git (make)
- github-desktop-git (make)
- gitify (make)
- gmail-desktop-git (make)
- godmode (make)
- godspeed-git (make)
- gomoon-git (make)
- google-chat-linux (make)
- gui-butler (make)
- hex-music-player (make)
- hexopress (make)
- hihat-git (make)
- hiregpt (make)
- httptoolkit (make)
- httptoolkit-git (make)
- hugin-messenger (make)
- hyper-git (make)
- i5sing (make)
- iceborne (make)
- image-stitching (make)
- image2pattern-git (make)
- imfile (make)
- imfile-git (make)
- insomnia (make)
- insomnia-electron (make)
- insomnia-git (make)
- insomnium (make)
- insomnium-git (make)
- issie (make)
- ivpn-ui (make)
- jitsi-meet-desktop (make)
- justwrite-git (make)
- keeweb-git (make)
- knowte (make)
- knowte-git (make)
- kuro-git (make)
- lando-git (make)
- lanzouyun-pan (make)
- ledger-live (make)
- ledger-live-git (make)
- less-player-git (make)
- liquidprompt (optional)
- live2d-kanban-desktop (make)
- losslesscut-git (make)
- lost-dutchman-mine-git (make)
- mailspring-git (make)
- manyi-transformer (make)
- masscode-git (make)
- media-player-electron-git (make)
- medis-git (make)
- melt-mdeditor-git (make)
- miru-git (make)
- miru-viewer-git (make)
- miteiru (make)
- mockoon (make)
- mockoon-git (make)
- monokle (make)
- motrix-git (make)
- mqttx-git (make)
- mrcode (make)
- mrcode-git (make)
- mullvad-vpn (make)
- mullvad-vpn-beta (make)
- musicfree-desktop (make)
- musicfree-desktop-git (make)
- net-player (make)
- netron-git (make)
- nora-git (make)
- notely-git (make)
- notesnook (make)
- notesnook-git (make)
- notesphere-git (make)
- nuclear-player (make)
- nudge (make)
- nvm-desktop (make)
- octa-electron (make)
- ooniprobe-desktop (make)
- orca-writer (make)
- outdated-snake-git (make)
- overvue-git (make)
- owntracks-frontend (make)
- palletone-git (make)
- perrito-ws (make)
- perrito-ws-git (make)
- petal (make)
- photo-location-map (make)
- picgo-git (make)
- poi-git (make)
- polybase-git (make)
- postybirb (make)
- postybirb-git (make)
- pot-translation-git (make)
- prospect-mail (make)
- proton-mail-viewer (make)
- proxy-manager-git (make)
- quassel-webserver-git (make)
- quicknote (make)
- quicknote-git (make)
- r2modman (make)
- r3playx-git (make)
- rancher-desktop (make)
- rancher-desktop-git (make)
- realm-studio-git (make)
- redisinsight (make)
- redisinsight-git (make)
- requestly-git (make)
- responsively-git (make)
- revezone (make)
- rocketchat-server-standalone (make)
- rubick (make)
- saberfy (make)
- safe-browser (make)
- safe-mail-tutorial (make)
- salvage-git (make)
- schildichat-desktop (make)
- schildichat-desktop-git (make)
- scratch3 (make)
- scriptorium-git (make)
- select-launcher-git (make)
- session-desktop (make)
- session-desktop-git (make)
- sigma-file-manager-git (make)
- simple-music (make)
- simple-music-git (make)
- siyuan (make)
- siyuan-git (make)
- snapmaker-luban (make)
- snippet-notes (make)
- snsdeck (make)
- sonixd (make)
- spotbar (make)
- sqltabs-bin (optional)
- stage-retriever (make)
- standardnotes-desktop (make)
- storyboarder (make)
- stretchly (make)
- stretchly-git (make)
- stretchly-xeruf-git (make)
- super-controller (make)
- switchhosts-git (make)
- tailchat-desktop (make)
- textspace-git (make)
- thorium-reader (make)
- thorium-reader-git (make)
- tiny-rdm (make)
- tiny-rdm-git (make)
- tithree (make)
- todometer-git (make)
- touche (make)
- ttf-octicons (make)
- tts-vue (make)
- tutanota-desktop (make)
- udeler (make)
- udeler-git (make)
- uivonim-git (make)
- upscayl-git (make)
- vagrant-manager-git (make)
- vdhcoapp (make)
- vdhcoapp-git (make)
- vega-video-editor (make)
- vlsm-interfacing-git (make)
- vnstat-client-git (make)
- vscodium (make)
- vscodium-electron (make)
- vscodium-git (make)
- vscodium-insiders (make)
- wai-chat-desktop (make)
- waveterm (make)
- waveterm-git (make)
- web-hosting-manager (make)
- webcam-glass-git (make)
- webtorrent-desktop-git (make)
- wire-desktop-git (make)
- wj-markdown-editor-git (make)
- woocommerce-pos (make)
- wordpress-studio-git (make)
- work-log-ify-git (make)
- wpspaster (make)
- wrkspace-git (make)
- wubi-dict-editor (make)
- xilinota-git (make)
- yank-note (make)
- yank-note-git (make)
- ytmdesktop (make)
- ytmdesktop-git (make)
- zulip-desktop (make)
- zulip-desktop-git (make)
- zxinfo-file-browser-git (make)
Sources (3)
Nowaker commented on 2020-09-04 18:38 (UTC)
tomwadley commented on 2020-02-09 22:20 (UTC)
@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 (UTC)
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 (UTC)
Thanks for the heads-up @donsmith - I've updated the url.
donsmith commented on 2019-09-22 04:38 (UTC)
@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.
tomwadley commented on 2019-03-25 13:37 (UTC)
Thanks for the tip @jamespharvey20. I wasn't aware of SRCDEST. Fixed.
jamespharvey20 commented on 2019-03-25 09:06 (UTC)
Downloaded source filenames must be unique, for those who set SRCDEST in /etc/makepkg.conf. See https://wiki.archlinux.org/index.php/PKGBUILD#source
Please add something like this to the beginning of source
:
source=("${pkgname}-${pkgver}.zip::https...
tomwadley commented on 2019-03-17 17:53 (UTC)
@joshsteele21 You shouldn't have to change any permissions or use sudo. And you're sourcing (as opposed to executing) init-nvm.sh
right? Have you previously tried to install nvm the "official" way from their readme? There could be some sort of conflict going on there.
jost21 commented on 2019-03-08 02:26 (UTC) (edited on 2019-03-08 17:50 (UTC) by jost21)
Installation and running the init-nvm.sh script works fine, but running nvm install node does not work because of permission denied errors. Using sudo does not recognize the nvm command (sudo: nvm: command not found)
EDIT: Do I need to manually change the permissions on /usr/share/nvm ?
FranklinYu commented on 2019-02-10 16:55 (UTC) (edited on 2019-02-10 22:18 (UTC) by FranklinYu)
@bobpaul Actually NVM is not designed to be used in script, IIUC. Please notify those project owners that nvm-exec
is the correct tool for non-interactive use. Or is there any example for us to have a look?
EDIT: please forgive my innocence and ignore the comment above. Official suggestion is to use nvm exec
which expects nvm.sh
to be in $NVM_DIR
.
Pinned Comments
tomwadley commented on 2020-09-04 22:14 (UTC) (edited on 2020-09-04 22:15 (UTC) by tomwadley)
Due to the way nvm is designed, you have to source it before you can use it:
You will probably want that in your shell startup file, e.g.:
See nvm.install or the upstream README for more details.