Reviewed:  https://reviews.mahara.org/c/mahara/+/13045
Committed: 
https://git.mahara.org/mahara/mahara/commit/50751f84849d2a5bfc8bd8f9323c39ebe61cd081
Submitter: "Robert Lyon <[email protected]>"
Branch:    main

commit 50751f84849d2a5bfc8bd8f9323c39ebe61cd081
Author: Doris Tam <[email protected]>
Date:   Tue Aug 9 17:53:18 2022 +1200

Bug 1973639: Update npm libs for node v12+ support

.nvmrc with nvm installed gets the LTS latest node version. Currently is 16
Note: a different version will need to be targeted for older versions of Mahara.

This is part of the process of getting LTS node working with Mahara

gulp-autoprefixer requires npm 8 min and browserlist location to be
updated

Remaining issues are:

The appears to be 7 high priority issues, but we're already at the
highest version of gulp and it's telling us to go down.

The following issues are expected for now as they are managed
dependencies of gulp and sass:

npm WARN deprecated [email protected]: See 
https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see 
https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: 
https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See 
https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Chokidar 2 does not receive updates ... 
Upgrade to chokidar 3 with 15x fewer dependencies

Change-Id: Ic173b77ef79c4f09d7754a29c16e047d19945c5e

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1973639

Title:
  npm install fails on newer version (12+) of node

Status in Mahara:
  Fix Committed
Status in Mahara 21.10 series:
  New
Status in Mahara 22.04 series:
  New
Status in Mahara 22.10 series:
  Fix Committed

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:~/Mahara/mahara$ npm install
  npm WARN deprecated [email protected]: request has been deprecated, see 
https://github.com/request/request/issues/3142
  npm WARN deprecated [email protected]: Chokidar 2 does not receive security 
updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
  npm WARN deprecated [email protected]: This version of tar is no longer supported, 
and will not receive security updates. Please upgrade asap.
  npm WARN deprecated [email protected]: this library is no longer supported
  npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  
Older versions may use Math.random() in certain circumstances, which is known 
to be problematic.  See https://v8.dev/blog/math-random for details.
  npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and 
could be using insecure binaries. Upgrade to fsevents 2.
  npm WARN deprecated [email protected]: See 
https://github.com/lydell/source-map-resolve#deprecated
  npm WARN deprecated [email protected]: 
https://github.com/lydell/resolve-url#deprecated
  npm WARN deprecated [email protected]: Please see 
https://github.com/lydell/urix#deprecated
  npm WARN deprecated [email protected]: See 
https://github.com/lydell/source-map-url#deprecated

  > [email protected] install /home/gold/Mahara/mahara/node_modules/node-sass
  > node scripts/install.js

  Cached binary found at /home/gold/.npm/node-
  sass/4.14.1/linux-x64-57_binding.node

  > [email protected] postinstall /home/gold/Mahara/mahara/node_modules/es5-ext
  >  node -e "try{require('./_postinstall')}catch(e){}" || exit 0

  
  > [email protected] postinstall /home/gold/Mahara/mahara/node_modules/node-sass
  > node scripts/build.js

  Binary found at 
/home/gold/Mahara/mahara/node_modules/node-sass/vendor/linux-x64-57/binding.node
  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/chokidar/node_modules/fsevents):
  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
[email protected]: wanted {"os":"darwin","arch":"any"} (current: 
{"os":"linux","arch":"x64"})

  added 513 packages in 20.937s

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1973639/+subscriptions


_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to