hrabal
hrabal

Reputation: 165

Reverting to nvm default version

Whenever I use 'cd', I always got

Reverting to nvm default version
N/A: version "default -> N/A" is not yet installed.

You need to run "nvm install default" to install it before using it.


this message, I tried to use

nvm alias default node 

but it still won't work

it said "! WARNING: Version 'node' does not exist."

what can I do for this situation?

Upvotes: 11

Views: 9076

Answers (2)

Mohd Sher Khan
Mohd Sher Khan

Reputation: 1127

Do only few things below:

goto => node_module =>react-native =>scripts => find-node.sh

here comment all code of find-node.sh

Save and run your project.

you will find project working fine. Thanks..

Upvotes: 6

Tim Keating
Tim Keating

Reputation: 6641

Give this a try:

nvm current

And then whatever the current version is (for me it was 'system'):

nvm alias default system

That should (AFAIK) tell nvm to use the currently-installed version as the default.

Upvotes: 39

Related Questions