Closed joptimus closed 1 year ago
Thanks for the bug report @joptimus, I'll take a look at this today to see if can easily reproduce. One thing to try is to remove node_modules
and re-run npm install
to see if this fixes the problem.
@dtarnawsky I just tried this and still same issue. I can run npm outdated
inside the project and it will display the packages and latest versions. I also updated to npm version 9.6.6 to see if that had any impact however it still displays same issue.
Hey @joptimus, can you choose Help
> Toggle Developer Tools
and see what the real error that is logged when npm outdated
is run. In testing out on Windows I don't see this issue but it may be something with the way I have node installed.
@dtarnawsky here is what the console readout shows when I open the extension
Here is when I reloaded VSCode and opened it again
That looks like it's a bad install of Node on a Windows machine. There's a stack overflow post on how to fix this: https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc
Alternatively, I would recommend uninstalling Node (and make sure c:\program files\nodejs
is deleted) then reinstall.
Thank you @dtarnawsky ! I uninstalled Node and reinstalled, everything works good now
Description: The Ionic VS Code plugin exhibits inconsistent behavior regarding package version display between the Windows and Mac versions. On Windows, when viewing the packages, only the currently installed version is shown without any indication of a higher stable version. Conversely, the Mac version displays the latest stable version available for upgrade.
Steps to Reproduce:
Expected Behavior: On both Windows and Mac, the package information should be displayed consistently, showing the latest stable version available for upgrade.
Actual Behavior: On Windows:
[error] Unable to run 'npm outdated'. Try reinstalling node modules (npm install).
On Mac:
Additional Information: The issue was reproducible by following the steps above. Also I can separately run the command
npm outdated
inside the terminal and it worksEnvironment: