ArchGPT / insomnium

Insomnium is a fast local API testing tool that is privacy-focused and 100% local. For testing GraphQL, REST, WebSockets and gRPC. This is a fork of Kong/insomnia
MIT License
3.3k stars 123 forks source link

Cannot install plugins #106

Closed joe-gre closed 7 months ago

joe-gre commented 7 months ago

Expected Behavior

Can install plugins successfully

Actual Behavior

Plugins fail to load. When clicking "Install Plugin" from the marketplace installation fails and it shows this: image

When installing a plugin from the Plugins tab in preferences it fails to install and shows this message: image

This issue occurs for every plugin I've tried.

Reproduction Steps

  1. Open the Plugins tab in Insomnia preferences
  2. Type "insomnia-plugin-save-variables" in the text box, or the name of another plugin
  3. Click "Install Plugin"

Is there an existing issue for this?

Additional Information

No response

Insomnium Version

v0.2.3-a

What operating system are you using?

Windows

Operating System Version

Windows 10 Build 19045

Installation method

.exe

Last Known Working Insomnium version

N/A

TCB13 commented 7 months ago

+1

techchrism commented 7 months ago

This is an issue in Insomnia as well.

The underlying problem is yarn searching parent directories for package.json files. Note that ignoring yarn warnings will not solve this issue as a malformed json will trigger a yarn error.

Your reproduction steps are insufficient to reproduce the problem. To reproduce the problem, before step 3, write {} to a package.json file in any parent directory (the user home directory, for example).

To fix the issue on an individual basis, find and remove the offending package.json by traversing parent directories.

joe-gre commented 7 months ago

Thanks you're right, there was a package.json file in my user directory for some reason. I deleted it and am now able to install plugins.