ionic-team / vscode-extension

15 stars 0 forks source link

npm outdated is being called with a project that uses pnpm #129

Closed oweitman closed 1 year ago

oweitman commented 1 year ago

In Version 1.48.0 the error still/again exists if i downgrade to 1.45.4 the error is gone

[error] Unable to run 'npm outdated --json'. Try reinstalling node modules.

Originally posted by @oweitman in https://github.com/ionic-team/vscode-extension/issues/121#issuecomment-1656811445

dtarnawsky commented 1 year ago

Test steps to reproduce on Windows:

@oweitman, i tried this out on a Windows 10 machine with Node 16 and it worked fine. The call to npm outdated --json is something you can run yourself to see if it errors out. Also, in VS Code, click Help > Toggle Developer Tools and check in the console to see what errors are appearing. That will help diagnose why npm outdated is failing. I'll need more info about the problem to be able to resolve it.

oweitman commented 1 year ago

ok i found the solution. it has to do with the node windows installation In addition, there was a warning that I didn't pay attention to at first. but after fixing it, the "outdated" message was gone

the fix was described here https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc

the following problems were also fixed,

But i discovered something new. I'll open a new issue