-
Notifications
You must be signed in to change notification settings - Fork 375
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
nvm: command not found #1342
Comments
@ryanpcmcquen: Try exiting the shell and then log back in. I'm guessing |
Nope. The fix was setting |
The install should have a hook to run that script, with the correct |
Just out of curiosity, what is the output of your |
# /etc/skel/.bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
# Put your fun stuff here.
export NVM_DIR="/usr/local/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
cd ~/Downloads/ |
Thanks for the fix, @ryanpcmcquen. Worked well for me. Do you know why |
Just found this gem in a crouton issue: sudo mount -i -o remount,exec /home/chronos/user Looks like |
@uberhacker, @cstrouse, @jam7, and @skycocker, what do you think about rolling that into the Chromebrew |
Hey @ryanpcmcquen: I have mixed feelings. I'm not a big fan of installing anything package related in the home directory. I know a lot of GitHub projects do it this way, including nvm, but IMHO I don't think it's the most elegant approach in Chrome OS. It looks like this package needs reworked to install correctly in |
IMO |
The issue here appears to be the binary is corrupt. If you install via |
I think we ought to document, and tell users to make sure to add /usr/local/bin to their path, but I do not think we should be in the business of modifying people's PATH by default. I'm also somewhat philosophically opposed to remounting ~ with execute perms... My main reasoning is that I like to keep my chromebook as close to what is delivered by google as possible - the less modifications we have to make to get things running the better. I can see why having +x on ~ would be nice, and have occasionally been inconvenienced by it. Now I have just gotten used to making myself a /usr/local/fred directory that I do all my normal work/development in... not idea, but I prefer that over removing yet another protection that chromeos has. That is the other benefit of not changing the mount options. It is done as an extra layer of security feature for normal chromeos usage - my making the place where things get downloaded by the browser -x, it removes a whole class of exploits. Similarly, I go out of my way not to disable the secure boot loader etc. You can read about the security design of chromeos here: https://www.chromium.org/chromium-os/chromiumos-design-docs/security-overview In particular, having the root partion be readonly, and having user home directories be -x is a designe feature I'd like to keep. All that said, I woudn't be against giving people the option, but I'd be leary of making it an automatic default. |
Is the binary fixed? |
@ryanpcmcquen: We don't have binaries now for this package. It's probably wise to keep it that way. Do you have any problems with the current release? |
No, I just wanted to verify it was fixed. Thank you! |
I've just installed Chromebrew on a fresh machine and ran
crew install nvm
. Even after opening a new shell, thenvm
command is not found. Is this the expected behavior?The text was updated successfully, but these errors were encountered: