Vscode-vsce: vsce package : ERROR Command failed: npm list --production --parseable --depth=99999 --loglevel=error

Created on 9 Aug 2020  路  4Comments  路  Source: microsoft/vscode-vsce

> webpack --mode production

Hash: ________________
Version: webpack 4.44.1
Time: 7956ms
Built at: 08/09/2020 2:00:24 PM
           Asset      Size  Chunks                   Chunk Names
    extension.js   284 KiB       0  [emitted]        main
extension.js.map  1020 KiB       0  [emitted] [dev]  main
Entrypoint main = extension.js extension.js.map
 [77] external "util" 42 bytes {0} [built]
[125] external "fs" 42 bytes {0} [built]
[189] ./src/extension.ts 5.8 KiB {0} [built]
[190] external "vscode" 42 bytes {0} [built]
[408] external "stream" 42 bytes {0} [optional] [built]
[409] external "string_decoder" 42 bytes {0} [built]
[410] external "events" 42 bytes {0} [built]
[412] external "timers" 42 bytes {0} [built]
[457] external "path" 42 bytes {0} [built]
    + 449 hidden modules
 ERROR  Command failed: npm list --production --parseable --depth=99999 --loglevel=error

Most helpful comment

For people who find this via search, a work-a-round is vsce package --yarn as described in #432.

All 4 comments

Related to #432 #439

Hello! At first, when I packaged the vscode plug-in, I reported an error as follows

Error: Command failed: npm list --production --parseable --depth=99999`
npm ERR! missing: lodash@, required by [email protected]

However, according to the feedback from GitHub, it was the NPM version problem. I said that NPM version 5.5.1 was needed. However, after the version was changed here, the following errors appeared again

report errors

ERROR Command failed: npm list --production --parseable --depth=99999 --loglevel=error
npm ERR! cb.apply is not a function

For people who find this via search, a work-a-round is vsce package --yarn as described in #432.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RomaDev94 picture RomaDev94  路  5Comments

mlewand picture mlewand  路  3Comments

SamVerschueren picture SamVerschueren  路  5Comments

iliazeus picture iliazeus  路  6Comments

felixfbecker picture felixfbecker  路  6Comments