Tim,
Wandering slightly off the original conversation a bit but I would
highly recommend nvm. Means you don't have to do the chown hack and it
makes switching between nodes as easy as:
$ nvm install 0.10
$ nvm use 0.10
Cheers,
Phil
Tim Caswell <[email protected]> writes:
> I tend to use the binaries posted on nodejs.org instead of the binaries in
> the debian/ubuntu repos. Here is how I get the latest node for a new linux
> server I'm setting up:
>
> wget http://nodejs.org/dist/v0.10.1/node-v0.10.1-linux-x64.tar.gz
> tar -xvf node-v0.10.1-linux-x64.tar.gz
> cd node-v0.10.1-linux-x64
> rm *
> chown -R tim /usr/local
> rsync -a ./ /usr/local/
>
> Notice that I chown /usr/local to my user so that I can then use node and
> npm without sudo. If you don't want to mess with global installs, then the
> nvm script I wrote is great for switching between versions within your home
> directory. <https://github.com/creationix/nvm>
>
>
> On Tue, Mar 26, 2013 at 5:04 PM, Daniel Toebe <[email protected]> wrote:
>
>> So I've tried to fix this my self for a couple hours and I feel I've made
>> it worse. I am running Kbuntu 12.10, and trying to install nodejs and npm
>> as a user not root so I can install the game closure framework. I had a
>> version of node and npm installed as root. Then tried to install it again
>> (without removing the old) via these instructions:
>> http://tnovelli.net/blog/blog.2011-08-27.node-npm-user-install.html
>>
>> Now when I type which npm I get nothing. However when I type which node i
>> get/home/myusername/.local/bin/node. So I am assuming node is installed
>> correctly.
>>
>> also when I type npm -v
>>
>> I get:
>>
>> The program 'npm' is currently not installed. You can install it by typing:
>> sudo apt-get install npm
>>
>> So I type sudo apt-get install npm
>>
>> and the response is:
>>
>> Reading package lists... DoneBuilding dependency tree Reading state
>> information... DoneSome packages could not be installed. This may mean that
>> you have
>> requested an impossible situation or if you are using the unstable
>> distribution that some required packages have not yet been created
>> or been moved out of Incoming.The following information may help to resolve
>> the situation:
>> The following packages have unmet dependencies:
>> npm : Depends: nodejs (>= 0.6.19~dfsg1-3) but it is not going to be installed
>> Depends: nodejs-dev
>> Depends: node-node-uuid but it is not going to be installed
>> Depends: node-request but it is not going to be installed
>> Depends: node-mkdirp but it is not going to be installed
>> Depends: node-minimatch but it is not going to be installed
>> Depends: node-semver but it is not going to be installed
>> Depends: node-ini but it is not going to be installed
>> Depends: node-graceful-fs but it is not going to be installed
>> Depends: node-abbrev but it is not going to be installed
>> Depends: node-nopt but it is not going to be installed
>> Depends: node-fstream but it is not going to be installed
>> Depends: node-rimraf but it is not going to be installed
>> Depends: node-tar but it is not going to be installed
>> Depends: node-which but it is not going to be installed
>> E: Unable to correct problems, you have held broken packages.
>>
>> How can I fix this so I can install npm according to the link above?
>>
>> EDIT: after searching some more i tried sudo apt-get clean && sudo
>> apt-get update and even after that I still get the same message after
>> attempting to apt-get npm
>>
>> --
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "nodejs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
> --
--
Apiaxle http://apiaxle.com - A free, open proxy for your API.
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.