You are not logged in.

#1 2016-06-09 05:05:16

3l
Member
Registered: 2016-03-27
Posts: 4

Is it possible to install Node.js v0.12.* with npm?

I have to install an environment that can rebuild a certain project, below are the specifications.

  • PHP 5.x

  • PhpRedis (PECL PHP library, php --ri redis should give you version 2.2.5 at least)

  • OracleDB (PHP library, see below)

  • Composer

  • Redis server

  • Apache Solr

  • MySQL (or equivalent)

  • OracleDB

  • NPM

  • Bower

  • Node.js (v0.12.x, newest versions aren't supported by Platform.sh)

After a day and a half of tinkering around I've got all of these components running, except for node.js, which I just couldn't get to work.
I've tried to install this AUR package, but the installation just failed without giving any proper errors.

My workaround is using a vagrant box with Ubuntu Trusty, but I still wonder if it's possible to make it run on Arch.

Offline

#2 2016-06-09 08:02:19

phw
Member
Registered: 2013-05-27
Posts: 318

Re: Is it possible to install Node.js v0.12.* with npm?

As I am the maintainer of that AUR package do you mind telling me what output you get when installing it?

But actually I have myelf given up on keeping an older version of node on my Arch and just use a Vagrant box like you do. But you could also try using nvm (https://github.com/creationix/nvm), you can install and use multiple versions of node with it without touching your system installed node.

Offline

#3 2016-06-09 08:58:08

phw
Member
Registered: 2013-05-27
Posts: 318

Re: Is it possible to install Node.js v0.12.* with npm?

Ok, I just tried compiling latest node 0.12.14 on Arch, it fails with some memory access issue. Not sure whether there is some workaround sad Also this will probably also rule out nvm for you, since that too would likely try o compile node and fail.

Regarding the package I will probably not look much into it and just remove it. Unless someone comes up with a fix, which of course I'm happy to accept. But Arch just is not well suited for running legacy software big_smile

Offline

#4 2016-06-09 17:54:24

3l
Member
Registered: 2016-03-27
Posts: 4

Re: Is it possible to install Node.js v0.12.* with npm?

Thanks for checking it, I also get a generic error, which doesn't give me the slightest clue what to do.

I've recently joined a Drupal team and I'm going to work on a legacy project for a while, hopefully the next one will be a Drupal 8 project, which supports newer technologies.
It's not just Arch by the way, other distros don't support legacy software either. I've tried installing it on Ubuntu 16 and I couldn't even get all the PHP modules I need.

Anyways I am going to keep switching between PHP 5 and 7 projects, so I guess Vagrant will save me some headache.

Offline

Board footer

Powered by FluxBB