Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install the plugin #1

Open
guaranadev opened this issue Apr 24, 2020 · 4 comments
Open

Cannot install the plugin #1

guaranadev opened this issue Apr 24, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@guaranadev
Copy link

When I try to install the plugin on Insomnia 7.1.1 on Windows, the following error is displayed:

insomnia-plugin-response-regex install error: Command failed: "C:\Users\MY_USERNAME\AppData\Local\insomnia\app-7.1.1\Insomnia.exe" --no-deprecation "C:\Users\MY_USERNAME\AppData\Local\insomnia\app-7.1.1\resources\bin\yarn-standalone.js" add insomnia-plugin-response-regex --modules-folder "C:\Users\MY_USERNAME\AppData\Local\Temp\insomnia_7.1.1\insomnia-plugin-response-regex-1587737777810" --cwd "C:\Users\MY_USERNAME\AppData\Local\Temp\insomnia_7.1.1\insomnia-plugin-response-regex-1587737777810" --no-lockfile --production --no-progress
error C:\Users\MY_USERNAME\AppData\Local\Temp\insomnia_7.1.1\insomnia-plugin-response-regex-1587737777810\jsonpath: Command failed.
Exit code: 1
Command: node lib/aesprim.js > generated/aesprim-browser.js
Arguments: 
Directory: C:\Users\MY_USERNAME\AppData\Local\Temp\insomnia_7.1.1\insomnia-plugin-response-regex-1587737777810\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\MY_USERNAME\AppData\Local\Temp\insomnia_7.1.1\insomnia-plugin-response-regex-1587737777810\jsonpath\lib\aesprim.js:4:20)
    at Object.<anonymous> (C:\Users\MY_USERNAME\AppData\Local\Temp\insomnia_7.1.1\insomnia-plugin-response-regex-1587737777810\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)
@guaranadev
Copy link
Author

I was able to install the plugin by cloning this repo to Insomnia's plugin directory and then running npm install. Insomnia then picked up the plugin automatically

@duc12597 duc12597 added the bug Something isn't working label Apr 25, 2020
@duc12597
Copy link
Owner

Will look into a fix for this. It would be much appreciated if someone create a pull request for a solution. For the time being, please clone the repo to Insomnia's plugin directory and manually run npm install like @guaranadev did.

@Geobert
Copy link

Geobert commented Sep 3, 2020

Hi,

I've cloned the repo and inside I've run:

npm install

> [email protected] postinstall C:\Users\geobe\work\insomnia-plugin-response-regex\node_modules\jsonpath
> node lib/aesprim.js > generated/aesprim-browser.js

npm WARN [email protected] No license field.

added 25 packages from 71 contributors and audited 25 packages in 1.44s
found 0 vulnerabilities

But Insomnia doesn't seem to load it, what did I miss?

@Geobert
Copy link

Geobert commented Sep 3, 2020

Ok, I've copied the repo in the plugins directory and it was loaded.

How do I express to return only one of the match group?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants