-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help output is misleading re nvm install
argument order
#2301
Comments
This is all quite confusing. The initial 404 is confusing since https://nodejs.org/dist/v14.10.0/node-v14.10.0-linux-x86.tar.xz exists. Additionally, What is ash? Have you tried on bash 4, or only on bash 5? |
I only have one option for a Bash binary in Alpine. At boot I load zsh, but the zsh they build for Alpine is not Bourne-compatible. |
Just typed ‘export $PATH’ into the rogue ash/AWOL bash, because the environment variables were missing, and what I suppose was supposed to follow my “k” spontaneously got coughed up, and Bash resurrected itself, probably not related to the issue, but here’s the rest of that diagnostic info, I think. export $PATH
/bin/ash: export: line 4: /root/.nvm/versions/node/v9.11.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin: bad variable name
'hell version: 'HTTP/2 200
uname -a: 'Linux 4.20.69-ish iSH 1.0 (74) Aug 17 2020 23:29:03 i686 Linux'
OS version: Welcome to Alpine Linux 3.12
curl: /usr/bin/curl, curl 7.69.1 (i586-alpine-linux-musl) libcurl/7.69.1 OpenSSL/1.1.1g zlib/1.2.11 nghttp2/1.41.0
wget: /usr/bin/wget, GNU Wget 1.20.3 built on linux-musl.
git: /usr/bin/git, git version 2.26.2
grep: unrecognized option: version
BusyBox v1.31.1 () multi-call binary.
Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
Search for PATTERN in FILEs (or stdin)
-H Add 'filename:' prefix
-h Do not add 'filename:' prefix
-n Add 'line_no:' prefix
-l Show only names of files that match
-L Show only names of files that don't match
-c Show only count of matching lines
-o Show only the matching part of line
-q Quiet. Return 0 if PATTERN is found, 1 otherwise
-v Select non-matching lines
-s Suppress open and read errors
-r Recurse
-i Ignore case
-w Match whole words only
-x Match whole lines only
-F PATTERN is a literal (not regexp)
-E PATTERN is an extended regexp
-m N Match up to N times per file
-A N Print N lines of trailing context
-B N Print N lines of leading context
-C N Same as '-A N -B N'
-e PTRN Pattern to match
-f FILE Read pattern from file
grep: /bin/grep,
awk: /usr/bin/awk, GNU Awk 5.1.0, API: 3.0
sed: /bin/sed, This is not GNU sed version 4.0
cut: unrecognized option: version
BusyBox v1.31.1 () multi-call binary.
Usage: cut [OPTIONS] [FILE]...
Print selected fields from each input FILE to stdout
-b LIST Output only bytes from LIST
-c LIST Output only characters from LIST
-d CHAR Use CHAR instead of tab as the field delimiter
-s Output only the lines containing delimiter
-f N Print only these fields
-n Ignored
cut: /usr/bin/cut,
basename: /usr/bin/basename, --version
rm: unrecognized option: version
BusyBox v1.31.1 () multi-call binary.
Usage: rm [-irf] FILE...
Remove (unlink) FILEs
-i Always prompt before removing
-f Never prompt
-R,-r Recurse
rm: /bin/rm,
mkdir: unrecognized option: version
BusyBox v1.31.1 () multi-call binary.
Usage: mkdir [OPTIONS] DIRECTORY...
Create DIRECTORY
-m MODE Mode
-p No error if exists; make parent directories as needed
mkdir: /bin/mkdir,
xargs: unrecognized option: version
BusyBox v1.31.1 () multi-call binary.
Usage: xargs [OPTIONS] [PROG ARGS]
Run PROG on every item given by stdin
-0 Input is separated by NULs
-a FILE Read from FILE instead of stdin
-r Don't run command if input is empty
-t Print the command on stderr before execution
-p Ask user whether to run each command
-E STR,-e[STR] STR stops input processing
-I STR Replace STR within PROG ARGS with input line
-n N Pass no more than N args to PROG
-s N Pass command line of no more than N bytes
-P N Run up to N PROGs in parallel
-x Exit if size is exceeded
xargs: /usr/bin/xargs,
nvm current:
which node: $NVM_DIR/versions/node/v9.11.2/bin/node
which iojs:
which npm:
npm config get prefix: bash: npm: command not found
npm root -g: bash: npm: command not found |
There's a lot of errors happening that shouldn't be - it's possible ash isn't POSIX-compliant. Also, you want |
You’re being distracted by the scientific wizardry which I use for sanity checks. Science. |
I'm going to have to beg ignorance here. I'm not at all familiar with BusyBox, or ash, or even Bash 5.0. However, testing locally, |
Legacy limitation, ergo I’ve got ahold of an old copy of nvm. ‘Last stand perk activated’ |
I don’t mean you have an old nvm, i mean that “the original way nvm install was implemented” constrains all future versions of nvm. |
trying to do Originally posted by @talbarda in npm/npm#20234 (comment) |
That's a fair point; i'll look into improving the help output there. |
nvm install
argument order
I'm not familiar with "ash" as a shell, what is
k
? @62f can you file a new issue?Originally posted by @ljharb in #1950 (comment)
The text was updated successfully, but these errors were encountered: