Upgrade to latest nodejs for Mahara 18.10

Bug #1750948 reported by Rebecca Blundell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Rebecca Blundell

Bug Description

I discovered when helping set up a Mahara dev instance that it breaks mahara if you follow this wiki instruction to install the latest version of nodejs:

Note: The Node packages that come with the default installation may be outdated and not new enough for Mahara. You may need to install a later version of Node because Node 0.10 is not enough. You can find various instructions on how to upgrade NodeJS on your distribution depending on your preference on package manager

The latest version is 8.9. We had to downgrade to version 6.x to make it work again.

Changed in mahara:
milestone: none → 18.10.0
status: New → Confirmed
importance: Undecided → High
summary: - latest nodejs breaks mahara
+ Upgrade to latest nodejs for Mahara 18.10
Revision history for this message
Rebecca Blundell (rjb-dev) wrote :

8.11.3 is the latest LTS version. Am going to look into it.

Revision history for this message
Rebecca Blundell (rjb-dev) wrote :

Version 8.11.3 seems to work with the following dependencies:
{
  "dependencies": {
    "es6-promise": "^4.2.4",
    "event-stream": "^3.3.4",
    "gulp": ">=3.9.1",
    "gulp-autoprefixer": "^5.0.0",
    "gulp-clean-css": "^3.9.4",
    "gulp-help": "^1.6.1",
    "gulp-if": "^2.0.2",
    "gulp-sass": "^4.0.1",
    "node-sass": "<=4.8.3",
    "yargs": "^11.0.0"
  }
}
gulp needs to be kept below version 4 and
node-sass needs to be kept below 4.9 to work with current code.

Changed in mahara:
status: Confirmed → In Progress
assignee: nobody → Rebecca Blundell (rjb-dev)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/8970

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8970
Committed: https://git.mahara.org/mahara/mahara/commit/8489d5109df7fb8b2ac07919f67ad9d5860a2ef7
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 8489d5109df7fb8b2ac07919f67ad9d5860a2ef7
Author: Rebecca Blundell <email address hidden>
Date: Thu Jun 21 22:10:50 2018 +1200

Bug 1750948: upgrading dependencies to work with latest node 8.x (LTS)

You may need to update node via:
sudo npm cache clean -f
sudo npm install -g n
sudo n 8.11.3 (latest at patch)

Then update node-sass bindings:
sudo npm rebuild node-sass

behatnotneeded

Change-Id: I18d1dc9d90bd56fa0d16837d2bf6e4c19c9662ba

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/9049

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9049
Committed: https://git.mahara.org/mahara/mahara/commit/b06c15f7919a5a2bf14c728c478d57a443db32bc
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master

commit b06c15f7919a5a2bf14c728c478d57a443db32bc
Author: Robert Lyon <email address hidden>
Date: Tue Aug 7 09:36:43 2018 +1200

Bug 1750948: Ingore the package-lock.json file for now

It's meant to be used to describe a single representation of a
dependency tree such that teammates, deployments, and continuous
integration are guaranteed to install exactly the same dependencies.

But I expect we will need to be a bit more flexible with this so that
older systems can compile sass to css

behatnotneeded

Change-Id: I08e0ff2a8654bc208cb0b5ec28c67af61c3d70ed
Signed-off-by: Robert Lyon <email address hidden>

Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.