microsoft/vscode-vsce

failed to start with `ReferenceError: ReadableStream is not defined` exception

YukkuriC opened this issue · 3 comments

installed by npm install -g @vscode/vsce as this page says, then when I call vsce in cmd it returns error like this:

C:\Users\MSI\Desktop>vsce
C:\Users\MSI\AppData\Roaming\npm\node_modules\@vscode\vsce\node_modules\undici\lib\web\fetch\response.js:528
  ReadableStream
  ^

ReferenceError: ReadableStream is not defined
    at Object.<anonymous> (C:\Users\MSI\AppData\Roaming\npm\node_modules\@vscode\vsce\node_modules\undici\lib\web\fetch\response.js:528:3)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Users\MSI\AppData\Roaming\npm\node_modules\@vscode\vsce\node_modules\undici\lib\web\fetch\index.js:11:5)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)

I'm using node v16.16.0 and npm 8.11.0