Install-Product node 18 / 20 causing problems

sjames8888's Avatar

sjames8888

10 Sep, 2023 09:32 AM

guys,

as below now when running test suite I see a failure on NPM operations if installing 18 or 20. I include my .yml as below and the output. Node version 14, 16 seem to work fine. This is also happening on projects I am rebuilding that have not been changed i made a change to this one which works ndoe 18 locally.

anyone know reason?

Build started
git clone -q --branch=main https://github.com/TimelordUK/jspf-cserver.git c:\projects\jspf-cserver
git checkout -qf 39d542b3a95a8843309dea54e01a393d7dd5ad4a
Running Install scripts
powershell Install-Product node $env:nodejs_version
Uninstalling node 20.3.1 (x86)...
Installing node 20.6.0 (x64)...
node --version
v20.6.0
npm --version
C:\Program Files\nodejs\node_modules\npm\lib\es6\validate-engines.js:31
    throw err
    ^
TypeError: Class extends value undefined is not a constructor or null
    at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\fs-minipass\lib\index.js:136:4)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\cacache\lib\content\read.js:4:13)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
Node.js v20.6.0
C:\Program Files\nodejs\node_modules\npm\lib\es6\validate-engines.js:31
    throw err
    ^
TypeError: Class extends value undefined is not a constructor or null

version: 1.0.{build}

image:
  - Visual Studio 2022
  - Ubuntu2004

platform:
  - x64

environment:
  matrix:
    - nodejs_version: "20"
    - nodejs_version: "18"
    - nodejs_version: "16"
    - nodejs_version: "14"

matrix:
  exclude:
    - image: Visual Studio 2022
      nodejs_version: 18
    - image: Visual Studio 2022
      nodejs_version: 20

test_script:
  - ps: Write-Host "jspf-cserver test script"

for:
-
    matrix:
      only:
        - image: Visual Studio 2022
  
    clone_folder: c:\projects\jspf-cserver
    install:
      - cmd: powershell Install-Product node $env:nodejs_version
      - cmd: node --version
      - cmd: npm --version

    build_script:
      - cmd: cd c:\projects\jspf-cserver
      - cmd: node --version
      - ps: Get-Command npm
      - cmd: npm install
      - cmd: npm run init
      - cmd: node_modules\.bin\tsc --version
      - cmd: node_modules\.bin\tsc

    test_script:
      - cmd: npm run app
-
    matrix:
      only:
        - image: Ubuntu2004
        - platform: x64
    clone_folder: /home/appveyor/projects/jspf-cserver
    
    install:
      - nvm install $nodejs_version
      - npm install

    build_script:
      - sh: node --version
      - sh: cd /home/appveyor/projects/jspf-cserver
      - sh: ./node_modules/.bin/tsc --version
      - sh: ./node_modules/.bin/tsc
      - sh: npm run circular
      - sh: npm run init

    test_script:
      - sh: npm run app

  1. Support Staff 1 Posted by Feodor Fitsner on 10 Sep, 2023 03:43 PM

    Feodor Fitsner's Avatar

    Should be fixed now.

    Please let me know if you are still experiencing the issue.

  2. Feodor Fitsner closed this discussion on 10 Nov, 2023 09:05 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac