Giter Club home page Giter Club logo

Comments (5)

ljharb avatar ljharb commented on August 22, 2024

In the dir you're opening the shell, is there a .nvmrc file?

from nvm.

attisimon avatar attisimon commented on August 22, 2024

There is no .nvmrc file, this happens in any folder.
Or should I say it was happening, after a reboot everything seems to be happening as expected, any new shell has the default as default, 18 in my case.

from nvm.

ljharb avatar ljharb commented on August 22, 2024

Weird, please reopen if it happens again.

from nvm.

attisimon avatar attisimon commented on August 22, 2024

Just a note, this happened again, when having version 16 as default and setting 18 as the new default. Last time I thought there was an update that needed a system restart, but this time there was no update. However, the problem went away again with a restart.

The steps I took this time was:
0. I had version 16 set as default, with version 14 and 18 also installed

  1. I set the new default to be lts/hydrogen and set to 'use' the new default
  2. node -v returned version 18 as expected, but if the Terminal was restarted, the command returned version 16, even if nvm list was displaying the default alias as lts/hydrogen
  3. I removed version 16 to make sure 18 will be the default
  4. after a reboot, out of curiosity, I installed lts/gallium again and node -v this time returned version 18 as expected

For now I cannot inspect this any further, but I will make a note in the future if I notice anything

from nvm.

ljharb avatar ljharb commented on August 22, 2024

Thanks. It would have been helpful to know what the value of $PATH was during step 2, for future reference.

from nvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.