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.