eykrehbein / strest

⚡️ CI-ready tests for REST APIs configured in YAML
MIT License
1.74k stars 59 forks source link

Install fails because of jsonpath postinstall #133

Closed lonix1 closed 5 years ago

lonix1 commented 5 years ago

I install using sudo npm i -g @strest/cli

During postinstall it shows:

npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! jsonpath@1.0.0 postinstall: node lib/aesprim.js > generated/aesprim-browser.js npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the jsonpath@1.0.0 postinstall script.

jgroom33 commented 5 years ago

https://github.com/artilleryio/artillery/issues/548

lonix1 commented 5 years ago

@jgroom33 Thanks.

npm --ignore-scripts is a hack, but it does allow me to install... I wonder why it doesn't work?

Anyways, now I can run a strest file from the shell.

But I can't run from the vscode plugin - I get an error popup with Could not calculate YAML path.

jgroom33 commented 5 years ago

the plugin depends on where your cursor is. it needs to be within a request object

jgroom33 commented 5 years ago

i agree the install is a hack. yarn seems to work better

lonix1 commented 5 years ago

Doesn't work for me... even if the cursor is within the request text. Also when I click the blue button on the top-right. In both cases I get that popup.

The text of my foo.strest.yml file is copy-pasta from the repo's readme, so I assume it's syntactically correct.

jgroom33 commented 5 years ago

What OS and versions of the libs?

lonix1 commented 5 years ago

latest of everything:

@strest/cli 2.4.0 stREST Client 0.1.1

ubuntu 18.10 vscode 1.31.0

(works from CLI, but not using vscode plugin)

jgroom33 commented 5 years ago

since this is an issue with the plugin, it should be opened there: https://github.com/jgroom33/vscode-strest-client/issues closing this in favor of the hack unless a better approach is suggested