Skip to content

npm run pkg failed due to No available node version #8686

@lzw06061139

Description

@lzw06061139

Environment info

  • NooBaa Version: 5.18.0/5.17.1

Actual behavior

  1. run make pkg or make executable on the root directory of noobaa-core source code failed:

Error! No available node version satisfies 'node20'

Expected behavior

  1. make pkg or make excutable can complete successfully

Steps to reproduce

  1. clone the source code of noobaa-core from github
  2. (optional) git checkout v5.17.1
  3. run make pkg or make executable

More information - Screenshots / Logs / Other output

=> ERROR [7/7] RUN npm run pkg                                                                                                                                                                                                                                              0.8s 
------                                                                                                                                                                                                                                                                            
 > [7/7] RUN npm run pkg:                                                                                                                                                                                                                                                         
0.280                                                                                                                                                                                                                                                                             
0.280 > noobaa-core@5.17.1-289a81b pkg
0.280 > pkg . --public --options unhandled-rejections=warn --compress Brotli
0.280 
0.753 > pkg@5.8.1
0.753 compression:  Brotli
0.757 > Error! No available node version satisfies 'node20'
------
executable.Dockerfile:15
--------------------
  13 |     COPY config.js ./config.js
  14 |     COPY platform_restrictions.json ./platform_restrictions.json
  15 | >>> RUN npm run pkg
  16 |     
  17 |     ENTRYPOINT [ "/noobaa/build/noobaa-core" ]
--------------------
ERROR: failed to solve: process "/bin/sh -c npm run pkg" did not complete successfully: exit code: 2
make: *** [Makefile:152: executable] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions