Skip to content
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

does not install right when you don't have a ~/.bashrc file #19

Closed
pgte opened this issue Feb 14, 2011 · 3 comments
Closed

does not install right when you don't have a ~/.bashrc file #19

pgte opened this issue Feb 14, 2011 · 3 comments

Comments

@pgte
Copy link

pgte commented Feb 14, 2011

I don't have a ~/.bashrc file.
When doing
$ npm install nvm:

npm info it worked if it ends with ok
npm info using npm@0.2.17
npm info using node@v0.4.0
npm info fetch http://registry.npmjs.org/nvm/-/nvm-0.0.6.tgz
npm info calculating sha1 /var/folders/OA/OAqqioLWF4KIMLzczVv9UE+++TI/-Tmp-/npm-1297686040437/1297686040437-0.6327376058325171/tmp.tgz
npm info shasum bdebf007e7fc568ae51cc0f326a7fe9506cff9ec
npm info calculating sha1 /usr/local/lib/node/.npm/.cache/nvm/0.0.6/package.tgz
npm info shasum 92a367195b3ca52a7880590928105e0ec0a7e331
npm info preinstall nvm@0.0.6
npm info install nvm@0.0.6
cat: /Users/pedroteixeira/.bashrc: No such file or directory

To use nvm, source your .bashrc file like this:
. ~/.bashrc
or log out and back into your terminal.

npm info postinstall nvm@0.0.6
npm info preactivate nvm@0.0.6
npm info activate nvm@0.0.6
npm info postactivate nvm@0.0.6
npm info build Success: nvm@0.0.6
npm ok

Npm says it's ok, but the nvm binary is not installed.

@pgte
Copy link
Author

pgte commented Feb 14, 2011

If I create an empty ~/.bashrc all installs ok.

@dylang
Copy link

dylang commented Mar 3, 2011

I have a .bashrc and i get a permission denied error.

dylan:~ $ ls -al .bashrc
-rw-r--r--@ 1 dylan  staff   285B Aug  5  2010 .bashrc
dylan:~ $ sudo npm install nvm
npm info it worked if it ends with ok
npm info using npm@0.3.12
npm info using node@v0.4.1
npm info preinstall nvm@0.1.0
npm info install nvm@0.1.0
./install.sh: line 10: /Users/dylan/.bashrc: Permission denied

  To use nvm, source your .bashrc file like this:
    . ~/.bashrc
  or log out and back into your terminal.

npm info postinstall nvm@0.1.0
npm info predeactivate nvm@0.1.0
npm info deactivate nvm@0.1.0
npm info postdeactivate nvm@0.1.0
npm info preactivate nvm@0.1.0
npm info activate nvm@0.1.0
npm info postactivate nvm@0.1.0
npm info build Success: nvm@0.1.0
npm ok

@creationix
Copy link
Collaborator

I don't support npm installing nvm anymore, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants