All plugin installation fail

See original GitHub issue

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}

Screen Shot 2022-08-19 at 11 13 30

Reproduction Steps

  1. Set NPM_TOKEN environment variable in your system (using fish shell in my case set -gx NPM_TOKEN npm_XXXXXXXXXXXXXXXXX)
  2. Open Insomnia and go to settings
  3. Go to Plugins tab
  4. Type insomnia-plugin-faker in plugin name and press Install plugin

Is there an existing issue for this?

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

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
matthewdickinsoncommented, Oct 5, 2022

I’m experiencing the same issue on 2022.6.0 (M1 Mac).

1reaction
mikaoelitianacommented, Aug 22, 2022

@filfreire I still have the error on latest stable. Maybe there is something wrong with my setup. I will double-check that

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugins: installation failed! - WordPress.org
If nothing works, try manually installing plugins/themes: Try installing or upgrading the Plugin manually. Try installing or upgrading the Theme manually.
Read more >
7 reasons why your WordPress plugin won't install
7 reasons why your WordPress plugin won't install · There are missing files · Syntax Error · You're exceeding limits · You're on...
Read more >
Wordpress plugin installation fail - Stack Overflow
Download the plugins that you want to install on WordPress. · Open your CPanel and sign in. · Open “File Manager” · Locate...
Read more >
How to Fix "Installation Failed: Could Not Create Directory"
This error is your server's way of saying you're not allowed to make changes to your site's files with the plugin or theme...
Read more >
How to fix the “Destination folder already exists” error ...
If your WordPress theme or plugin installation failed, it might be due to the Destination folder already exists error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found