Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3368

Required node version in package.json to avoid confusion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.9.0
    • 3.8.2
    • Others
    • Moodle App 3.9.0

      I would like to suggest that the required node version is defined in package.json, and be enforce with .npmrc.

      The purpose is to avoid for developers to be using the wrong node version when working on the project. I personally jump quite frequently between projects (and node), and this would definitely be a great help, even more so when the Moodle Mobile required version changes without me noticing.

      Example:

      $ nvm use 12
      Now using node v12.16.0 (npm v6.13.4)
      $ npm run setup
      ...SNIP...
      npm ERR! code ENOTSUP
      npm ERR! notsup Unsupported engine for moodlemobile@3.8.0: wanted: {"node":"11.12.0"} (current: {"node":"12.16.0","npm":"6.13.4"})
      npm ERR! notsup Required: {"node":"11.12.0"}
      npm ERR! notsup Actual:   {"npm":"6.13.4","node":"12.16.0"}
      ...SNIP...
       
      $ nvm use 11.12.0
      Now using node v11.12.0 (npm v6.7.0)
      $ npm run setup
      ...SNIP...
      [12:31:46] Finished 'default' after 261 ms
      

            fred Frédéric Massart
            fred Frédéric Massart
            Dani Palou Dani Palou
            Juan Leyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.