Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pmahend1 opened this issue Aug 9, 2020 · 6 comments

Comments

@pmahend1
Copy link

pmahend1 commented Aug 9, 2020

> 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
@pmahend1
Copy link
Author

pmahend1 commented Aug 9, 2020

Related to #432 #439

@pmahend1 pmahend1 changed the title ERROR Command failed: npm list --production --parseable --depth=99999 --loglevel=error vsce package : ERROR Command failed: npm list --production --parseable --depth=99999 --loglevel=error Aug 10, 2020
@meilZhu
Copy link

meilZhu commented Aug 28, 2020

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

@joaomoreno
Copy link
Member

Dupe of #439

@bs
Copy link

bs commented Sep 26, 2020

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

@niccolomineo
Copy link

I just had to do npm upgrade, first, and it worked.

@westqzy
Copy link

westqzy commented Nov 23, 2023

我只需npm upgrade要先这样做,它就起作用了。

It works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants