Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[readme] add install error tips#2400

Merged
ljharb merged 1 commit intonvm-sh:masterfrom
shiyutim:master
Feb 15, 2021
Merged

[readme] add install error tips#2400
ljharb merged 1 commit intonvm-sh:masterfrom
shiyutim:master

Conversation

@shiyutim
Copy link
Contributor

@shiyutim shiyutim commented Jan 7, 2021

No description provided.

README.md Outdated

- You might need to restart your terminal instance or run `. ~/.nvm/nvm.sh`. Restarting your terminal/opening a new tab/window, or running the source command will load the command and the new configuration.

- Previously used `bash`, but with `zsh` installed. You need to write the configuration to `~/.zshrc` and run `source ~/.zshrc`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate on this scenario?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

macOS default command line tools is bash, but I have installed oh my zsh. When i run the installation command, open the new command line tools and type nvm -l, it will prompt nvm: command not found.

When I write the configuration to .zshrc , type 'nvm-l' and it will work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following the steps in https://github.com/nvm-sh/nvm#troubleshooting-on-macos would already lead to "Try adding the snippet from the install section", which should have fixed things for you. Did it not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I didn't notice, but why not put it together with the above.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tweaked it a bit.

@ljharb ljharb added informational installing nvm Problems installing nvm itself shell: zsh labels Feb 15, 2021
@ljharb ljharb changed the title docs: add install error tips [readme] add install error tips Feb 15, 2021
@ljharb ljharb merged commit a5742d4 into nvm-sh:master Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

informational installing nvm Problems installing nvm itself shell: zsh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants