insomnia: [Bug] npm error when trying to install plugin
- Insomnia Version: 6.0.2
- Operating System: Windows 10
Details
I’m trying to install a plugin, insomnia-plugin-jwtdecode
to be specific, but I get the following error when trying to install via Preferences -> Plugins:
insomnia-plugin-jwtdecode npm error: Command failed: C:\Users\username\AppData\Local\insomnia\app-6.0.2\Insomnia.exe --no-deprecation C:\Users\username\AppData\Local\insomnia\app-6.0.2\resources\bin\yarn-standalone.js info insomnia-plugin-jwtdecode --json
I opened DevTools, but I don’t see an error, I only see: [plugins] Fetching module info from npm
Please let me know if you want me to provide more information. Thank you.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 29 (16 by maintainers)
Commits related to this issue
- Fix issue #1202. Lenient error handling for Yarn output. Check if output is OK even if exit error code is non-zero. — committed to vlad-patras/insomnia by vlad-patras 5 years ago
- Fix issue #1202. Lenient error handling for Yarn output. Check if out… (#1425) * Fix issue #1202. Lenient error handling for Yarn output. Check if output is OK even if exit error code is non-zero. ... — committed to Kong/insomnia by vlad-patras 5 years ago
- Upgrade yarn-standalone.js (#1202) — committed to Kong/insomnia by gschier 5 years ago
- Upgrade yarn-standalone.js (#1202) — committed to Thejas007/insomnia by gschier 5 years ago
- Revert "Upgrade yarn-standalone.js (#1202)" This reverts commit 44c2144d80e0d0b24bc4a3617b8606f09fbb0268. — committed to Thejas007/insomnia by Thejas007 5 years ago
Hi,
I succeed to install
insomnia-plugin-jwtencode
plugin with the following commandsWas such a hard time to found out how to do it, even with docs when you’re a new Insomnia user. Hope it could help some of you until it’s “fixed”. 👍
@gschier @ghost99cze
I’m seeing this exact same problem, same output and results. 6.0.2 / Windows 10. Workaround was to go into the plugins folder and
npm install insomnia-plugin-default-headers
(which is using my NPM installation instead of the bundled Yarn, but it seems to work anyways).I’ll get an update to
yarn-standalone.js
into the next release. Thanks for testing that out @senoctar! ❤️Looks like the one that’s in there now is 1.8 so it’s pretty old.
Can someone verify whether or not PR #1425 fixed this issue?
I have the same problem in Insomnia 6.2 (Windows 10). When I try to install any plugin in app. It just says:
When I try suggestion above:
In both attempts plugin is not installed.
The only way right now is to go to the plugins folder and install it by hand (npm install insomnia-plugin-jwtdecode)
BTW: It is the same for any plugin, not just jwtdecode.