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

Most upvoted comments

Hi,

I succeed to install insomnia-plugin-jwtencode plugin with the following commands

C:\Users\ngigou\AppData\Roaming\Insomnia\plugins
λ yarn add insomnia-plugin-jwtdecode
yarn add v1.6.0
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 2 new dependencies.
info Direct dependencies
└─ insomnia-plugin-jwtdecode@1.0.2
info All dependencies
├─ base-64@0.1.0
└─ insomnia-plugin-jwtdecode@1.0.2
Done in 0.38s.

C:\Users\ngigou\AppData\Roaming\Insomnia\plugins
λ ll
total 6
drwxr-xr-x 1 ngigou 1049089    0 Nov 27 11:35 node_modules
-rw-r--r-- 1 ngigou 1049089   75 Nov 27 11:35 package.json
-rw-r--r-- 1 ngigou 1049089 2779 Nov 27 11:35 yarn-error.log
-rw-r--r-- 1 ngigou 1049089  479 Nov 27 11:35 yarn.lock

Was 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:

insomnia-plugin-jwtdecode npm error: Command failed: “C:\Users\Michal\AppData\Local\insomnia\app-6.2.0\Insomnia.exe” --no-deprecation C:\Users\Michal\AppData\Local\insomnia\app-6.2.0\resources\bin\yarn-standalone.js info insomnia-plugin-jwtdecode --json

When I try suggestion above:

{“type”:“inspect”,“data”:{“name”:“insomnia-plugin-jwtdecode”,“description”:“JWT (JSON Web Token) decoder for Insomnia REST Client”,“dist-tags”:{“latest”:“1.0.2”},“versions”:[“1.0.0”,“1.0.1”,“1.0.2”],“maintainers”:[{“name”:“siebesysmans”,“email”:“siebe.sysmans@gmail.com”}],“time”:{“modified”:“2018-11-03T10:42:56.049Z”,“created”:“2017-11-04T15:12:29.654Z”,“1.0.0”:“2017-11-04T15:12:29.654Z”,“1.0.1”:“2017-11-04T15:22:21.285Z”,“1.0.2”:“2018-11-03T10:42:53.589Z”},“author”:{“name”:“Siebe Sysmans”,“email”:“siebe.sysmans@gmail.com”},“license”:“MIT”,“readmeFilename”:“README.md”,“homepage”:“https://github.com/SiebeSysmans/insomnia-plugin-jwtdecode#readme",“repository”:{“type”:“git”,“url”:“git+https://github.com/SiebeSysmans/insomnia-plugin-jwtdecode.git”},“bugs”:{“url”:“https://github.com/SiebeSysmans/insomnia-plugin-jwtdecode/issues”},“version”:“1.0.2”,“main”:“./src/plugin.js”,“insomnia”:{“name”:“jwtdecode”,“description”:"Decode a JWT (JSON Web Token) andreturn a claim”},“dependencies”:{“base-64”:“0.1.0”},“gitHead”:“676e3aa345263bb5e9821a889082b92cbf93bc7c”,“dist”:{“integrity”:“sha512-QD6TUHiohv1Irg66RccxNv18kQ5NI/lLuu2sDnH9aGZlquPFCn9zdxGAdcfknsGa1bztE666OHQ7sfDTY8Tirw==”,“shasum”:“d2aa2b0960070245584af3711c2b8d72b1209981”,“tarball”:“https://registry.npmjs.org/insomnia-plugin-jwtdecode/-/insomnia-plugin-jwtdecode-1.0.2.tgz",“fileCount”:10,“unpackedSize”:2171131,“npm-signature”:"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb3XuuCRA9TVsSAnZWagAAlqsP/2ktvn646pc9+vC9buKb\nJ7kor5Kiahs5WWhCgK483TiqBW+t4ofafcld77fr5KqCwl5WrqwCJ/7uEQnR\n7MWcjBUq4tkWC/4UMq5rOnnfqQ1k1jr6y3CyRqxkiMAtd4wZB8z42JaF6RqL\npQKCNNFsAkwNthDuoLZL1M4R7WrlTe4cIpD+6dC7r0wNCGJXQDkE+wFmGTqp\ncU7DzsNG3gWjA+YTauq8QSWViMZzvKmddWgauOv/M/VbUVBbMF3lavQ4kxbY\ngYqIWUtDzPEtCocYPLM8JRz7lBEnuXabks9xfVDosqeLDYwvkZ+v1PT+YMiB\ntbJj367mPLUVOGdy8l74zzplD2yoWQJukb9EHjxib+pSKagpMDiNykDi2Zg9\nS01ikhuOAdJibcj8ORss5HJdhFdo03kjKfSGsKzcx/XgdQ3ZOIn5sE2pF3QA\ncj76EbiYnwWZ9+lovrmifhaPbmyBEfLe0uKnZrmvOXWNOgE1MgqtT9HvyFCD\nh8Oe7md6hGvSd+uOOfYLficrTTUu3NmkX4PWV8rDsJU6ysa4vzrIYoxt3M7w\nxT0NRteFYLVY5n0e9d88aPktMUuSj3RtbxolLgegzzjqcLcQsumNle2Uhbt+\nfTw0vg29OMcXZO9ronPA9biXtH/O6I26pFPU47RQ0qqW/WG4Q45Y76N50Int\nbxZW\r\n=6OaO\r\n-----END PGP SIGNATURE-----\r\n”},“directories”:{}}}

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.