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
Install on Ubuntu 13.10 causes login loop #346
Comments
I had this problem today, and the underlying problem (as found in /usr/sbin/lightdm-session: 24: /home/eric/.nvm/nvm.sh: Bad substitution
/usr/sbin/lightdm-session: 504: /home/eric/.nvm/nvm.sh: Syntax error: "(" unexpected (expecting ";;") Line 24 is: export NVM_DIR=$(cd $NVM_CD_FLAGS $(dirname ${BASH_SOURCE[0]:-$0}) > /dev/null && pwd) Line 504 is: INSTALLS=( `nvm use $VERSION > /dev/null && npm -g -p ll | \grep "$ROOT\/[^/]\+$" | cut -d '/' -f $(($ROOTDEPTH + 2)) | cut -d ":" -f 2 | \grep -v npm | tr "\n" " "` ) @Gadr, are you sure |
Sorry, I was not precise. Nice investigation, BTW. |
In other words, for Ubuntu users, using One approach might to be detect if Either way, the underlying bug should be fixed, but this would at least limit how catastrophic a syntax bug can be. |
Precisely. On Mon, Jan 6, 2014 at 3:15 PM, Eric Mill notifications@github.com wrote:
|
I had the same issue. the NVM line was in .bash_profile. Ubuntu use dash as default shell so i've changed the shebang line to #!/bin/bash in .nvm/nvm.sh |
@bengentil Changing the shebang of |
That's great, thank you! |
Thanks! Cheers! On Wed, Jan 15, 2014 at 4:48 AM, Eric Mill notifications@github.com wrote:
|
After installing NVM via the script, it automatically adds the following line to
~/.profile
This causes a login loop on any distro based on Ubuntu 13.10.
Logging into a different tty and deleting this line from
~/.profile
solves the issue and allows login as usual.Furthermore,
.profile
is not sourced by default, so Ubuntu users must copy this instruction to.bashrc
.If we move it there, there will be no more problems. What do you think?
The text was updated successfully, but these errors were encountered: