Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reverting to nvm default version

Tags:

node.js

npm

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?

like image 357
hrabal Avatar asked Mar 02 '26 08:03

hrabal


2 Answers

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.

like image 134
Tim Keating Avatar answered Mar 04 '26 22:03

Tim Keating


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..

like image 38
sherkhan Avatar answered Mar 04 '26 22:03

sherkhan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!