zemirco / json2csv

Convert json to csv with column titles
http://zemirco.github.io/json2csv
MIT License
2.71k stars 365 forks source link

installation of json2csv #143

Closed monicasenapati closed 7 years ago

monicasenapati commented 7 years ago

I have cloned this on my system. But when I install it via terminal using the following command npm install json2csv --save it shows an error. I am unable to install and run it via command line.

knownasilya commented 7 years ago

You don't need to clone. If you want to use as a module use npm install --save json2csv inside your project and if you want to use via the CLI, use -g instead.

monicasenapati commented 7 years ago

Do you mean to run it by Npm install -g json2csv in the terminal directly?

Because I tried that. But when I run the command json2csv - h, it says that no such file or directory.

On Sep 29, 2016 8:01 PM, Ilya Radchenko notifications@github.com wrote:

You don't need to clone. If you want to use as a module use npm install --save json2csv inside your project and if you want to use via the CLI, use -g instead.

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zemirco/json2csv/issues/143#issuecomment-250633267, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AUVUmTw7l65WesYSrcCc1IxG67Cq0O2xks5qvF95gaJpZM4KKkZJ.

knownasilya commented 7 years ago

asciicast

monicasenapati commented 7 years ago

Yes, I do that. On running the install command this is what I get.

/usr/local/bin/json2csv -> /usr/local/lib/node_modules/json2csv/bin/json2csv.js /usr/local/lib $B(&(!(!(B json2csv@3.7.0

But on running json2csv -h, it says that "/usr/bin/env: $B!F(Bnode$B!G(B: No such file or directory"

I am running this in the terminal on Ubuntu.

Thanks & regards,

Monica


From: Ilya Radchenko notifications@github.com Sent: 29 September 2016 19:35:30 To: zemirco/json2csv Cc: Senapati, Monica (UMKC-Student); Author Subject: Re: [zemirco/json2csv] installation of json2csv (#143)

[asciicast]https://asciinema.org/a/er5pbr1b8ljkkpgr2z40nc8c3

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zemirco/json2csv/issues/143#issuecomment-250637358, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AUVUmVxCo1G7V2F92UPaOK_0NHsqa-sYks5qvGdigaJpZM4KKkZJ.

knownasilya commented 7 years ago

What version of node?

monicasenapati commented 7 years ago

I just found out that nodejs wasn't installed. I didn't realise it needed something called node. The fact is I am new to this area, so I am not aware of these prerequisites.

However, I installed nodejs. And tried installing json2csv again. It worked.

And my node version is v4.2.6.

I have attached the debug logs from when there was a problem with the installation, just in case.

Thank you for your time.


From: Ilya Radchenko notifications@github.com Sent: 29 September 2016 20:24:17 To: zemirco/json2csv Cc: Senapati, Monica (UMKC-Student); Author Subject: Re: [zemirco/json2csv] installation of json2csv (#143)

What version of node?

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zemirco/json2csv/issues/143#issuecomment-250643255, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AUVUmdNSRQYlWmFb2a9gJK1ioms5wxyeks5qvHLRgaJpZM4KKkZJ.