Created
January 22, 2018 09:16
-
-
Save Tejeshwarabm/987f6298ca6227d9c22874322521a08a to your computer and use it in GitHub Desktop.
Steps to follow to convert text to json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt install npm | |
$ sudo npm install dna2json -g | |
$ dna2json | |
npm WARN checkPermissions Missing write access to /usr/local/lib | |
/usr/local/lib | |
`-- dna2json@1.0.7 | |
+-- first-match@0.0.1 | |
+-- lodash.reduce@3.1.2 | |
| +-- lodash._basecallback@3.3.1 | |
| | +-- lodash._baseisequal@3.0.7 | |
| | | `-- lodash.istypedarray@3.0.6 | |
| | +-- lodash._bindcallback@3.0.1 | |
| | `-- lodash.pairs@3.0.1 | |
| +-- lodash._baseeach@3.0.4 | |
| +-- lodash._basereduce@3.0.2 | |
| +-- lodash.isarray@3.0.4 | |
| `-- lodash.keys@3.1.2 | |
| +-- lodash._getnative@3.9.1 | |
| `-- lodash.isarguments@3.1.0 | |
`-- optimist@0.6.1 | |
+-- minimist@0.0.10 | |
`-- wordwrap@0.0.3 | |
npm ERR! Linux 4.13.0-26-generic | |
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "dna2json" "-g" | |
npm ERR! node v4.2.6 | |
npm ERR! npm v3.5.2 | |
npm ERR! path /usr/local/lib | |
npm ERR! code EACCES | |
npm ERR! errno -13 | |
npm ERR! syscall access | |
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib' | |
npm ERR! at Error (native) | |
npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib'] | |
npm ERR! errno: -13, | |
npm ERR! code: 'EACCES', | |
npm ERR! syscall: 'access', | |
npm ERR! path: '/usr/local/lib' } | |
npm ERR! | |
npm ERR! Please try running this command again as root/Administrator. | |
npm ERR! Please include the following file with any support request: | |
npm ERR! | |
# If u find error like this make a soft link | |
```````````````````````````````````````````` | |
$ sudo ln -s /usr/bin/nodejs /usr/bin/node | |
$ dna2json | |
Missing argument | |
Usage: dna2json <input file> <output file> | |
$ dna2json dna.txt dna.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment