Check out https://aur.archlinux.org/packages/nodejs-fake/ which takes care so packages like npm don't install nodejs as their dependency, keeping nvm the only source of nodejs on the system.
Search Criteria
Package Details: nvm 0.40.1-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: | 298 |
Popularity: | 5.73 |
First Submitted: | 2015-03-14 21:57 (UTC) |
Last Updated: | 2024-08-27 22:35 (UTC) |
Dependencies (1)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR) (optional) – bash completion
Required by (492)
- aero-browser (make)
- aero-browser-git (make)
- agendapp (make)
- ai-browser-git (make)
- ai-gate (make)
- ai-writer (make)
- aihub (make)
- aihub-git (make)
- akuse (make)
- akuse-git (make)
- alpaca-electron-git (make)
- alpha-badger (make)
- altus (make)
- android-toolkit (make)
- android-toolkit-git (make)
- animestream-git (make)
- another-redis-desktop-manager-git (make)
- antares-sql (make)
- antares-sql-git (make)
- any-sync-gui (make)
- apple-music-desktop (make)
- apple-music-electron-git (make)
- aquaquill-git (make)
- atlassify-git (make)
- autocut-client (make)
- autorecord-manager (make)
- awakened-poe-trade-git (make)
- baiduwenku-bin (make)
- baize-toolbox-git (make)
- bazecor-git (make)
- bdash-git (make)
- bear-graph (make)
- beekeeper-studio-git (make)
- before-dawn (make)
- before-dawn-git (make)
- behavior3editor-git (make)
- bettersoundcloud (make)
- bilibili (make)
- bilibili-linux-git (make)
- bilive-danmaku-git (make)
- blinker-git (make)
- bonbon-browser-git (make)
- bookord-git (make)
- boson-git (make)
- bot.dev (make)
- bruno (make)
- bruno-electron (make)
- bruno-git (make)
- buttercup-desktop-git (make)
- bytebackup-git (make)
- caprine-ng-git (make)
- catcat-dm-react (make)
- cerebro-git (make)
- cgdi (make)
- chatall (make)
- chatall-git (make)
- chatbox-git (make)
- chatd (make)
- cherry-studio-git (make)
- chromium-pdfjs-git (make)
- cider (make)
- cinematic-git (make)
- claude-desktop (make)
- cocomusic (make)
- codefuse-ide-git (make)
- commas (make)
- commas-git (make)
- companion (make)
- cpod (make)
- cpod-git (make)
- crankshaft-client-git (make)
- craze (make)
- creamplayer (make)
- cro-chain-desktop (make)
- cryptique-git (make)
- cycode (make)
- dartsmate-git (make)
- dash-player-git (make)
- datcom-jitsi-meet-electron (make)
- datefile (make)
- dbd-icon-toolbox-git (make)
- dbgate-git (make)
- deadboltplusplus (make)
- devkitty (make)
- devkitty-git (make)
- dhis2-downloader-git (make)
- dialogcraft (make)
- dilidili-git (make)
- discord-netflix (make)
- discord-netflix-git (make)
- dnd-overlay-tool-git (make)
- docspedia-git (make)
- doomguy-git (make)
- dopamine-git (make)
- drawio-desktop-git (make)
- droppoint-git (make)
- dust-mail-client-git (make)
- easy-player (make)
- elecap-git (make)
- electerm (make)
- electerm-git (make)
- electron-devdocs-git (make)
- electron-gpt-git (make)
- electron-music (make)
- electron-music-player (make)
- electron-netease-cloud-music-git (make)
- electron-pdf-viewer-git (make)
- electron-s3-file-manager (make)
- electron-widgets-git (make)
- electronmail (make)
- elemental-notes-git (make)
- elements-latex (make)
- elephicon (make)
- elevate-git (make)
- epub-reader (make)
- escrcpy (make)
- etcher-git (make)
- everytime (make)
- excel-parser-processor-git (make)
- favicon-generator (make)
- fchat-rising (make)
- ferdium (make)
- ferdium-git (make)
- ferdium-nightly (make)
- ffbox (make)
- ffbox-git (make)
- figma-linux-git (make)
- filen-desktop-git (make)
- finance-manager-git (make)
- fishing-funds-git (make)
- flashpoint-launcher (make)
- flexplayer (make)
- flexplayer-git (make)
- flowtestai-git (make)
- fluent-reader-git (make)
- focustune-git (make)
- follow (make)
- follow-git (make)
- fotoluks-manager-git (make)
- frame-eth (make)
- frame-eth-canary-git (make)
- frame-eth-dev (make)
- frame-eth-git (make)
- franz (make)
- franz-wayland (make)
- freecord-git (make)
- freedomgpt-git (make)
- frontimer (make)
- fsolauncher (make)
- fx_cast (make)
- gb-studio-git (make)
- gchat (make)
- gemini-desktop-git (make)
- geratron-git (make)
- ghost-chat (make)
- ghost-chat-git (make)
- giopic-git (make)
- git-it-electron-git (make)
- github-desktop-git (make)
- gitify (make)
- gmail-desktop-git (make)
- gnome-shell-extension-pano-git (make)
- gnome-shell-extension-tilingshell (make)
- godmode (make)
- godspeed-git (make)
- gomoon-git (make)
- google-calender-widget (make)
- google-chat-linux (make)
- gridview-git (make)
- gui-butler (make)
- gy-music-player-git (make)
- hackerpad-git (make)
- hawkpass-git (make)
- headermaker-git (make)
- hex-music-player (make)
- hexopress (make)
- hexopress-git (make)
- hihat (make)
- hihat-git (make)
- hiregpt (make)
- horen (make)
- horen-git (make)
- httptoolkit (make)
- httptoolkit-git (make)
- hugin-messenger (make)
- hype (make)
- hyper-git (make)
- i5sing (make)
- iceborne (make)
- icxor-git (make)
- ih8rtcgui (make)
- image-stitching-git (make)
- image2pattern-git (make)
- imfile (make)
- imfile-git (make)
- inkdown (make)
- inkdown-git (make)
- insomnia (make)
- insomnia-electron (make)
- insomnia-git (make)
- insomnium (make)
- insomnium-git (make)
- iptvorg-epg (make)
- issie (make)
- ivpn-ui (make)
- jitsi-meet-desktop (make)
- jitsi-meet-desktop-git (make)
- jlivertool (make)
- joy-xtream-player-git (make)
- justwrite-git (make)
- kanbanflow-app-git (make)
- keep-audio-alive-git (make)
- keeweb-git (make)
- knowte (make)
- knowte-git (make)
- kuro-git (make)
- lanzouyun-pan (make)
- leavepad (make)
- leavepad-git (make)
- ledger-live (make)
- ledger-live-git (make)
- leser-git (make)
- less-player-git (make)
- liquidprompt (optional)
- listen1-desktop-git (make)
- live2d-kanban-desktop (make)
- lobe-chat
- local-llama-git (make)
- logseq-desktop (make)
- loopy-desktop (make)
- losslesscut-git (make)
- lost-dutchman-mine-git (make)
- lynxhub (make)
- lynxhub-git (make)
- macchatgpt (make)
- mailspring-git (make)
- manyi-transformer (make)
- map-download-git (make)
- masscode-git (make)
- mattermost-plugin-onlyoffice (make)
- media-player-electron-git (make)
- mediago-git (make)
- medis-git (make)
- melt-mdeditor-git (make)
- memos (make)
- memos-git (make)
- metamask-chromium (make)
- metamask-firefox (make)
- metamask-google-chrome (make)
- meteor-todo-desktop (make)
- midi2.0-workbench-git (make)
- miru-git (make)
- miru-viewer-git (make)
- miteiru (make)
- miuzcpc-git (make)
- mkeditor-git (make)
- mkfont (make)
- mockoon (make)
- mockoon-git (make)
- monokle (make)
- motrix-git (make)
- mqttx-git (make)
- mrcode (make)
- mrcode-git (make)
- ms-365-electron (make)
- mu-epub-viewer-git (make)
- muffon-git (make)
- mullvad-vpn (make)
- mullvad-vpn-beta (make)
- musicfree-desktop (make)
- musicfree-desktop-git (make)
- mustang (make)
- mustang-git (make)
- mxiv-git (make)
- net-player (make)
- netron-git (make)
- newpad-git (make)
- node-toolkit-git (make)
- nora-git (make)
- note-mark-git (make)
- notely-git (make)
- notesnook (make)
- notesnook-git (make)
- notesphere-git (make)
- novel-tree-desktop-git (make)
- nuclear-player (make)
- nudge (make)
- nvm-desktop (make)
- nvm-desktop-git (make)
- octa-electron (make)
- oneplay-git (make)
- onlook-git (make)
- ooniprobe-desktop (make)
- opencomic (make)
- orca-writer (make)
- out-of-mind-git (make)
- outdated-snake-git (make)
- overlay-spirit-git (make)
- overlayed (make)
- overlayed-git (make)
- overvue-git (make)
- own3d-desktop-git (make)
- owntracks-frontend (make)
- palletone-git (make)
- parseit-git (make)
- passbox (make)
- pear-rec (make)
- pear-rec-git (make)
- peershare (make)
- perplexity-ai-app (make)
- perrito-ws (make)
- perrito-ws-git (make)
- petal (make)
- pharmaspot-git (make)
- photo-location-map (make)
- picgo-git (make)
- pikatorrent-git (make)
- pinac-workspace-git (make)
- pip-player-git (make)
- plexamp-headless
- pocketyoutube-git (make)
- podman-desktop-git (make)
- poi-git (make)
- polybase-git (make)
- pomotro (make)
- postybirb (make)
- postybirb-git (make)
- postybirb-plus (make)
- pot-translation-git (make)
- prospect-mail (make)
- proton-mail-viewer (make)
- proxy-manager-git (make)
- publii-git (make)
- quassel-webserver-git (make)
- quicknote (make)
- quicknote-git (make)
- r3playx-git (make)
- rainbow-bridge-git (make)
- rancher-desktop (make)
- rancher-desktop-git (make)
- random-browser-git (make)
- realm-studio-git (make)
- redisinsight (make)
- redisinsight-git (make)
- renovate-git (make)
- requestly-git (make)
- responsively-git (make)
- revezone (make)
- revolt-desktop (make)
- revolt-desktop-git (make)
- ringer-client-desktop (make)
- rocketchat-desktop-git (make)
- rocketchat-server-standalone (make)
- rotorflight-blackbox
- rotorflight-configurator
- round-drop-git (make)
- rstudio-desktop (make)
- rubick (make)
- sabaki-git (make)
- saberfy (make)
- safe-browser (make)
- safe-mail-tutorial (make)
- salesforce2sql-git (make)
- salvage-git (make)
- schildichat-desktop (make)
- schildichat-desktop-git (make)
- scratch3 (make)
- screen-recorder-app (make)
- scriptorium-git (make)
- select-launcher-git (make)
- session-desktop (make)
- session-desktop-git (make)
- seven-waves (make)
- seven-waves-git (make)
- sharing-gui (make)
- sigma-file-manager-git (make)
- simple-music (make)
- simple-music-git (make)
- simplest-file-renamer-git (make)
- siyuan (make)
- siyuan-git (make)
- slacky-git (make)
- smpl-git (make)
- snapmaker-luban (make)
- snippet-notes (make)
- snsdeck (make)
- sonixd (make)
- soundcloud-rpc-git (make)
- spine-viewer-git (make)
- splayer-git (make)
- spotbar (make)
- spx-translation (make)
- sqlite3-page-explorer-git (make)
- sqltabs-bin (optional)
- stage-retriever (make)
- standardnotes-desktop (make)
- storyboarder (make)
- stretchly (make)
- stretchly-git (make)
- stretchly-xeruf-git (make)
- sunbible (make)
- super-controller (make)
- superconductor (make)
- swarm-desktop (make)
- switchhosts-git (make)
- tagspaces (make)
- tailchat-desktop (make)
- tauview-git (make)
- textspace-git (make)
- the-password-manager-git (make)
- thorium-reader (make)
- thorium-reader-git (make)
- threatbrowser-git (make)
- tidgi-desktop-git (make)
- tiny-rdm (make)
- tiny-rdm-git (make)
- tithree (make)
- todometer-git (make)
- torepe-git (make)
- touche (make)
- tsr-bridge (make)
- tts-vue (make)
- turbowarp-desktop-git (make)
- tutanota-desktop (make)
- tyrogit-client-git (make)
- udeler (make)
- udeler-git (make)
- ueli (make)
- ueli-git (make)
- uivonim-git (make)
- unoffical-wallhaven-desktop-git (make)
- upscayl-git (make)
- vagrant-manager-git (make)
- vdhcoapp (make)
- vdhcoapp-git (make)
- vega-video-editor (make)
- vivify (make)
- vivify-git (make)
- vlsm-interfacing-git (make)
- vnite-git (make)
- vnstat-client-git (make)
- vocallia-git (make)
- vrc-photo-viewer-git (make)
- vscodium (make)
- vscodium-electron (make)
- vscodium-git (make)
- vscodium-insiders (make)
- vscodium-translucent (make)
- wai-chat-desktop (make)
- waveterm (make)
- waveterm-git (make)
- wavy-git (make)
- weakauras-companion (make)
- weakauras-companion-git (make)
- web-hosting-manager (make)
- webcam-glass-git (make)
- webp-converter-git (make)
- webs-tray-git (make)
- webtorrent-desktop-git (make)
- whalebird-git (make)
- whatsapp-desktop-client-git (make)
- wire-desktop-git (make)
- witsy (make)
- witsy-git (make)
- wj-markdown-editor-git (make)
- woocommerce-pos (make)
- wora-git (make)
- wordpress-studio-git (make)
- work-log-ify-git (make)
- wpspaster (make)
- wrkspace-git (make)
- wubi-dict-editor (make)
- wx-read (make)
- xc-music-git (make)
- xilinota-git (make)
- yank-note (make)
- yank-note-git (make)
- yaste-git (make)
- yesplaymusic-git (make)
- youtube-downloader-git (make)
- ytdesk-git (make)
- ytdl-desktop (make)
- ytm-dlp-gui (make)
- ytmdesktop (make)
- ytmdesktop-git (make)
- zenshin-git (make)
- zerochess-git (make)
- zulip-desktop (make)
- zulip-desktop-git (make)
- zxinfo-file-browser-git (make)
- zyfun-git (make)
- zyplayer-git (make)
Sources (3)
givemeurhats commented on 2018-01-19 01:36 (UTC)
ljharb commented on 2017-06-01 22:05 (UTC)
@tomwadley Makes sense. I still think nvm itself should be stored in the home directory, but as long as it works, that's fine.
The reality, of course, is that without a second factor on a separate communications channel, the system package manager isn't any more secure than curl | sh :-) no need to get into the "security theater" argument here, of course.
My hope is that this AUR approach won't be like every other attempt before it to package nvm via an unsupported method; but that instead, this one will actually *work* and not cause bugs. So far, there's been few complaints, so congrats!
tomwadley commented on 2017-06-01 18:28 (UTC)
Hi @ljharb,
Firstly, thanks for dropping in and for all of your work on nvm. I (and I'm sure everyone using this package) really appreciates everything you're doing.
To answer your question, if the user follows the instructions, NVM_DIR *is* actually set to $HOME/.nvm. It's only that nvm itself is put in /usr/share.
To elaborate a little more, this package is for people, like me, who prefer to have all of their installed software managed by their system package manager rather than installing things with a curl-pipe-bash. A lot of people also prefer not to have a script (such as your install.sh) making changes directly to files in their home directory. The philosophy behind install.sh doesn't sit well with me and I wanted to be able to install nvm without using it.
Of course, the fundamental design of nvm is that its a sourced shell function which makes it difficult to package as though it were a normal system executable. It is unfortunate that even with this AUR package, users must still edit their personal .bashrc files. But if this is necessary, I believe Arch users would prefer to do that by hand.
ljharb commented on 2017-06-01 06:40 (UTC)
Hi, http://nvm.sh / https://github.com/creationix/nvm/ maintainer here.
@lwin please file an issue on the upstream repo; slowness is generally due to `npm config get prefix` being slow.
@lacrymology you're using an old/never worked properly `nvm` that was incorrectly installed from `npm`. `npm uninstall -g nvm`, and then please reinstall it properly (from the install script, or this AUR package).
@rulatir nvm is a sourced shell function - there is no binary, no executable. When you source `nvm.sh`, you'll get an `nvm` function available in your shell.
@tomwadley is there a particular reason that this installs $NVM_DIR to a non-user-specific place? nvm is per-user, and should not be shared across user accounts.
In general to everyone, please start by filing an issue on the git repo directly - https://github.com/creationix/nvm/issues/new - and please call out you're installing it via this AUR package. If it's a packaging problem, I'll point you back here. Thanks!
tomwadley commented on 2017-01-18 23:11 (UTC)
@lwin I believe this is an upstream issue and not related to the packaging although I'd be happy to be proven wrong. It's also slow for me. There are various issues on github complaining about slow loading. Let me know if you figure anything out.
lwin commented on 2017-01-18 22:50 (UTC)
The rule "source /usr/share/nvm/init-nvm.sh" at the end of my ~/.bashrc makes the load (start) of my terminal (urxvt) noteworthy slow. Is there a simple solution for this?
tomwadley commented on 2016-08-28 21:25 (UTC)
@Nowaker My intention was that you wouldn't use the convenience script init-nvm if you wanted customizations. But you're right, there's no reason for it to set NVM_DIR if it's already set. I've pushed a fix for this.
Nowaker commented on 2016-08-28 06:08 (UTC)
/usr/share/nvm/init-nvm.sh shouldn't override $NVM_DIR if one already exists.
tomwadley commented on 2016-06-25 12:09 (UTC)
Good call @gat. I've updated the postinstall message to say .zshrc instead of .zprofile.
gat commented on 2016-06-25 10:46 (UTC)
Question. Shouldn't the postinstall message
echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc
echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.zprofile
have .zshrc instead of .zprofile? The latter doesn't seem to work and for bash it's .bashrc instead of .profile for Bash.
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.