Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Install fails because of jsonpath postinstall #133

Closed
lonix1 opened this issue Feb 11, 2019 · 8 comments
Closed

Install fails because of jsonpath postinstall #133

lonix1 opened this issue Feb 11, 2019 · 8 comments

Comments

@lonix1
Copy link

lonix1 commented Feb 11, 2019

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.

@lonix1 lonix1 changed the title Install fails because of jonpath postinstall Install fails because of jsonpath postinstall Feb 11, 2019
@jgroom33
Copy link
Collaborator

@lonix1
Copy link
Author

lonix1 commented Feb 11, 2019

@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
Copy link
Collaborator

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

@jgroom33
Copy link
Collaborator

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

@lonix1
Copy link
Author

lonix1 commented Feb 11, 2019

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
Copy link
Collaborator

What OS and versions of the libs?

@lonix1
Copy link
Author

lonix1 commented Feb 14, 2019

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
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants