-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Description
The change of the field separator from space to \n\t
triggers the problem.
I worked around it by setting the IFS
back to default in my bash script, I assume nvm needs to find a similar work around
IFS=$' ' # nvm expects the default field separator
# DO nvm stuff
IFS=$'\n\t' # reset to use bash strict mode
The field separator is changed because I use bash strict mode for my CI build script which invokes nvm install
http://redsymbol.net/articles/unofficial-bash-strict-mode/
-
Operating system and version:
various, also seesort
command not found #1227 and -bash: nvm_ls node: command not found #1514, I'm experiencing specifically on Ubuntu -
nvm debug
output:
$ nvm debug
nvm --version: v0.33.2
$SHELL: /bin/bash
$HOME: /home/bamboo
$NVM_DIR: '$HOME/.nvm'
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu)'
uname -a: 'Linux 3.19.0-43-generic #49-Ubuntu SMP Sun Dec 27 19:43:07 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux'
OS version: Ubuntu 15.04
curl: /usr/bin/curl, curl 7.38.0 (x86_64-pc-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
wget: /usr/bin/wget, GNU Wget 1.16.1 built on linux-gnu.
git: /usr/bin/git, git version 2.1.4
nvm current: v0.12.7
which node: $NVM_DIR/versions/node/v0.12.7/bin/node
which iojs:
which npm: $NVM_DIR/versions/node/v0.12.7/bin/npm
npm config get prefix: $NVM_DIR/versions/node/v0.12.7
npm root -g: $NVM_DIR/versions/node/v0.12.7/lib/node_modules
nvm ls
output:
$ nvm ls
-> v0.12.7
v4.2.4
system
-
How did you install
nvm
? (e.g. install script in readme, homebrew):
chef -
What steps did you perform?
-
What happened?
nvm install fails -
What did you expect to happen?
-
Is there anything in any of your profile files (
.bashrc
,.bash_profile
,.zshrc
, etc) that modifies thePATH
?
- If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?