Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

problem with the CLI on MacOS #5

Open
finedays opened this issue May 4, 2016 · 24 comments · Fixed by #19
Open

problem with the CLI on MacOS #5

finedays opened this issue May 4, 2016 · 24 comments · Fixed by #19

Comments

@finedays
Copy link

finedays commented May 4, 2016

Hi guys,
I am getting this error:
env: node\r: No such file or directory
Using Iterm2, using zsh. Does anyone has any suggestions how to fix it?
Thanks

@wbreza wbreza added the question label May 4, 2016
@wbreza
Copy link
Contributor

wbreza commented May 4, 2016

Can you provide more context? Which command are you executing?

@finedays
Copy link
Author

finedays commented May 4, 2016

Hi,

I am trying to execute powerbi from the shell. https://www.dropbox.com/s/zrgt2xxu7k7q9ux/Screenshot%202016-05-04%2020.50.23.png?dl=0

@wbreza
Copy link
Contributor

wbreza commented May 4, 2016

Did you install the module globally? npm install -g powerbi-cli ??

@finedays
Copy link
Author

finedays commented May 4, 2016

yes, I did.. it is exactly the same reaction when I try to run the cli from the /bin directory..

@wbreza wbreza added the bug label May 4, 2016
@wbreza
Copy link
Contributor

wbreza commented May 4, 2016

Thanks for submitting this. We'll get a fix out soon.

@finedays
Copy link
Author

finedays commented May 4, 2016

Thanks, looking forward the solution.

@wbreza
Copy link
Contributor

wbreza commented May 4, 2016

FYI - Appears to be an issue with line endings between Windows and OSX.
http://stackoverflow.com/questions/18492897/env-node-r-no-such-file-or-directory-with-cordova-cli

@finedays
Copy link
Author

finedays commented May 4, 2016

Hm, that might work out. Thanks! I will try it in an hour or so and will message again.

@finedays
Copy link
Author

finedays commented May 4, 2016

Actually, I tried it now and it is working! Thanks!

@finedays finedays closed this as completed May 4, 2016
@wbreza
Copy link
Contributor

wbreza commented May 4, 2016

I'm going to keep this open for now till we can put a permanent fix that doesn't require this workaround.

@wbreza wbreza reopened this May 4, 2016
@wbreza wbreza mentioned this issue May 4, 2016
@wbreza wbreza closed this as completed in #7 May 4, 2016
@wbreza
Copy link
Contributor

wbreza commented May 4, 2016

Reopening do to issue executing sub commands.

@karolkulesza
Copy link

Same issue here (not able to execute any command, resulting in "{command}(0) does not exist" error, in case of OS X.

Does this mean that PowerBI-Cli does not work on OS X, currently?

@wbreza
Copy link
Contributor

wbreza commented Aug 22, 2016

@karolkulesza - Yes - there is currently a bug that we are working through.

@homburgs
Copy link

homburgs commented Sep 8, 2016

Same bug here under Ubuntu Linux 14.04 LTS
with nodejs 4.5.0

@crnkyunicorn
Copy link

Any update on a release on this?

@stevenharman
Copy link

stevenharman commented Oct 3, 2016

FWIW, the hack around this (based on bad line endings) should be:

$ brew install dos2unix
$ find /usr/local/lib/node_modules/powerbi-cli -name "*.js" | xargs -n 1 sudo dos2unix

But even that doesn't seem to work. ¯_(ツ)_/¯
do-it-live

@stevenharman
Copy link

stevenharman commented Oct 4, 2016

It appears the line-ending issue has been resolved, but there's now a new issue, as mentioned in #18.

$ powerbi config

  powerbi-config(1) does not exist, try --help

This seem to be an issue with the names of the files in the bin directory. The parent binary bin/cli has been symlinked to powerbi. But when calling $ powerbi config, for example, it tries to execute another binary named powerbi-config. That binary doesn't exist b/c it's actually named cli-config. Also, those binaries aren't marked as executable.

A hack which does "work..."

$ pushd /usr/local/lib/node_modules/powerbi-cli/bin
$ for f in cli-*; do mv "$f" "`echo $f | sed s/cli-/powerbi-/`"; done
$ chmod +x powerbi-*
$ popd
$ powerbi config

@BretStateham
Copy link
Member

BretStateham commented Feb 28, 2017

Any update on this?

Running v1.0.8 (just re-installed this morning) on Bash on Ubuntu on Windows:

$ powerbi --version
1.0.8
$ powerbi config

  powerbi-config(1) does not exist, try --help

@ali-hamud
Copy link
Contributor

ali-hamud commented Feb 28, 2017

This task is in our backlog. no ETA.
Thanks for understanding.

@lipp
Copy link
Contributor

lipp commented Apr 7, 2017

@ali-hamud I really like and appreciate to see that Microsoft is doing node.
But why is there no ETA? The installation is basically not working at all / broken on OSX (and maybe other distros).

@lipp lipp mentioned this issue Apr 7, 2017
@gregbonnette
Copy link

FYI. This is also an issue within the Windows bash shell aka Ubuntu 14.04.4 LTS.

The previous dos2unix workaround did not work.

`~$ powerbi config
execvp(): No such file or directory

powerbi-config(1) does not exist, try --help`

@zimmermanw84
Copy link

FYI also broken on Ubuntu 16.04 LTS

selection_017
whatface

@adadgio
Copy link

adadgio commented Jul 31, 2017

Heys guys, any update or fix on this issue ? 😞

@agger-magenta
Copy link

I can confirm that the workaround involving dos2unix does not work under Ubuntu 16.04 LTS.

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

Successfully merging a pull request may close this issue.