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

npm command can't parse the json file. #9

Open
lixiaodongsql opened this issue Aug 2, 2017 · 0 comments
Open

npm command can't parse the json file. #9

lixiaodongsql opened this issue Aug 2, 2017 · 0 comments

Comments

@lixiaodongsql
Copy link

Thank you very much for developing shadowsocks-over-websocket. I really appreciate it. I run the npm install command through proxy.

http_proxy=http://localhost:8123 npm install
npm ERR! registry error parsing json
npm ERR! Linux 4.10.0-28-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.7.2
npm ERR! npm v3.5.2

npm ERR! Unexpected end of input
npm ERR! {"_id":"console-control-strings","_rev":"3-d867ab058aee6bee962ebd838974ef34","name":"console-control-strings","description":"A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset of both ansi and vt100. All control codes included work on both Windows & Unix-like OSes, except where noted.","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"console-control-strings","version":"1.0.0","description":"A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset of both ansi and vt100. All control codes included work on both Windows & Unix-like OSes, except where noted.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"standard && tap test/.js"},"repository":{"type":"git","url":"git+https://github.com/iarna/console-control-strings.git"},"keywords":[],"author":{"name":"Rebecca Turner","email":"[email protected]","url":"http://re-becca.org/"},"license":"ISC","files":["LICENSE","index.js"],"devDependencies":{"standard":"^7.1.2","tap":"^5.7.2"},"gitHead":"7c5d72b64e49f56cdbb25d60a13a362526d6d162","bugs":{"url":"https://github.com/iarna/console-control-strings/issues"},"homepage":"https://github.com/iarna/console-control-strings#readme","_id":"[email protected]","_shasum":"4e6aac25444ab157f528a4487d6524a25c506a4f","_from":".","_npmVersion":"3.9.2","_nodeVersion":"4.4.0","_npmUser":{"name":"iarna","email":"[email protected]"},"dist":{"shasum":"4e6aac25444ab157f528a4487d6524a25c506a4f","tarball":"https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.0.0.tgz"},"maintainers":[{"name":"iarna","email":"[email protected]"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/console-control-strings-1.0.0.tgz_1466025343054_0.1228993758559227"}},"1.1.0":{"name":"console-control-strings","version":"1.1.0","description":"A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset of both ansi and vt100. All control codes included work on both Windows & Unix-like OSes, except where noted.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"standard && tap test/.js"},"repository":{"type":"git","url":"git+https://github.com/iarna/console-control-strings.git"},"keywords":[],"author":{"name":"Rebecca Turner","email":"[email protected]","url":"http://re-becca.org/"},"license":"ISC","files":["LICENSE","index.js"],"devDependencies":{"standard":"^7.1.2","tap":"^5.7.2"},"gitHead":"722439b4998d2964ac3d3f9ec175c008aa9b7b4b","bugs":{"url":"https://github.com/iarna/console-control-strings/issues"},"homepage":"https://github.com/iarna/console-control-strings#readme","_id":"[email protected]","_shasum":"3d7cf4464db6446ea644bf4b39507f9851008e8e","_from":".","_npmVersion":"3.9.2","_nodeVersion":"4.4.0","_npmUser":{"name":"iarna","email":"[email protected]"},"dist":{"shasum":"3d7cf4464db6446ea644bf4b39507f9851008e8e","tarball":"https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz"},"maintainers":[{"name":"iarna","email":"[email protected]"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/console-control-strings-1.1.0.tgz_1466033396831_0.9470485949423164"}}},"readme":"# Console Control Strings\n\nA library of cross-platform tested terminal/console command strings for\ndoing things like color and cursor positioning. This is a subset of both\nansi and vt100. All control codes included work on both Windows & Unix-like\nOSes, except where noted.\n\n## Usage\n\njs\nvar consoleControl = require('console-control-strings')\n\nconsole.log(consoleControl.color('blue','bgRed', 'bold') + 'hi there' + consoleControl.color('reset'))\nprocess.stdout.write(consoleControl.goto(75, 10))\n\n\n## Why Another?\n\nThere are tons of libraries similar to this one. I wanted one that was:\n\n1. Very clear about compatibility goals.\n2. Could emit, for instance, a start color code without an end one.\n3. Returned strings w/o writing to streams.\n4. Was not weighed down with other unrelated baggage.\n\n## Functions\n\n### var code = consoleControl.up(num = 1)\n\nReturns the escape sequence to move num lines up.\n\n### var code = consoleControl.down(num = 1)\n\nReturns the escape sequence to move num lines down.\n\n### var code = consoleControl.forward(num = 1)\n\nReturns the escape sequence to move num lines righ.\n\n### var code = consoleControl.back(num = 1)\n\nReturns the escape sequence to move num lines left.\n\n### var code = consoleControl.nextLine(num = 1)\n\nReturns the escape sequence to move num lines down and to the beginning of\nthe line.\n\n### var code = consoleControl.previousLine(num = 1)\n\nReturns the escape sequence to move num lines up and to the beginning of\nthe line.\n\n### var code = consoleControl.eraseData()\n\nReturns the escape sequence to erase everything from the current cursor\nposition to the bottom right of the screen. This is line based, so it\nerases the remainder of the current line and all following lines.\n\n### var code = consoleControl.eraseLine()\n\nReturns the escape sequence to erase to the end of the current line.\n\n### var code = consoleControl.goto(x, y)\n\nReturns the escape sequence to move the cursor to the designated position. \nNote that the origin is 1, 1 not 0, 0.\n\n### var code = consoleControl.gotoSOL()\n\nReturns the escape sequence to move the cursor to the beginning of the\ncurrent line. (That is, it returns a carriage return, \\r.)\n\n### var code = consoleControl.beep()\n\nReturns the escape sequence to cause the termianl to beep. (That is, it\nreturns unicode character \\x0007, a Control-G.)\n\n### var code = consoleControl.hideCursor()\n\nReturns the escape sequence to hide the cursor.\n\n### var code = consoleControl.showCursor()\n\nReturns the escape sequence to show the cursor.\n\n### var code = consoleControl.color(colors = [])\n\n### var code = consoleControl.color(color1, color2, , colorn)\n\nReturns the escape sequence to set the current terminal display attributes\n(mostly colors). Arguments can either be a list of attributes or an array\nof attributes. The difference between passing in an array or list of colors\nand calling .color separately for each one, is that in the former case a\nsingle escape sequence will be produced where as in the latter each change\nwill have its own distinct escape sequence. Each attribute can be one of:\n\n* Reset:\n * reset – Reset all attributes to the terminal default.\n* Styles:\n * bold – Display text as bold. In some terminals this means using a\n bold font, in others this means changing the color. In some it means\n both.\n * italic – Display text as italic. This is not available in most Windows terminals.\n * underline – Underline text. This is not available in most Windows Terminals.\n * inverse – Invert the foreground and background colors.\n * stopBold – Do not display text as bold.\n * stopItalic – Do not display text as italic.\n * stopUnderline – Do not underline text.\n * stopInverse – Do not invert foreground and background.\n* Colors:\n * white\n * black\n * blue\n * cyan\n * green\n * magenta\n * red\n * yellow\n * grey / brightBlack\n * brightRed\n * brightGreen\n * brightYellow\n * brightBlue\n * brightMagenta\n * brightCyan\n * brightWhite\n* Background Colors:\n * bgWhite\n * bgBlack\n * bgBlue\n * bgCyan\n * bgGreen\n * bgMagenta\n * bgRed\n * bgYellow\n * bgGrey / bgBrightBlack\n * **bgBright
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm-debug.log.txt

I upload the npm debug log file. Thank you so much for your help. I really appreciate it.

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

No branches or pull requests

1 participant