gotwarlost / istanbul

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k stars 786 forks source link

npm install istanbul v1.1.0-alpha.1 error #828

Open jiangli373 opened 7 years ago

jiangli373 commented 7 years ago

My enviroment node v8.1.3 npm 5.0.3 os Mac 10.12.3

Because i want to test ES6 async/await https://github.com/gotwarlost/istanbul/issues/733#issuecomment-282227197

when i use istanbul global

 npm install istanbul@v1.1.0-alpha.1

output


npm install istanbul@v1.1.0-alpha.1 -g
npm verb cli [ '/Users/liangni/.nvm/versions/node/v8.1.3/bin/node',
npm verb cli   '/Users/liangni/.nvm/versions/node/v8.1.3/bin/npm',
npm verb cli   'install',
npm verb cli   'istanbul@v1.1.0-alpha.1',
npm verb cli   '-g',
npm verb cli   '--dd' ]
npm info using npm@5.0.3
npm info using node@v8.1.3
npm verb npm-session 50ca3373d5f4551d
npm http fetch GET 304 https://registry.npm.taobao.org/istanbul 282ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/istanbul-api 104ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/js-yaml 174ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/async 177ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/wordwrap 206ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/nopt 212ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/mkdirp 242ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/which 241ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/abbrev 3372ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/fileset 50ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/istanbul-lib-report 94ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/istanbul-lib-coverage 97ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/istanbul-lib-source-maps 98ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/istanbul-lib-hook 100ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/istanbul-reports 99ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/istanbul-lib-instrument 108ms (from cache)
npm http fetch GET 304 https://registry.npm.taobao.org/once 117ms (from cache)
npm verb stack SyntaxError: Unexpected end of input at 1:5371
npm verb stack .0","eslint-plugin-promise":"^3.0.0","eslint-plugin-standard":"^2.0.1
npm verb stack                                                                      ^
npm verb stack     at Object.parseJSON (/Users/liangni/.nvm/versions/node/v8.1.3/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/node_modules/json-parse-helpfulerror/node_modules/jju/lib/parse.js:745:13)
npm verb stack     at parse (/Users/liangni/.nvm/versions/node/v8.1.3/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/node_modules/json-parse-helpfulerror/index.js:10:13)
npm verb stack     at consumeBody.call.then.buffer (/Users/liangni/.nvm/versions/node/v8.1.3/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/src/body.js:96:50)
npm verb stack     at <anonymous>
npm verb stack     at process._tickCallback (internal/process/next_tick.js:169:7)
npm verb cwd /Users/liangni
npm verb Darwin 16.4.0
npm verb argv "/Users/liangni/.nvm/versions/node/v8.1.3/bin/node" "/Users/liangni/.nvm/versions/node/v8.1.3/bin/npm" "install" "istanbul@v1.1.0-alpha.1" "-g" "--dd"
npm verb node v8.1.3
npm verb npm  v5.0.3
npm ERR! Unexpected end of input at 1:5371
npm ERR! .0","eslint-plugin-promise":"^3.0.0","eslint-plugin-standard":"^2.0.1
npm ERR!                                                                      ^
npm verb exit [ 1, true ]

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/liangni/.npm/_logs/2017-07-28T08_29_10_980Z-debug.log

``