Installing extension with PHP Composer

I am testing out PHP Composer feature to install endroid/qr-code, but getting the following error. How to fix? Thanks.

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\Q-Laptop\AppData\Local\npm-cache\_cacache\tmp\git-cloneLnpiHl/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Q-Laptop\AppData\Local\npm-cache\_cacache\tmp\git-cloneLnpiHl\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

Same error for stable and beta.
Server Model: PHP
Development Environment: Own Server

Got it to install using the Terminal, but not with the UI under Extensions.

Wappler v6.8.0
Docker
PHP

I am trying this again on a new project.

Under Project Settings > Extensions, added chillerlan/php-qrcode.
However, in composer.json, it does not get added so it does not get installed.
A bug in v6.8.0?

{
  "require": {
    "php": ">=5.6",
    "ext-curl": "*",
    "ext-gd": "*",
    "ext-hash": "*",
    "ext-json": "*",
    "ext-mbstring": "*",
    "ext-openssl": "*",
    "ext-pcre": "*",
    "ext-pdo": "*",
    "ext-session": "*"
  },
  "config": {
    "platform": {
      "php": "5.6.0"
    },
    "platform-check": true
  }
}

I think that you will find that the php-qrcode requirement is to use PHP 7.4+.

In your case I would go for PHP 8.3.

Under Targets, PHP 8.2.x is selected so I don't know why it shows 5.6.0.