Comments (5)
Hmm, doesn't work for me. I get "," for $NVM_DIR which isn't going to work.
from nvm.
You're right! Hmm... there has to be some ZSH equiv... I'll keep looking.
from nvm.
By replacing the line with the following, nvm worked well with both shells, at least in my env. (I'm not sure if it's the best solution, though) :
export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}); pwd)
Anyway, please note that cd ...; pwd
is needed in case the argument is a relative path.
from nvm.
Your solution worked for me yibe, I made a pull request to creationix to see if it will work for his BASH. Hopefully!
from nvm.
Pull accepted :)
from nvm.
Related Issues (20)
- windows server 2019 do not respond for any nvm commands during remote session or when execute over azure devops pipeline task HOT 1
- [spam]
- terminal locked > sh-5.2$ from "wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash" HOT 9
- node doesn't initialize until "nvm use ..." is ran HOT 2
- install node 14 on mac m2 failed HOT 1
- Errors compiling 14.20.0 on Apple silicon with latest xcode-tools. HOT 1
- Node version does not persist across new terminal sessions after macOS restart HOT 3
- [BUG] `nvm` uses `most` even when `most` is not installed HOT 6
- Node.js v21.7.1 documentation
- `nvm install 14` compile fails HOT 2
- Installation : The term 'bash' is not recognized as the name HOT 7
- Installation Error: Invoke-WebRequest : A parameter cannot be found that matches parameter name 'o-' HOT 2
- Feature Request: General Name for Install Script HOT 2
- nvm ls-remote returns N/A HOT 4
- NVM just will not change version of node HOT 8
- Problems installing/using nvm in AppCenter HOT 2
- Long loading times fixed by better design HOT 1
- [spam]
- NVM problem with corepack and yarn HOT 1
- Curl Error HOT 9
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.