npm install fails on newer version (12+) of node
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mahara | ||||||
21.10 |
Fix Released
|
Medium
|
Unassigned | |||
22.04 |
Fix Released
|
Medium
|
Unassigned | |||
22.10 |
Fix Released
|
High
|
Doris Tam |
Bug Description
Setting up Mahara on a brand new, clean machine running Ubuntu 20.04 I found I had to install all the things.
Once I got npm working the 'npm install' step failed when using the current supported stable version of npm. I eventually rolled back to 8.11.3 from 16.15.0 and it just worked.
We should take a look at the package.json file and upgrade it to work with the current stable version of npm. There are also a lot of deprecated packages in use. It is likely that these would be resolved by moving to the latest versions of the packages we're using.
+++
gold@shipnet:
npm WARN deprecated request@2.88.2: request has been deprecated, see https:/
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated har-validator@
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https:/
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated source-
npm WARN deprecated resolve-url@0.2.1: https:/
npm WARN deprecated urix@0.1.0: Please see https:/
npm WARN deprecated source-
> node-sass@4.14.1 install /home/gold/
> node scripts/install.js
Cached binary found at /home/gold/
> es5-ext@0.10.61 postinstall /home/gold/
> node -e "try{require(
> node-sass@4.14.1 postinstall /home/gold/
> node scripts/build.js
Binary found at /home/gold/
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"
added 513 packages in 20.937s
summary: |
- npm install fails + npm install fails on newer version of node |
Changed in mahara: | |
assignee: | nobody → Doris Tam (doristam) |
milestone: | none → 22.10.0 |
status: | New → Incomplete |
status: | Incomplete → In Progress |
Changed in mahara: | |
status: | In Progress → Confirmed |
Changed in mahara: | |
status: | Confirmed → In Progress |
importance: | Undecided → High |
summary: |
- npm install fails on newer version of node + npm install fails on newer version (12+) of node |
no longer affects: | mahara |
Patch for "main" branch: https:/ /reviews. mahara. org/c/mahara/ +/13122