insomnia
insomnia copied to clipboard
All plugin installation fail
Expected Behavior
User should be able to install plugins even if they already have a NPM_TOKEN
set
Actual Behavior
I cannot install any plugin, an error message is displayed, stating Failed to replace env in config: ${NPM_TOKEN}
Reproduction Steps
- Set NPM_TOKEN environment variable in your system (using fish shell in my case
set -gx NPM_TOKEN npm_XXXXXXXXXXXXXXXXX
) - Open Insomnia and go to settings
- Go to Plugins tab
- Type
insomnia-plugin-faker
in plugin name and pressInstall plugin
Is there an existing issue for this?
- [X] I have searched the issue tracker for this problem.
Additional Information
Error: Error invoking remote method 'installPlugin': Error: Yarn error {"type":"error","data":"Could not write file \"/yarn-error.log\": \"EROFS: read-only file system, open '/yarn-error.log'\""}
{"type":"error","data":"An unexpected error occurred: \"Failed to replace env in config: ${NPM_TOKEN}\"."}
at o.invoke (node:electron/js2c/renderer_init:57:526)
at async BP._handleAddFromNpm (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.c4312761.js:1849:44230)
Insomnia Version
v2022.5.0
What operating system are you using?
macOS
Operating System Version
macOS 12.5.1 (21G83)
Installation method
homebrew
Last Known Working Insomnia version
No response
Hi @mikaoelitiana thanks for reporting this!
We were not able to reproduce this error on latest stable (2022.5.1) and latest beta (2022.6.0-beta.2).
Are you by any chance able to reproduce with any of these other versions?
@filfreire I will try with one of these
@filfreire I still have the error on latest stable. Maybe there is something wrong with my setup. I will double-check that
I'm experiencing the same issue on 2022.6.0 (M1 Mac).
I'm encountering the same error on Linux (Ubuntu 20.04 LTS) with version 2022.6.0.
This issue still happen to me when trying to install plugin. For precision, I use asdf as Node runtime management (similar to nvm), maybe the issue is related to that?
As a workaround, I open the terminal in ~/Library/Application Support/Insomnia/plugins
and manually install the plugin with npm i -S ...
Same here, updated to latest version. I tried a bunch of different plugins and none worked. I tried with name installation directly, via link too and with npm i -S. The stacktrace that appears is empty.
npm i -S stuck (using nodejs 20, and npm 9)
Currently, I'm using Macbook M1 with Ventura 13.4.1 (c).
What's the point of having a really nice Plugin Hub
if this kind of issue stays open for more than a year?
Seriously every time I want to install a plugin I have to Google insomnia failed to install plugin
to find again the solution on this page.
And I don't even have any information in the Stack Trace
section. It's simply empty
Workaround:
- Go to
C:\Users\YOUR_USER\AppData\Roaming\Insomnia\plugins
- Run
npm init --yes
- Run
npm i PACKAGE_NAME
If you don't know where are plugins located:
- Go to Preferences
- "Plugins" tab
- Button "Reveal Plugins Folder"