Comments (8)
and it couldn't switch my active install
That sounds like an issue with node installed twice, likely once into /usr/bin
(by some other process) and into /usr/local/bin
by n
. The version which is found depends on the order of directories in the PATH
environment variable.
If you run n doctor
it will check for this situation.
from n.
fixed by using the POSIX compliant version on the POSIX branch
from n.
What version of Bash are you using in the failing environment?
There is some interesting syntax on that line, so maybe a really old or really new version of Bash is complaining:
from n.
I'm using sh, not bash, that might be the issue here
from n.
The n
script starts with a shebang interpreter directive to use bash:
So in theory you can use sh
(or zsh
et al) as your shell, but the n
script is interpreted using bash
.
What version of Bash are you using in the failing environment?
Assuming you have a bash available, what I meant was what version is it? For example, I see:
% bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin21)
Copyright (C) 2007 Free Software Foundation, Inc.
from n.
Sadly no bash, it's a super barebones buildroot system i'm testing, I don't even have apt
or curl
which makes changing node versions...difficult. n
comes to save the day, since I do have npm
, but that syntax breaks on sh
. #751 's changes fix this so I'm looking forward to it's merge or completion :)
from n.
Thanks for the info. A vote for the posix compatible version. :-)
from n.
(although it acted a little strange on my try, n's tui only saw the version it installed and not the one already present on the system, and it couldn't switch my active install)
from n.
Related Issues (20)
- Download version indexes failure, version switch failure! HOT 6
- Using a cached download fails HOT 5
- Hlo HOT 1
- Cron cannot find node HOT 7
- /usr/local vs. /usr/local/bin HOT 2
- Add a new command (say `use`) to switch to preinstalled versions of Node.js HOT 12
- Retry when downloading/extraction of Node.js tar fails HOT 12
- OS recogonition mistakes HOT 4
- Modify repo "About" to match npm search criteria HOT 1
- LTS downloading stable instead of LTS HOT 3
- corepack is not removed when downgrading node HOT 4
- Default install location (N_PREFIX) to home HOT 4
- Unsupported Platform for window HOT 1
- Incorrect cache folder path in show_diagnostics HOT 2
- Installation error. Pls help. HOT 3
- n latest curl: (23) Failed writing received data to disk/application HOT 3
- Problem with curl 8.7.1 HOT 4
- [Question] Maintaining global packages after installing new nodejs version 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 n.