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

Client not working on Win10 64bit #332

Open
chladog opened this issue May 7, 2021 · 1 comment
Open

Client not working on Win10 64bit #332

chladog opened this issue May 7, 2021 · 1 comment

Comments

@chladog
Copy link

chladog commented May 7, 2021

Creating a new instance of Abstract.Client fails on Windows machine regardless of settings of transportMode.
E.g.:

const client = new Abstract.Client({
    // Use the cli if available, otherwise use the api
    accessToken: data.sdkToken,
    transportMode: ["api"]
  });

Error: abstract-cli.exe could not be accessed at the expected path: ....\node_modules@elasticprojects\abstract-cli\bin\abstract-cli.exe

This happens due requiring abstract-cli in Endpoint.js:96 regardless of the settings

var cliPath = require("@elasticprojects/abstract-cli");

When I comment out the line, the client is working.

@tommoor
Copy link
Contributor

tommoor commented May 7, 2021

Is this path with the missing slash between node_modules@elasticprojects as the error was printed?

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

No branches or pull requests

2 participants