Comments (8)
- Is this behavior unique to the version being set via env var? Or does it also occur when set via
.node-version
file? - Is this behavior consistent with rbenv, of which we are a direct clone? If not, is it because we are behind rbenv upstream or because we're doing something differently?
(not meant specifically for you, @technicalpickles but just in general)
from nodenv.
#22 opened to accept with/without v prefix.
from nodenv.
Is this behavior unique to the version being set via env var? Or does it also occur when set via .node-version file?
Looks like it's only through the environment variable:
$ echo 'trololol' > .node-version
$ node --version
nodenv: version `trololol' is not installed
$ NODENV_VERSION=trololol node --version
^C
from nodenv.
@technicalpickles do you use rbenv? if so, can you replicate with rbenv?
from nodenv.
I do:
$ RBENV_VERSION=2.1.1 ruby --version
ruby 2.1.1p76-github (development) [x86_64-darwin13.0]
$ RBENV_VERSION=v2.1 ruby --version
rbenv: version `v2.1' is not installed
ruby 2.1.1p76-github (development) [x86_64-darwin13.0]
$ RBENV_VERSION=v2.1.1 ruby --version
rbenv: version `v2.1.1' is not installed
ruby 2.1.1p76-github (development) [x86_64-darwin13.0]
It looks like the behavior is to fallback to the default ruby.
from nodenv.
I've tried replicating with latest master: 6abd31a but can't replicated:
$ NODENV_VERSION=lol ./bin/nodenv exec node --version
nodenv: version `lol' is not installed
It doesn't seem to behave exactly as rbenv, because it emits an error and exits rather than falling back to system node.
Could you provide debug output? (NODENV_DEBUG=1
)
from nodenv.
Also, I just recently merged latest updates from rbenv upstream. So kindly test against 7594630 if possible.
from nodenv.
@jasonkarns I've updated, and confirmed it working now. Thanks a ton!
$ NODENV_VERSION=0.8 node --version
v0.8.28
$ NODENV_VERSION=v0.8 node --version
v0.8.28
from nodenv.
Related Issues (20)
- How do things like yarn installs work within nodenv? HOT 3
- Support Corepack HOT 6
- Question: how to best run globally installed npm module? HOT 4
- Question: How would I go about removing nodenv and all node instances from a server? HOT 1
- Advice: nodejs latest release does not appear in $nodenv --list HOT 4
- Suggestion/Feature: LTS Version marker on the install list HOT 2
- strange undesired behavior when installing global dep HOT 1
- GPL License Compliance Issue HOT 2
- homebrew formula broken HOT 1
- Installing global package with yarn will not yield to a shim after rehash HOT 2
- `nodenv install` tries to use python and fails on MacOS Monterey 12.3 and later and fails HOT 6
- Support pnpm HOT 5
- In addition to .node-version, support .tool-versions and .nvmrc HOT 4
- Download fails with no error code
- No Debian / Ubuntu package available in the official repositories HOT 4
- Create Debian installation packages HOT 1
- Not respecting makefile HOT 2
- RBENV reference in the README HOT 2
- Documents HOT 1
- nodenv init creates duplicates in PATH HOT 2
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 nodenv.