Commit Graph

172 Commits

Author SHA1 Message Date
Jordan Harband
28bc2fd991
v0.35.1 2019-11-03 10:03:31 -08:00
Marit Iren
1eca354233
[Docs] Add description if instructions don't work; make install instructions more readable 2019-10-20 17:08:29 +02:00
Jordan Harband
011810e721
v0.35.0 2019-10-02 00:05:28 -04:00
Darío Hereñú
d48abff659
[Docs] clean up formatting in readme 2019-05-03 19:44:21 -03:00
Darío Hereñú
82037b41b1
[Docs] clean up a bit 2017-10-06 01:54:07 -03:00
metasean
970cadf258
[Docs] Add --latest-npm info to Migrating global packages section
Adds the following information to the "Migrating global packages while installing" section:
- notification that the npm package is explicitly not updated when using the --reinstall-packages-from flag
- information about the --latest-npm flag
- recovery instructions if a user has already updated node with an incompatible npm version
2018-12-30 18:24:29 -07:00
Will Papper
3cc9525dce
[Docs] [Fix] Set $NVM_DIR to ".nvm" instead of "nvm"
- Operating system and version: Mac OS X Mojave

- What happened? $NVM_DIR was set to nvm

- What did you expect to happen? $NVM_DIR should be set to .nvm
I added the following line from the README to my .zshrc:
```
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
```

I couldn't figure out why nvm wasn't loading, until I realized that
`echo NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"` outputs `NVM_DIR=nvm`.

Changing the line to `export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/}.nvm"` fixed the problem. This outputs `NVM_DIR=.nvm` as expected. I tested this and the same behavior holds true in Bash as well.
2019-04-24 00:03:01 -07:00
Greg Smith
6537c91eb5
Fix bash auto-use nvm command
It was trying to read ./.nvmrc if you cd'ed into a subdirectory of the directory that has .nvmrc, which would give print `-bash: ./.nvmrc: No such file or directory` to stderr and potentially not doing the `nvm install`.
2019-08-09 14:38:37 -06:00
Alfred Myers
3664744e3b
Updated note about Windows
There's a lot of old info around the interwebs.
Much stating nvm doesn't work in WSL.
2019-05-02 12:20:17 -03:00
Jordan Harband
e7a5b7992b
[meta] update repo links to point to org 2019-04-24 16:08:34 -07:00
Daniel Li
ff77ac17af
[Docs] update bash cdnvm script to properly handle aliases
- Only works for common aliases like `default`, `system`, `node`, `lts/*`, `iojs` etc.
 - Prevent unnecessary running of `nvm use`
2019-03-12 16:43:08 +00:00
Eric Lewis
1ede50cbae
[Docs] Add note about what version of node new shells run with.
Fixes #2000
2019-02-22 10:04:13 -05:00
Christopher Sahnwaldt
930507dbbc
[Docs] README.md: mention --no-colors option 2019-02-23 09:53:56 +01:00
Jarvis Mercer - Amir Mohammad Safari (AMSL)
41eb40821b
[Docs] add “update” terminology to installation section 2019-01-26 01:00:43 +03:30
jjangga0214
890fbb5581
Update README: sync node release schedule url 2019-02-15 11:11:01 +09:00
Ben Wiley
7aee54b76c
[readme] reorganize “deeper shell integration” instructions 2017-06-29 14:23:03 -04:00
Chris Meyers
6262b5a666
[readme] rearrange install args 2023-10-23 21:48:11 -06:00
Ellet
925cff2c78
[readme] update M1 to “Apple Silicon” because of M2 and M3; fix typos 2023-12-01 05:56:48 +03:00
Hao Cheng
064f2597d1
[readme] fix level of headings 2023-11-12 14:18:39 +01:00
Justin Dhillon
fd412645ca
[readme] add section on bare nvm install 2023-10-23 10:25:26 -07:00
Michael Di Prisco
8a83b36688
[readme] missing parenthesis 2023-10-06 02:36:26 +02:00
Jordan Harband
c92adb3c47
v0.39.5 2023-08-21 21:10:10 -07:00
heungjun.park
a1601eddb8
[readme] add examples of setting specific versions as default
Co-authored-by: heungjun.park <rockheung@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2023-07-20 17:39:37 +09:00
Jordan Harband
8fbf8ab694
v0.39.4 2023-07-24 18:29:54 -07:00
Emmanuel Ogbizi
f86847fdd2
[readme] add nvshim tool alongside avn 2020-04-15 19:27:44 -04:00
emmanuel-ferdman
9a769630d7
[readme] fix typo in resolv.conf filename
Signed-off-by: emmanuel-ferdman <35470921+emmanuel-ferdman@users.noreply.github.com>
2023-06-18 15:41:40 +03:00
Augustin Mauroy
c26422a03e
[readme] Update logo header 2023-06-05 10:34:20 +02:00
milesfrain
7c3cd81ad9
[readme] Add instructions on how to install without editing shell config
I had to dig into #2410 to learn about the `PROFILE=/dev/null` technique to install without appending to my shell config. Figured this note would be good to add in the main installation docs.
Also added a note on how to do this as a one-liner which was not obvious for me.
2023-04-25 13:49:16 -07:00
JC (Jonathan Chen)
d1a22a63bd
[readme] cdnvm function: fix shellcheck errors
Resolves #3081
2023-04-09 09:21:56 -04:00
Peter Dave Hello
766341fca1
[readme] Update Travis CI badge and link url
travis-ci.org is deprecated and replaced by app.travis-ci.com for a while
2023-04-03 22:50:48 +08:00
Thomas Levine
fe06825a96
[tests] Update urchin repository link 2022-12-25 10:38:26 +00:00
Jordan Harband
552db40622
v0.39.3 2022-12-23 12:57:56 -08:00
mattjaf
59f448d595
[Docs] added WSL troubleshooting with solution to (6) Could not resolve host: raw.githubusercontent.com
Fixes #2958.
2022-11-30 19:25:20 -08:00
Jordan Harband
0ccd099bff
v0.39.2 2022-10-13 16:25:25 -07:00
Josh Kelley
c6269e0ac2
[Fix] Don't override Mac M1 architecture for node ^14.17
Fixes #2743

Co-authored-by: Josh Kelley <joshkel@gmail.com>
Co-authored-by: Raz Luvaton <16746759+rluvaton@users.noreply.github.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2022-03-30 10:53:01 -04:00
BatemaDevelopment
28b3b0e324
[readme] Update Alpine Linux Section
- Update install directions to include `python3`, instead of `python2`, which is deprecated since Alpine 3.13.
2022-09-27 06:44:13 -04:00
Robert Shuford
4893128c61
[readme] optimize calling of nvm version in zsh 2022-08-25 21:12:36 -04:00
etienne-miralytik
8fd948001e
[readme] Fix Ansible Linting Errors
Fixes #2860.

This fixes these two linting errors:
- fqcn-builtins: Use FQCN for builtin actions.
- name: All names should start with an uppercase letter. (name[casing])
2022-08-24 18:58:38 +02:00
Jer Wilson
5a4e9184f1
[readme] cdnvm(): handle failed dir change
If cd command fails, return whatever cd returned, instead of marching ahead
2022-06-27 17:21:45 -07:00
SnipUndercover
95269ff055
[readme] Fix Git Install instruction list structure 2022-05-26 01:13:00 +02:00
Danny Neumann
2cfced740a
[Docs] Add note about creating .bashrc file *as well as* .bash_profile.
My problem was that I didn't have EITHER file, and hopefully the notes will help someone else reading the docs.
2022-01-27 10:53:36 -08:00
Jordan Harband
ef3b20c21e
[readme] add logo 2022-04-22 16:53:49 -07:00
Jordan Harband
bd083ff367
[readme] minor cleanup 2022-04-11 14:09:37 -07:00
Ponder
7d86701067
[readme] fish: send output from load_nvm to /dev/stderr 2022-04-01 13:00:58 -04:00
legendecas
c367d7daa0
[Docs] fix fish load_nvm variable interpolations 2022-03-28 23:28:53 +08:00
Antony Tse
d157cac689
[readme] Correct typos in "Macs with M1 chip" section 2022-03-09 09:41:48 +00:00
Kai
2c0c34f10e
[Docs] HTTP => HTTPS 2022-01-16 14:25:11 +01:00
Luke LaFountaine
d004c6b064
[readme] clarify instructions for running Node on M1 Mac 2021-12-03 16:52:18 -05:00
Jordan Harband
9600617c52
v0.39.1 2021-12-17 14:55:52 -08:00
Ankit Kumar
328dd5004e
[Fix] nvm_get_download_slug: better architecture selection for M1 Macs
If the node version is below 16.0.0 then nvm will select x86_64 architecture, else arm64 architecture.
2021-11-21 15:59:39 +05:30
Robert Elliot
30486b9bd9
[readme] Balance the if statement in bash example
Nesting the `elif` at the same level as the `if` and `fi` makes it clear which code applies to which branch (no .nvmrc file / found .nvmrc file).

I wasted a while looking at it trying to work out how it did anything if there was a .nvmrc file, because obviously the `if` didn't match and I couldn't see the `elif` branch.
2021-11-22 14:34:43 +00:00
Ian Grayson
e9b26938b9
[readme] Describe another failure case for installing node versions from source on mac arm64 machines.
It seems to be related to https://github.com/nodejs/node/issues/39313 (which describes a similar issue).
2021-11-15 04:23:42 -08:00
Waldir Pimenta
13f3cdcdf7
README: clarify how to specify default packages 2019-01-11 10:42:33 +00:00
Jordan Harband
3d9c31d944
v0.34.0 2019-01-07 23:01:16 -08:00
Javier Infante
5e065ec026 [Docs] fixing cdnvm on .bashrc 2018-12-31 08:42:58 +01:00
Jordan Harband
deb2a9b821
[Docs] fix eclint 2018-12-19 15:36:24 -08:00
Joel Parker Henderson
fb83eeb140
[Docs] Add Ansible task example
Add Ansible task example to show how to install nvm and update it.

Ansible is a systems administration tool.
See https://github.com/ansible/ansible

My personal experience of `nvm` is that installing via Ansible is good, and that a good example can help. This example took me about an hour to learn, so I'm hoping to save other people some time. This example is somewhat different than any others that I found on the web. There may be a better way to write it, and if so, please improve it.
2018-12-19 12:45:59 -08:00
Peter Dave Hello
f3fd5eff46
[Docs] Improve md file syntax
- Lists should be surrounded by blank lines
- Use only `1.` for ordered list item prefix
- Starting bulleted lists at the beginning of the line
- Fenced code blocks should be surrounded by blank lines
2018-07-15 02:26:05 +08:00
Kayla Altepeter
423252a99c
[docs] update README to fix docker run command flag order 2018-10-18 22:30:05 -05:00
Ole Johan Andersen
2a294ebd61
[Docs] improve instructions for manual install 2018-10-24 19:49:55 +02:00
Daniel Li
e06f735776
Improve Bash alias
This will take into account nested directories inside your main project
directory
2018-07-26 16:13:07 +01:00
Daniel Li
355c4c7915
[Docs] Add section on automatic nvm use in Bash 2018-07-15 19:08:15 +01:00
Fábio Antunes
217a5bb0de
[Docs] Added fish nvm 2018-10-21 23:31:20 -07:00
et304383
2d97ce5f7b
[Docs] add instructions for installing a specific version 2018-08-27 11:50:48 -03:00
Erik Lilja
8542df4ac5
[New] add support for $XDG_CONFIG_HOME 2018-08-14 21:45:40 +02:00
JBallin
41dc4218b9 [Docs] add --no-use option to installation 2018-06-17 21:31:56 -07:00
SrHuevo
d08d8607f5
fix for .nvmrc script 2018-05-30 09:02:29 +02:00
Jay Williams
e7b53a01fd
Grammar update 2018-05-26 23:17:08 +01:00
Siddharth Sakhadeo
b81c120e0c fix failing if check in autoload script 2018-05-25 15:33:42 -07:00
Josh Sleeper
04c27e23fe
add --tags to git fetch in manual upgrade
facilitates older `git` fetching tags so that it can actually upgrade properly
2018-04-25 14:55:31 -07:00
Jordan Harband
93990ab7da
v0.33.11 2018-04-25 13:25:35 -07:00
Jordan Harband
177a9673a7
v0.33.10 2018-04-24 22:08:51 -07:00
Jordan Harband
1b14e6b4d9
v0.33.9 2018-04-14 22:38:18 -07:00
Peter Dave Hello
d9dc8464fd
[Doc] Add macOS install script note about Git
Closes #1782
2018-04-13 01:14:39 +08:00
Peter Dave Hello
8ff437ae51
[Doc] Fix manual install & upgrade guide, fix #1772 2018-04-12 23:58:30 +08:00
Ed Reel
663bddee9b
[docs] Add removal instructions to README.md
Closes #1767.
2018-04-09 10:36:54 -05:00
Guy Lepage
bc87d3dd1c
removed global install on README.md. closes #1773 2018-04-04 19:03:03 -04:00
Peter Dave Hello
2850e65b62
[Docs] Fix some typos 2018-03-03 21:18:42 +08:00
Josh Soref
2859a19bbd
[Docs] fix spelling 2018-03-06 04:38:01 +00:00
Peter Dave Hello
750571056c
[Fix] Correct most of the wrong indentation 2018-02-26 02:20:21 +08:00
Peter Dave Hello
9f34b3e95c Remove trailing space 2018-02-26 01:03:01 +08:00
Peter Dave Hello
225e447b54 [Doc] Update Docker image build info in README.md 2018-02-19 00:27:04 +08:00
Christoph Krautz
74f455e610 [Docs] Add reminder that NVM_DIR should not contain trailing slash, fix for #1708 2018-02-09 11:51:46 +01:00
Karthik K
f5b5f2d41d
[copyright] year to 2010 obsoleting future updations 2018-01-26 12:20:13 +05:30
Yannick Ihmels
7ca8acc98d
[Docs] [Tests] Add escape sequences; add test for aliased . 2018-01-13 21:25:30 +01:00
Jordan Harband
3e81904525
Update minimum git version to v1.17.10
Per https://github.com/creationix/nvm/pull/1704#discussion_r161366186
2018-01-12 23:24:56 -08:00
p-salido
9273f23bc8
[Docs] Explain .nvmrc better 2017-11-23 23:09:44 -05:00
Jordan Harband
7ad6d98ced
v0.33.8 2017-12-12 10:43:17 -08:00
Jordan Harband
65f0572bdc
v0.33.7
Fixes
 - fix unassigned variable (#1665, #1664)
 - Fix for $path used by zsh (#1669)
 - `set -u`: ensure `NVM_USE_OUTPUT` is always set (#1671)
 - `install.sh`: Fix a bug that block that installation of node in install.sh (#1676)
 - `nvm install-latest-npm`: fix node 4-4.6

Documentation
 - Make `nvm cache clear` message less ambiguous (#1644)
 - Added missing piece (#1658)
2017-12-08 21:21:42 -08:00
David Gatti
a7b7eec0c5
[Docs] Added missing piece
This sentence broke my brain when I read it the first time :) I hope this helps.
2017-11-08 01:02:15 +01:00
Jordan Harband
b546436113
v0.33.6 2017-10-23 23:53:26 -07:00
Darío Hereñú
016bc134d5 Typo 2017-10-23 02:23:04 -03:00
Christopher Beland
a954458829
[Docs] Improve git installation instructions 2017-10-18 10:39:11 -04:00
Jordan Harband
6597e11971
v0.33.5 2017-09-29 12:50:27 -04:00
Peter Dave Hello
7753b24948
[Docs] Update README.md for Alpine linux reference
Add 4 packages as Alpine Linux wiki suggested:
(grep util-linux binutils findutils)

https://wiki.alpinelinux.org/wiki/How_to_get_regular_stuff_working
2017-09-07 18:00:08 +08:00
Jordan Harband
d91b6197f3
v0.33.4 2017-09-04 22:59:50 -07:00
Jordan Harband
6f19babbff
v0.33.3 2017-09-03 12:46:59 -07:00
GeekBlogTV
b3bdbb2712
[Docs] updated to reflect current script output 2017-07-08 01:31:13 -05:00
Mike Ferrari
6921adb2f4
[Docs] add note about Linux troubleshooting 2017-06-26 12:22:34 -07:00
Peter Dave Hello
f37ddea78f
[Docs] Fix typos in Docker instructions 2017-07-08 18:50:06 +08:00