vscode icon indicating copy to clipboard operation
vscode copied to clipboard

local-install command does not work

Open diegoleme opened this issue 3 years ago • 5 comments

Bug Report

Current Behavior

When the local-install command is executed, it fails.

Environment

  • node: v16.11.0
  • npm: v8.0.0
  • vscode: 1.61.0
  • OS: macOS Big Sur - 11.5.1 (20G80)

Log

 ERROR  Command failed: npm list --production --parseable --depth=99999 --loglevel=error
npm ERR! code ELSPROBLEMS
npm ERR! extraneous: [email protected] /Users/ddomingues/Code/vscode/node_modules/mongodb-core
npm ERR! extraneous: [email protected] /Users/ddomingues/Code/vscode/node_modules/require_optional
npm ERR! extraneous: [email protected] /Users/ddomingues/Code/vscode/node_modules/mongodb-core/node_modules/bson
npm ERR! extraneous: [email protected] /Users/ddomingues/Code/vscode/node_modules/require_optional/node_modules/resolve-from
npm ERR! extraneous: [email protected] /Users/ddomingues/Code/vscode/node_modules/require_optional/node_modules/semver
npm ERR! invalid: [email protected] /Users/ddomingues/Code/vscode/node_modules/mongodb

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ddomingues/.npm/_logs/2021-10-14T13_36_47_482Z-debug.log

diegoleme avatar Oct 14 '21 13:10 diegoleme

Fixed in https://github.com/mongodb-js/vscode/pull/354 - feel free to reopen if the command still fails - thanks for reporting!

Anemy avatar Oct 15 '21 03:10 Anemy

Hey @Anemy, thanks for helping me!

But, I still have an error:

ERROR  Command failed: npm list --production --parseable --depth=99999 --loglevel=error
npm ERR! code ELSPROBLEMS
npm ERR! invalid: [email protected] /Users/ddomingues/Code/vscode/node_modules/mongodb

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ddomingues/.npm/_logs/2021-10-15T17_23_27_725Z-debug.log

diegoleme avatar Oct 15 '21 17:10 diegoleme

@diegoleme Have you run npm install since updating in the repository?

Anemy avatar Oct 15 '21 17:10 Anemy

@Anemy Yes! Even delete the node_modules folder before

diegoleme avatar Oct 15 '21 18:10 diegoleme

Ticket to track a fix here: https://jira.mongodb.org/browse/VSCODE-310 Thanks again for reporting!

Anemy avatar Nov 24 '21 16:11 Anemy

Fixed in the linked pr ^ Sorry for the long delay on the fix. Feel free to reopen if you update and the command doesn't work as expected. Thanks again for reporting the issue.

Anemy avatar Feb 27 '23 20:02 Anemy