question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Plugin dependencies' dependencies not installed correctly

See original GitHub issue
  • Insomnia Version: 6.5.4
  • Operating System: Windows 10 Pro, 1903

Details

I installed insomnia-plugin-regex via the Preferences/Plugins tab without issue, but ran into issues when installing the insomnia-plugin-os plugin. It complains that it cannot fine the esprima module. I tracked down the dependencies of insomnia-plugin-os (LINK), which is the NPM module jsonpath. I then tracked down the dependencies of jsonpath (LINK), which finally revealed the esprima dependency (along with 2 others).

Error output below:

insomnia-plugin-os install error: Command failed: ā€œC:\Users\user\AppData\Local\insomnia\app-6.5.4\Insomnia.exeā€ --no-deprecation C:\Users\user\AppData\Local\insomnia\app-6.5.4\resources\bin\yarn-standalone.js add insomnia-plugin-os --modules-folder C:\Users\user\AppData\Local\Temp\insomnia_6.5.4\insomnia-plugin-os-1564098003065 --cwd C:\Users\user\AppData\Local\Temp\insomnia_6.5.4\insomnia-plugin-os-1564098003065 --no-lockfile --production --no-progress error C:\Users\user\AppData\Local\Temp\insomnia_6.5.4\insomnia-plugin-os-1564098003065\jsonpath: Command failed. Exit code: 1 Command: node lib/aesprim.js > generated/aesprim-browser.js Arguments: Directory: C:\Users\user\AppData\Local\Temp\insomnia_6.5.4\insomnia-plugin-os-1564098003065\jsonpath Output: internal/modules/cjs/loader.js:604 throw err; ^ Error: Cannot find module ā€˜esprima’ at Function.Module._resolveFilename (internal/modules/cjs/loader.js:602:15) at Function.resolve (internal/modules/cjs/helpers.js:30:19) at Object.<anonymous> (C:\Users\user\AppData\Local\Temp\insomnia_6.5.4\insomnia-plugin-os-1564098003065\jsonpath\lib\aesprim.js:4:20) at Object.<anonymous> (C:\Users\user\AppData\Local\Temp\insomnia_6.5.4\insomnia-plugin-os-1564098003065\jsonpath\lib\aesprim.js:20:3) at Module._compile (internal/modules/cjs/loader.js:711:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:559:12) at Function.Module._load (internal/modules/cjs/loader.js:551:3) at Function.Module.runMain (internal/modules/cjs/loader.js:753:10)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
TuralAsgarcommented, Dec 2, 2022

For windows 10-11 users

npm install insomnia-plugin-os

Then the plugin you want to install for example in my case insomnia-plugin-xdebug

npm install insomnia-plugin-xdebug

Go to C:\Users\YOUR_USERNAME\node_modules

cut 3 folders image

Open Insomnia->Application->Preferences->Plugins

Press Reveal Plugins Folder

Paste copied items

Open Insomnia->Application->Preferences->Plugins

Press Reload Plugins

That’s it!

Good luck!

3reactions
halostatuecommented, Feb 25, 2020

When I run npm install insomnia-plugin-os in my ~/Library/Application Support/Insomnia/plugins directory, nothing happens. Well, something happens, but nothing useful. To wit:

āžœ npm install insomnia-plugin-os
npm WARN saveError ENOENT: no such file or directory, open '/Users/austin/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/austin/package.json'
npm WARN austin No description
npm WARN austin No repository field.
npm WARN austin No README data
npm WARN austin No license field.

+ insomnia-plugin-os@2.1.4
updated 1 package and audited 100 packages in 0.741s
found 0 vulnerabilities

It creates a ~/package-lock.json and ~/node_modules, but does not otherwise do anything to the plugins/ directory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Call for Testing: Plugin Dependencies – Make WordPress Core
Confirm that a new admin notice is displayed if there are additional plugins that must be installed if dependencies are missing.
Read more >
jenkins 2 dependency errors loading some plugins
There are dependency errors loading some plugins: Pipeline: Stage View Plugin v2.4 pipeline-rest-api v2.4 is missing. To fix, install v2.4 or later. Pipeline...
Read more >
How to Install and Correct Dependencies Issues in Ubuntu
Option 4: Clean the Package Dependencies​​ A corrupted package database or packages that were broken or not installed properly can cause thisĀ ...
Read more >
Troubleshooting - Unity - Manual
Problems installing git dependencies, - No 'git' executable was found ... To correct these messages, read the error messages and fix any problems...
Read more >
Add build dependencies - Android Developers
Gradle adds the dependency to the compile classpath only (that is, it is not added to the build output). This is useful when...
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