Giter Site home page Giter Site logo

Comments (7)

hildjj avatar hildjj commented on May 13, 2024 2

fnm rm (node -v) worked. Suggest this gets doc'd.

from nvm.fish.

jorgebucaran avatar jorgebucaran commented on May 13, 2024 2

@hildjj @maparent The new version of this package will not have a rm command (at first), so the only way to get back to system node is to uninstall this package.

Is this something you do often? If so, I can work on a system or default alias to do just that.

from nvm.fish.

yegorius avatar yegorius commented on May 13, 2024 2

I have created a fork where you can revert to system node and which doesn't set node version globally. Basically, it doesn't use $fish_user_paths universal variable and only changes $PATH which only affects current fish session. Also, nvm unuse will reset the $PATH to its initial state.
https://github.com/yegorius/fish-nvm

from nvm.fish.

hildjj avatar hildjj commented on May 13, 2024 1

Candidly, I went back to zsh. However, I'm happy to talk through my use case.

I develop with a system-installed nodejs (via homebrew on OSX). I like that it stays up-to-date when I update the rest of my local stack. Periodically (usually when I get a CI failure on an older version of Node), I want to drop down to a given version, debug, then go back to the most recent version.

from nvm.fish.

jwhitmarsh avatar jwhitmarsh commented on May 13, 2024 1

Apologies if this is the wrong place for this, but I think it is linked - I would add that if you leave a directory with an .fnmrc the node version should switch back to system (assuming there isn't an .fnmrc in the new dir)

from nvm.fish.

maparent avatar maparent commented on May 13, 2024

I tried removing (on mac) and it still uses the old binary that was copied in ~/.config/fnm/bin/node
Also it means if I go back and forth between system and specific version it must re-download. Not that enthusiastic about that solution.
As for selecting the previous version, it's the fnm copy of my system node, which may not be the system node. (For one thing, the latter gets updated semi-automatically.)
So I'd really appreciate a fnm system command.

from nvm.fish.

jorgebucaran avatar jorgebucaran commented on May 13, 2024

@jwhitmarsh It should be possible using your own node wrapper function.

See also:

from nvm.fish.

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.