Intalling an older version of Node via package manager on linux

1,996 views
Skip to first unread message

NodeNinja

unread,
Apr 9, 2013, 2:50:12 AM4/9/13
to nod...@googlegroups.com
I installed node latest version (v0.10.3) via 

pacman -S nodejs
but now I want to go back to an older version
like v0.8.xx
1. How do I install this version via package manager.
2. Would I need to uninstall the newer version before doing this?

Dan Milon

unread,
Apr 9, 2013, 3:29:34 AM4/9/13
to nod...@googlegroups.com
I assume you're on archlinux.

No, the repositories hold only the latest version. If you have previously installed a previous version you can

    $ pacman -U /var/cache/pacman/pkg/nodejs-...

You might wanna hold the package so it doesn't get automatically updated. Or use nvm if you find yourself changing versions frequently. 
--
--
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 nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
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 nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

NodeNinja

unread,
Apr 9, 2013, 3:40:34 AM4/9/13
to nod...@googlegroups.com
Dan, 
Yes I'm on archlinux

  • does this command 
$ pacman -U /var/cache/pacman/pkg/nodejs-0.8.12

install version 0.8.12

  • I already have a newer version installed (v0.10.3) how do I uninstall the newer version before installing the old version?
Thanks
NodeNinja

Arunoda Susiripala

unread,
Apr 9, 2013, 3:42:20 AM4/9/13
to nod...@googlegroups.com
I think the best thing you can do is, avoid package managers.
Use a tool like nvm - https://github.com/creationix/nvm

It just work.

Dan Milon

unread,
Apr 9, 2013, 3:47:32 AM4/9/13
to nod...@googlegroups.com
You don't need to uninstall the older version. It gets replaced. Read the pacman article on the archlinux wiki for more.

NodeNinja

unread,
Apr 10, 2013, 2:55:03 AM4/10/13
to nod...@googlegroups.com
I tried doing 

 pacman -U /var/cache/pacman/pkg/nodejs-0.8.12

but I get error

loading packages...
error: '/var/cache/pacman/pkg/nodejs-0.8.12': could not find or read package
Reply all
Reply to author
Forward
0 new messages