Comments (7)
fnm rm (node -v)
worked. Suggest this gets doc'd.
from nvm.fish.
@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.
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.
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.
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.
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.
@jwhitmarsh It should be possible using your own node
wrapper function.
See also:
from nvm.fish.
Related Issues (20)
- VSCode debug "can't find Node.js binary" HOT 4
- fish: Unknown command: node HOT 5
- support for man pages HOT 5
- Node is unavailable in new shells HOT 11
- nvim + nvm configuration HOT 5
- Doesn't get installed with fisher HOT 2
- `nvm alias` HOT 5
- download url wrong when `nvm_arch=x64-musl` HOT 2
- nvm install-latest-npm equivalent HOT 4
- Does not handle env variables at startup in VSCode environment (OSX) HOT 20
- install command can fail if run at the same time in multiple terminals HOT 7
- lsr(list-remote), install give me error and list(ls) give me nothing HOT 11
- getting error on line 225 in nvm.fish using fish shell v3.4 & 3.6 HOT 3
- Add nvm exec and nvm run commands HOT 10
- Need to reinstall node on session restart HOT 2
- macOS / brew: After "nvm use default", still node from brew is on path HOT 27
- nvm-exec script HOT 3
- .nvmrc regex too strict HOT 1
- $nvm_default_version not working HOT 2
- note to self - persist across shells
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvm.fish.