Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 199 forks source link

cnpm install -g polymer-cli ,sth wrong? #2368

Closed yanlee26 closed 5 years ago

yanlee26 commented 7 years ago
立@yl-pc MINGW64 /d/me/polymer-first-elements
$ cnpm install -g polymer-cli
install test-fixture from git github:polymerelements/test-fixture, may be very slow, please keep patience
[npminstall:get] retry GET https://registry.npm.taobao.org/path-dirname/%3E%3D1.0.0%20%3C2.0.0 after 100ms, retry left 4, error: ResponseError: socket hang up (req "error"), GET https://registry.npm.taobao.org/path-dirname/%3E%3D1.0.0%20%3C2.0.0 -1 (connected: true, keepalive socket: true)
headers: {}
[npminstall:get] retry GET https://registry.npm.taobao.org/decompress-tar/%3E%3D3.0.0%20%3C4.0.0 after 100ms, retry left 4, error: RequestError: connect ETIMEDOUT 114.55.80.225:443 (req "error"), GET https://registry.npm.taobao.org/decompress-tar/%3E%3D3.0.0%20%3C4.0.0 -1 (connected: false, keepalive socket: false)
headers: {}
[npminstall:get] retry GET https://registry.npm.taobao.org/decompress-unzip/%3E%3D3.0.0%20%3C4.0.0 after 100ms, retry left 4, error: RequestError: connect ETIMEDOUT 114.55.80.225:443 (req "error"), GET https://registry.npm.taobao.org/decompress-unzip/%3E%3D3.0.0%20%3C4.0.0 -1 (connected: false, keepalive socket: false)
headers: {}
[npminstall:get] retry GET https://registry.npm.taobao.org/wordwrap/%3E%3D0.0.2%20%3C0.1.0 after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://registry.npm.taobao.org/wordwrap/%3E%3D0.0.2%20%3C0.1.0 -1 (connected: true, keepalive socket: true)
headers: {}
[npminstall:get] retry GET https://registry.npm.taobao.org/error-ex/%3E%3D1.2.0%20%3C2.0.0 after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://registry.npm.taobao.org/error-ex/%3E%3D1.2.0%20%3C2.0.0 -1 (connected: true, keepalive socket: true)
headers: {}
[urllib:warn] [Sun Mar 19 2017 20:29:12 GMT+0800 (中国标准时间)] [worker:896] GET https://registry.npm.taobao.org/error-ex/%3E%3D1.2.0%20%3C2.0.0 callback twice!!!
[urllib:warn] [Sun Mar 19 2017 20:29:12 GMT+0800 (中国标准时间)] [worker:896] JSONResponseFormatError: Unexpected token n in JSON at position 1165 (data json format: "{\"name\":\"error-ex\",\"description\":\"Easy error subclassing and stack customization\",\"version\":\"1.3.1\",\"maintainers\":[{\"name\":\"qix\",\"email\":\"i.am.qix@gmail.com\"},{\"name\":\"sindresorhus\",\"email\":\"sindresorhus@gmail.com\"}],\"keywords\":[\"error\",\"errors\",\"extend\",\"extending\",\"extension\",\"subclass\",\"stack\",\"custom\"],\"license\":\"MIT\",\"scripts\":{\"pretest\":\"xo\",\"test\":\"mocha --compilers coffee:coffee-script/register\"},\"xo\":{\"rules\":{\"operator-linebreak\":[0]}},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/qix-/" ...skip... "d\":\"^7.0.1\",\"xo\":\"^0.7.1\"},\"dependencies\":{\"is-arrayish\":\"^0.2.1\"},\"gitHead\":\"002e0ffd7ae9e3427555459c132e823251d7e195\",\"bugs\":{\"url\":\"https://github.com/qix-/node-error-ex/issues\"},\"homepage\":\"https://github.com/qix-/node-error-ex#readme\",\"_id\":\"error-ex@1.3.1\",\"_shasum\":\"f855a86ce61adc4e8621c3cda21e7a7612c3a8dc\",\"_from\":\".\",\"_npmVersion\":\"2.15.1\",\"_nodeVersion\":\"4.4.3\",\"_npmUser\":{\"name\":\"qix\",\"email\":\"i.am.qix@gmail.com\"},\"dist\":{\"shasum\":\"f855a86ce61adc4e8621c3cda21e7a7612c3a8dc\",\"size\":3519,\"noattachme")
stack: JSONResponseFormatError: Unexpected token n in JSON at position 1165 (data json format: "{\"name\":\"error-ex\",\"description\":\"Easy error subclassing and stack customization\",\"version\":\"1.3.1\",\"maintainers\":[{\"name\":\"qix\",\"email\":\"i.am.qix@gmail.com\"},{\"name\":\"sindresorhus\",\"email\":\"sindresorhus@gmail.com\"}],\"keywords\":[\"error\",\"errors\",\"extend\",\"extending\",\"extension\",\"subclass\",\"stack\",\"custom\"],\"license\":\"MIT\",\"scripts\":{\"pretest\":\"xo\",\"test\":\"mocha --compilers coffee:coffee-script/register\"},\"xo\":{\"rules\":{\"operator-linebreak\":[0]}},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/qix-/" ...skip... "d\":\"^7.0.1\",\"xo\":\"^0.7.1\"},\"dependencies\":{\"is-arrayish\":\"^0.2.1\"},\"gitHead\":\"002e0ffd7ae9e3427555459c132e823251d7e195\",\"bugs\":{\"url\":\"https://github.com/qix-/node-error-ex/issues\"},\"homepage\":\"https://github.com/qix-/node-error-ex#readme\",\"_id\":\"error-ex@1.3.1\",\"_shasum\":\"f855a86ce61adc4e8621c3cda21e7a7612c3a8dc\",\"_from\":\".\",\"_npmVersion\":\"2.15.1\",\"_nodeVersion\":\"4.4.3\",\"_npmUser\":{\"name\":\"qix\",\"email\":\"i.am.qix@gmail.com\"},\"dist\":{\"shasum\":\"f855a86ce61adc4e8621c3cda21e7a7612c3a8dc\",\"size\":3519,\"noattachme")
    at JSON.parse (<anonymous>)
    at parseJSON (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:841:24)
    at C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:648:23
    at decodeContent (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:502:14)
    at IncomingMessage.<anonymous> (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:629:7)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
[npminstall:get] retry GET https://registry.npm.taobao.org/cheerio/%3E%3D0.19.0%20%3C0.20.0 after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://registry.npm.taobao.org/cheerio/%3E%3D0.19.0%20%3C0.20.0 -1 (connected: true, keepalive socket: true)
headers: {}
[urllib:warn] [Sun Mar 19 2017 20:29:19 GMT+0800 (中国标准时间)] [worker:896] GET https://registry.npm.taobao.org/cheerio/%3E%3D0.19.0%20%3C0.20.0 callback twice!!!
[urllib:warn] [Sun Mar 19 2017 20:29:19 GMT+0800 (中国标准时间)] [worker:896] JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"cheerio\",\"version\":\"0.19.0\",\"description\":\"Tiny, fast, and elegant implementation of core jQuery designed specifically for the server\",\"author\":{\"name\":\"Matt Mueller\",\"email\":\"mattmuelle@gmail.com\",\"url\":\"mat.io\"},\"license\":\"MIT\",\"keywords\":[\"htmlparser\",\"jquery\",\"selector\",\"scraper\",\"parser\",\"html\"],\"repository\":{\"type\":\"git\",\"url\":\"git://github.com/cheeriojs/cheerio.git\"},\"main\":\"./index.js\",\"engines\":{\"node\":\">= 0.6\"},\"dependencies\":{\"css-select\":\"~1.0.0\",\"entities\":\"~1.1.1\",\"htmlparser2\":\"~3.8." ...skip... "          3.9%\\n    19  Felix Böhm             2.5%\\n    17  fb55                    2.2%\\n    15  Siddharth Mahendraker   2.0%\\n    11  Adam Bretz              1.4%\\n     8  Nazar Leush             1.0%\\n     7  ironchefpython          0.9%\\n     6  Jarno Leppänen         0.8%\\n     5  Ben Sheldon             0.7%\\n     5  Jos Shepherd            0.7%\\n     5  Ryan Schmukler          0.7%\\n     5  Steven Vachon           0.7%\\n     4  Maciej Adwent           0.5%\\n     4  Amir Abu Shareb         0.5%\\n    ")
stack: JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"cheerio\",\"version\":\"0.19.0\",\"description\":\"Tiny, fast, and elegant implementation of core jQuery designed specifically for the server\",\"author\":{\"name\":\"Matt Mueller\",\"email\":\"mattmuelle@gmail.com\",\"url\":\"mat.io\"},\"license\":\"MIT\",\"keywords\":[\"htmlparser\",\"jquery\",\"selector\",\"scraper\",\"parser\",\"html\"],\"repository\":{\"type\":\"git\",\"url\":\"git://github.com/cheeriojs/cheerio.git\"},\"main\":\"./index.js\",\"engines\":{\"node\":\">= 0.6\"},\"dependencies\":{\"css-select\":\"~1.0.0\",\"entities\":\"~1.1.1\",\"htmlparser2\":\"~3.8." ...skip... "          3.9%\\n    19  Felix Böhm             2.5%\\n    17  fb55                    2.2%\\n    15  Siddharth Mahendraker   2.0%\\n    11  Adam Bretz              1.4%\\n     8  Nazar Leush             1.0%\\n     7  ironchefpython          0.9%\\n     6  Jarno Leppänen         0.8%\\n     5  Ben Sheldon             0.7%\\n     5  Jos Shepherd            0.7%\\n     5  Ryan Schmukler          0.7%\\n     5  Steven Vachon           0.7%\\n     4  Maciej Adwent           0.5%\\n     4  Amir Abu Shareb         0.5%\\n    ")
    at JSON.parse (<anonymous>)
    at parseJSON (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:841:24)
    at C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:648:23
    at decodeContent (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:502:14)
    at IncomingMessage.<anonymous> (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:629:7)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
[npminstall:get] retry GET https://registry.npm.taobao.org/capture-stack-trace/%3E%3D1.0.0%20%3C2.0.0 after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://registry.npm.taobao.org/capture-stack-trace/%3E%3D1.0.0%20%3C2.0.0 -1 (connected: true, keepalive socket: true)
headers: {}
[urllib:warn] [Sun Mar 19 2017 20:29:22 GMT+0800 (中国标准时间)] [worker:896] GET https://registry.npm.taobao.org/capture-stack-trace/%3E%3D1.0.0%20%3C2.0.0 callback twice!!!
[urllib:warn] [Sun Mar 19 2017 20:29:22 GMT+0800 (中国标准时间)] [worker:896] JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"capture-stack-trace\",\"version\":\"1.0.0\",\"description\":\"Error.captureStackTrace ponyfill\",\"license\":\"MIT\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/floatdrop/capture-stack-trace\"},\"author\":{\"name\":\"Vsevolod Strukchinsky\",\"email\":\"floatdrop@gmail.com\",\"url\":\"github.com/floatdrop\"},\"engines\":{\"node\":\">=0.10.0\"},\"scripts\":{\"test\":\"mocha\"},\"files\":[\"index.js\"],\"keywords\":[\"Error\",\"captureStackTrace\"],\"dependencies\":{},\"devDependencies\":{\"mocha\":\"*\"},\"gitHead\":\"eb46ce326fa9074b6ce17a94d4b765003" ...skip... "apture-stack-trace@1.0.0\",\"_shasum\":\"4a6fa07399c26bba47f0b2496b4d0fb408c5550d\",\"_from\":\".\",\"_npmVersion\":\"1.4.28\",\"_npmUser\":{\"name\":\"floatdrop\",\"email\":\"floatdrop@gmail.com\"},\"maintainers\":[{\"name\":\"floatdrop\",\"email\":\"floatdrop@gmail.com\"}],\"dist\":{\"shasum\":\"4a6fa07399c26bba47f0b2496b4d0fb408c5550d\",\"size\":859,\"noattachment\":false,\"tarball\":\"http://registry.npm.taobao.org/capture-stack-trace/download/capture-stack-trace-1.0.0.tgz\"},\"directories\":{},\"publish_time\":1437728066092,\"_cnpm_publish_time\":1437728")
stack: JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"capture-stack-trace\",\"version\":\"1.0.0\",\"description\":\"Error.captureStackTrace ponyfill\",\"license\":\"MIT\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/floatdrop/capture-stack-trace\"},\"author\":{\"name\":\"Vsevolod Strukchinsky\",\"email\":\"floatdrop@gmail.com\",\"url\":\"github.com/floatdrop\"},\"engines\":{\"node\":\">=0.10.0\"},\"scripts\":{\"test\":\"mocha\"},\"files\":[\"index.js\"],\"keywords\":[\"Error\",\"captureStackTrace\"],\"dependencies\":{},\"devDependencies\":{\"mocha\":\"*\"},\"gitHead\":\"eb46ce326fa9074b6ce17a94d4b765003" ...skip... "apture-stack-trace@1.0.0\",\"_shasum\":\"4a6fa07399c26bba47f0b2496b4d0fb408c5550d\",\"_from\":\".\",\"_npmVersion\":\"1.4.28\",\"_npmUser\":{\"name\":\"floatdrop\",\"email\":\"floatdrop@gmail.com\"},\"maintainers\":[{\"name\":\"floatdrop\",\"email\":\"floatdrop@gmail.com\"}],\"dist\":{\"shasum\":\"4a6fa07399c26bba47f0b2496b4d0fb408c5550d\",\"size\":859,\"noattachment\":false,\"tarball\":\"http://registry.npm.taobao.org/capture-stack-trace/download/capture-stack-trace-1.0.0.tgz\"},\"directories\":{},\"publish_time\":1437728066092,\"_cnpm_publish_time\":1437728")
    at JSON.parse (<anonymous>)
    at parseJSON (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:841:24)
    at C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:648:23
    at decodeContent (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:502:14)
    at IncomingMessage.<anonymous> (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:629:7)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
[npminstall:get] retry GET https://registry.npm.taobao.org/yeoman-generator/%3E%3D0.24.1%20%3C0.25.0 after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://registry.npm.taobao.org/yeoman-generator/%3E%3D0.24.1%20%3C0.25.0 -1 (connected: true, keepalive socket: true)
headers: {}
[npminstall:get] retry GET https://registry.npm.taobao.org/through2/%3E%3D0.6.0%20%3C0.7.0 after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://registry.npm.taobao.org/through2/%3E%3D0.6.0%20%3C0.7.0 -1 (connected: true, keepalive socket: true)
headers: {}
[urllib:warn] [Sun Mar 19 2017 20:29:24 GMT+0800 (中国标准时间)] [worker:896] GET https://registry.npm.taobao.org/through2/%3E%3D0.6.0%20%3C0.7.0 callback twice!!!
[urllib:warn] [Sun Mar 19 2017 20:29:24 GMT+0800 (中国标准时间)] [worker:896] JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"through2\",\"version\":\"0.6.5\",\"description\":\"A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise\",\"main\":\"through2.js\",\"scripts\":{\"test\":\"node test/test.js\",\"test-local\":\"brtapsauce-local test/basic-test.js\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/rvagg/through2.git\"},\"keywords\":[\"stream\",\"streams2\",\"through\",\"transform\"],\"author\":{\"name\":\"Rod Vagg\",\"email\":\"r@va.gg\",\"url\":\"https://github.com/rvagg\"},\"license\":\"MIT\",\"dependencies\":{\"readable-stream\":\">=1.0." ...skip... "rror.\\n\\nIf you **do not provide a `transformFunction`** then you will get a simple pass-through stream.\\n\\n### flushFunction\\n\\nThe optional `flushFunction` is provided as the last argument (2nd or 3rd, depending on whether you've supplied options) is called just prior to the stream ending. Can be used to finish up any processing that may be in progress.\\n\\n```js\\nfs.createReadStream('/tmp/important.dat')\\n  .pipe(through2(\\n    function (chunk, enc, cb) { cb(null, chunk) }, // transform is a noop\\n    fun")
stack: JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"through2\",\"version\":\"0.6.5\",\"description\":\"A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise\",\"main\":\"through2.js\",\"scripts\":{\"test\":\"node test/test.js\",\"test-local\":\"brtapsauce-local test/basic-test.js\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/rvagg/through2.git\"},\"keywords\":[\"stream\",\"streams2\",\"through\",\"transform\"],\"author\":{\"name\":\"Rod Vagg\",\"email\":\"r@va.gg\",\"url\":\"https://github.com/rvagg\"},\"license\":\"MIT\",\"dependencies\":{\"readable-stream\":\">=1.0." ...skip... "rror.\\n\\nIf you **do not provide a `transformFunction`** then you will get a simple pass-through stream.\\n\\n### flushFunction\\n\\nThe optional `flushFunction` is provided as the last argument (2nd or 3rd, depending on whether you've supplied options) is called just prior to the stream ending. Can be used to finish up any processing that may be in progress.\\n\\n```js\\nfs.createReadStream('/tmp/important.dat')\\n  .pipe(through2(\\n    function (chunk, enc, cb) { cb(null, chunk) }, // transform is a noop\\n    fun")
    at JSON.parse (<anonymous>)
    at parseJSON (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:841:24)
    at C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:648:23
    at decodeContent (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:502:14)
    at IncomingMessage.<anonymous> (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:629:7)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
[npminstall:get] retry GET https://registry.npm.taobao.org/concat-map/0.0.1 after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://registry.npm.taobao.org/concat-map/0.0.1 -1 (connected: true, keepalive socket: true)
headers: {}
[npminstall:get] retry GET https://registry.npm.taobao.org/load-json-file/%3E%3D1.0.0%20%3C2.0.0 after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://registry.npm.taobao.org/load-json-file/%3E%3D1.0.0%20%3C2.0.0 -1 (connected: true, keepalive socket: true)
headers: {}
[urllib:warn] [Sun Mar 19 2017 20:29:27 GMT+0800 (中国标准时间)] [worker:896] GET https://registry.npm.taobao.org/load-json-file/%3E%3D1.0.0%20%3C2.0.0 callback twice!!!
[urllib:warn] [Sun Mar 19 2017 20:29:27 GMT+0800 (中国标准时间)] [worker:896] JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"load-json-file\",\"version\":\"1.1.0\",\"description\":\"Read and parse a JSON file\",\"license\":\"MIT\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/sindresorhus/load-json-file\"},\"author\":{\"name\":\"Sindre Sorhus\",\"email\":\"sindresorhus@gmail.com\",\"url\":\"sindresorhus.com\"},\"engines\":{\"node\":\">=0.10.0\"},\"scripts\":{\"test\":\"xo && ava\"},\"files\":[\"index.js\"],\"keywords\":[\"json\",\"read\",\"parse\",\"file\",\"fs\",\"graceful\",\"load\"],\"dependencies\":{\"graceful-fs\":\"^4.1.2\",\"parse-json\":\"^2.2.0\",\"pify\":\"^2.0.0\",\"pinkie-pro" ...skip... "51eb\",\"bugs\":{\"url\":\"https://github.com/sindresorhus/load-json-file/issues\"},\"homepage\":\"https://github.com/sindresorhus/load-json-file\",\"_id\":\"load-json-file@1.1.0\",\"_shasum\":\"956905708d58b4bab4c2261b04f59f31c99374c0\",\"_from\":\".\",\"_npmVersion\":\"2.14.7\",\"_nodeVersion\":\"4.2.1\",\"_npmUser\":{\"name\":\"sindresorhus\",\"email\":\"sindresorhus@gmail.com\"},\"dist\":{\"shasum\":\"956905708d58b4bab4c2261b04f59f31c99374c0\",\"size\":1825,\"noattachment\":false,\"tarball\":\"http://registry.npm.taobao.org/load-json-file/download/load-jso")
stack: JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"load-json-file\",\"version\":\"1.1.0\",\"description\":\"Read and parse a JSON file\",\"license\":\"MIT\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/sindresorhus/load-json-file\"},\"author\":{\"name\":\"Sindre Sorhus\",\"email\":\"sindresorhus@gmail.com\",\"url\":\"sindresorhus.com\"},\"engines\":{\"node\":\">=0.10.0\"},\"scripts\":{\"test\":\"xo && ava\"},\"files\":[\"index.js\"],\"keywords\":[\"json\",\"read\",\"parse\",\"file\",\"fs\",\"graceful\",\"load\"],\"dependencies\":{\"graceful-fs\":\"^4.1.2\",\"parse-json\":\"^2.2.0\",\"pify\":\"^2.0.0\",\"pinkie-pro" ...skip... "51eb\",\"bugs\":{\"url\":\"https://github.com/sindresorhus/load-json-file/issues\"},\"homepage\":\"https://github.com/sindresorhus/load-json-file\",\"_id\":\"load-json-file@1.1.0\",\"_shasum\":\"956905708d58b4bab4c2261b04f59f31c99374c0\",\"_from\":\".\",\"_npmVersion\":\"2.14.7\",\"_nodeVersion\":\"4.2.1\",\"_npmUser\":{\"name\":\"sindresorhus\",\"email\":\"sindresorhus@gmail.com\"},\"dist\":{\"shasum\":\"956905708d58b4bab4c2261b04f59f31c99374c0\",\"size\":1825,\"noattachment\":false,\"tarball\":\"http://registry.npm.taobao.org/load-json-file/download/load-jso")
    at JSON.parse (<anonymous>)
    at parseJSON (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:841:24)
    at C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:648:23
    at decodeContent (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:502:14)
    at IncomingMessage.<anonymous> (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:629:7)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
[npminstall:get] retry GET https://registry.npm.taobao.org/wrap-fn/%3E%3D0.1.0%20%3C0.2.0 after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://registry.npm.taobao.org/wrap-fn/%3E%3D0.1.0%20%3C0.2.0 -1 (connected: true, keepalive socket: true)
headers: {}
[urllib:warn] [Sun Mar 19 2017 20:29:27 GMT+0800 (中国标准时间)] [worker:896] GET https://registry.npm.taobao.org/wrap-fn/%3E%3D0.1.0%20%3C0.2.0 callback twice!!!
[urllib:warn] [Sun Mar 19 2017 20:29:27 GMT+0800 (中国标准时间)] [worker:896] JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"wrap-fn\",\"version\":\"0.1.5\",\"license\":\"MIT\",\"description\":\"support sync, async, and generator functions\",\"scripts\":{\"test\":\"make test\"},\"keywords\":[\"browser\",\"wrap\",\"generator\"],\"author\":{\"name\":\"Matthew Mueller\",\"email\":\"mattmuelle@gmail.com\"},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/matthewmueller/wrap-fn.git\"},\"dependencies\":{\"co\":\"3.1.0\"},\"devDependencies\":{\"duo\":\"^0.8.2\",\"duo-test\":\"^0.3.2\",\"generator-support\":\"0.0.1\",\"gnode\":\"0.0.8\",\"mocha\":\"*\",\"should\":\"*\"},\"files\":[\"index.js\"" ...skip... " which you can pass arguments to or set the context.\\n\\n```js\\nwrap(fn).call(user, a, b, c, d);\\n```\\n\\n## Test\\n\\n```js\\nnpm install\\nmake test\\n```\\n\\n## License\\n\\n(The MIT License)\\n\\nCopyright (c) 2014 Matthew Mueller &lt;mattmuelle@gmail.com&gt;\\n\\nPermission is hereby granted, free of charge, to any person obtaining\\na copy of this software and associated documentation files (the\\n'Software'), to deal in the Software without restriction, including\\nwithout limitation the rights to use, copy, modify, ")
stack: JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"wrap-fn\",\"version\":\"0.1.5\",\"license\":\"MIT\",\"description\":\"support sync, async, and generator functions\",\"scripts\":{\"test\":\"make test\"},\"keywords\":[\"browser\",\"wrap\",\"generator\"],\"author\":{\"name\":\"Matthew Mueller\",\"email\":\"mattmuelle@gmail.com\"},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/matthewmueller/wrap-fn.git\"},\"dependencies\":{\"co\":\"3.1.0\"},\"devDependencies\":{\"duo\":\"^0.8.2\",\"duo-test\":\"^0.3.2\",\"generator-support\":\"0.0.1\",\"gnode\":\"0.0.8\",\"mocha\":\"*\",\"should\":\"*\"},\"files\":[\"index.js\"" ...skip... " which you can pass arguments to or set the context.\\n\\n```js\\nwrap(fn).call(user, a, b, c, d);\\n```\\n\\n## Test\\n\\n```js\\nnpm install\\nmake test\\n```\\n\\n## License\\n\\n(The MIT License)\\n\\nCopyright (c) 2014 Matthew Mueller &lt;mattmuelle@gmail.com&gt;\\n\\nPermission is hereby granted, free of charge, to any person obtaining\\na copy of this software and associated documentation files (the\\n'Software'), to deal in the Software without restriction, including\\nwithout limitation the rights to use, copy, modify, ")
    at JSON.parse (<anonymous>)
    at parseJSON (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:841:24)
    at C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:648:23
    at decodeContent (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:502:14)
    at IncomingMessage.<anonymous> (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:629:7)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
[npminstall:get] retry GET https://registry.npm.taobao.org/minimist/0.0.8 after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://registry.npm.taobao.org/minimist/0.0.8 -1 (connected: true, keepalive socket: true)
headers: {}
[urllib:warn] [Sun Mar 19 2017 20:29:28 GMT+0800 (中国标准时间)] [worker:896] GET https://registry.npm.taobao.org/minimist/0.0.8 callback twice!!!
[urllib:warn] [Sun Mar 19 2017 20:29:28 GMT+0800 (中国标准时间)] [worker:896] JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"minimist\",\"version\":\"0.0.8\",\"description\":\"parse argument options\",\"main\":\"index.js\",\"devDependencies\":{\"tape\":\"~1.0.4\",\"tap\":\"~0.4.0\"},\"scripts\":{\"test\":\"tap test/*.js\"},\"testling\":{\"files\":\"test/*.js\",\"browsers\":[\"ie/6..latest\",\"ff/5\",\"firefox/latest\",\"chrome/10\",\"chrome/latest\",\"safari/5.1\",\"safari/latest\",\"opera/12\"]},\"repository\":{\"type\":\"git\",\"url\":\"git://github.com/substack/minimist.git\"},\"homepage\":\"https://github.com/substack/minimist\",\"keywords\":[\"argv\",\"getopt\",\"parser\",\"optimist\"],\"auth" ...skip... "-looking arguments will be returned as numbers unless `opts.string` or\\n`opts.boolean` is set for that argument name.\\n\\nAny arguments after `'--'` will not be parsed and will end up in `argv._`.\\n\\noptions can be:\\n\\n* `opts.string` - a string or array of strings argument names to always treat as\\nstrings\\n* `opts.boolean` - a string or array of strings to always treat as booleans\\n* `opts.alias` - an object mapping string names to strings or arrays of string\\nargument names to use as aliases\\n* `opts.defa")
stack: JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"name\":\"minimist\",\"version\":\"0.0.8\",\"description\":\"parse argument options\",\"main\":\"index.js\",\"devDependencies\":{\"tape\":\"~1.0.4\",\"tap\":\"~0.4.0\"},\"scripts\":{\"test\":\"tap test/*.js\"},\"testling\":{\"files\":\"test/*.js\",\"browsers\":[\"ie/6..latest\",\"ff/5\",\"firefox/latest\",\"chrome/10\",\"chrome/latest\",\"safari/5.1\",\"safari/latest\",\"opera/12\"]},\"repository\":{\"type\":\"git\",\"url\":\"git://github.com/substack/minimist.git\"},\"homepage\":\"https://github.com/substack/minimist\",\"keywords\":[\"argv\",\"getopt\",\"parser\",\"optimist\"],\"auth" ...skip... "-looking arguments will be returned as numbers unless `opts.string` or\\n`opts.boolean` is set for that argument name.\\n\\nAny arguments after `'--'` will not be parsed and will end up in `argv._`.\\n\\noptions can be:\\n\\n* `opts.string` - a string or array of strings argument names to always treat as\\nstrings\\n* `opts.boolean` - a string or array of strings to always treat as booleans\\n* `opts.alias` - an object mapping string names to strings or arrays of string\\nargument names to use as aliases\\n* `opts.defa")
    at JSON.parse (<anonymous>)
    at parseJSON (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:841:24)
    at C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:648:23
    at decodeContent (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:502:14)
    at IncomingMessage.<anonymous> (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:629:7)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
[minimatch@2.0.10](C:\Users\立\AppData\Roaming\npm\node_modules\.polymer-cli_npminstall\node_modules\.4.3.5@glob\node_modules\minimatch) deprecate: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[npminstall:get] retry GET https://registry.npm.taobao.org/ini/%3E%3D1.3.0%20%3C1.4.0 after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://registry.npm.taobao.org/ini/%3E%3D1.3.0%20%3C1.4.0 -1 (connected: true, keepalive socket: true)
headers: {}
[urllib:warn] [Sun Mar 19 2017 20:29:29 GMT+0800 (中国标准时间)] [worker:896] GET https://registry.npm.taobao.org/ini/%3E%3D1.3.0%20%3C1.4.0 callback twice!!!
[urllib:warn] [Sun Mar 19 2017 20:29:29 GMT+0800 (中国标准时间)] [worker:896] JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"author\":{\"name\":\"Isaac Z. Schlueter\",\"email\":\"i@izs.me\",\"url\":\"http://blog.izs.me/\"},\"name\":\"ini\",\"description\":\"An ini encoder/decoder for node\",\"version\":\"1.3.4\",\"repository\":{\"type\":\"git\",\"url\":\"git://github.com/isaacs/ini.git\"},\"main\":\"ini.js\",\"scripts\":{\"test\":\"tap test/*.js\"},\"engines\":{\"node\":\"*\"},\"dependencies\":{},\"devDependencies\":{\"tap\":\"^1.2.0\"},\"license\":\"ISC\",\"files\":[\"ini.js\"],\"gitHead\":\"4a3001abc4c608e51add9f1d2b2cadf02b8e6dea\",\"bugs\":{\"url\":\"https://github.com/isaacs/ini/issues\"},\"homepage" ...skip... "eVersion\":\"2.0.1\",\"_npmUser\":{\"name\":\"isaacs\",\"email\":\"isaacs@npmjs.com\"},\"dist\":{\"shasum\":\"0537cb79daf59b59a1a517dff706c86ec039162e\",\"size\":3834,\"noattachment\":false,\"tarball\":\"http://registry.npm.taobao.org/ini/download/ini-1.3.4.tgz\"},\"maintainers\":[{\"name\":\"isaacs\",\"email\":\"i@izs.me\"}],\"directories\":{},\"publish_time\":1433609223941,\"_cnpm_publish_time\":1433609223941,\"readme\":\"An ini format parser and serializer for node.\\n\\nSections are treated as nested objects.  Items before the first\\nheading are save")
stack: JSONResponseFormatError: Unexpected end of JSON input (data json format: "{\"author\":{\"name\":\"Isaac Z. Schlueter\",\"email\":\"i@izs.me\",\"url\":\"http://blog.izs.me/\"},\"name\":\"ini\",\"description\":\"An ini encoder/decoder for node\",\"version\":\"1.3.4\",\"repository\":{\"type\":\"git\",\"url\":\"git://github.com/isaacs/ini.git\"},\"main\":\"ini.js\",\"scripts\":{\"test\":\"tap test/*.js\"},\"engines\":{\"node\":\"*\"},\"dependencies\":{},\"devDependencies\":{\"tap\":\"^1.2.0\"},\"license\":\"ISC\",\"files\":[\"ini.js\"],\"gitHead\":\"4a3001abc4c608e51add9f1d2b2cadf02b8e6dea\",\"bugs\":{\"url\":\"https://github.com/isaacs/ini/issues\"},\"homepage" ...skip... "eVersion\":\"2.0.1\",\"_npmUser\":{\"name\":\"isaacs\",\"email\":\"isaacs@npmjs.com\"},\"dist\":{\"shasum\":\"0537cb79daf59b59a1a517dff706c86ec039162e\",\"size\":3834,\"noattachment\":false,\"tarball\":\"http://registry.npm.taobao.org/ini/download/ini-1.3.4.tgz\"},\"maintainers\":[{\"name\":\"isaacs\",\"email\":\"i@izs.me\"}],\"directories\":{},\"publish_time\":1433609223941,\"_cnpm_publish_time\":1433609223941,\"readme\":\"An ini format parser and serializer for node.\\n\\nSections are treated as nested objects.  Items before the first\\nheading are save")
    at JSON.parse (<anonymous>)
    at parseJSON (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:841:24)
    at C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:648:23
    at decodeContent (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:502:14)
    at IncomingMessage.<anonymous> (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:629:7)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
ResponseTimeoutError: Response timeout for 60000ms, GET https://registry.npm.taobao.org/ajv/%3E%3D4.9.1%20%3C5.0.0 200 (connected: true, keepalive socket: true)
headers: {"date":"Sun, 19 Mar 2017 12:28:33 GMT","content-type":"application/json; charset=utf-8","content-length":"70679","connection":"keep-alive","x-current-requests":"1","etag":"\"11417-SMEt2hUC+bjDPV6UXDHRPA\"","x-readtime":"53"}
    at Timeout._onTimeout (C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\urllib\lib\urllib.js:702:15)
    at ontimeout (timers.js:365:14)
    at tryOnTimeout (timers.js:237:5)
    at Timer.listOnTimeout (timers.js:207:5)
npminstall version: 2.2.2
npminstall args: D:\soft\node\node.exe C:\Users\立\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --china --userconfig=C:\Users\立\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org -g polymer-cli

立@yl-pc MINGW64 /d/me/polymer-first-elements
$ polymer
bash: polymer: command not found

立@yl-pc MINGW64 /d/me/polymer-first-elements
$ polymer init
bash: polymer: command not found
rictic commented 7 years ago

It looks like you're seeing a combination of timeouts and invalid JSON contents from https://registry.npm.taobao.org

I'd recommend filing a bug at https://github.com/cnpm/cnpm/issues as this is out of our control.