7 http fetch GET 200 https://registry.npmjs.org/mongoose 66519ms 8 silly fetchPackageMetaData error for mongoose@4.11.13 Unexpected end of input at 1:39920 8 silly fetchPackageMetaData “lib”:"./lib/mongoose"},“dist”:{“shasum”:“cb475442ef49a37d8158eccd182 8 silly fetchPackageMetaData ^ 9 verbose stack SyntaxError: Unexpected end of input at 1:39920 9 verbose stack “lib”:”./lib/mongoose"},“dist”:{“shasum”:“cb475442ef49a37d8158eccd182 9 verbose stack ^ 9 verbose stack at Object.parseJSON (I:\nodejs\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) 9 verbose stack at parse (I:\nodejs\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) 9 verbose stack at consumeBody.call.then.buffer (I:\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\body.js:96:50) 9 verbose stack at <anonymous> 9 verbose stack at process._tickCallback (internal/process/next_tick.js:169:7) 10 verbose cwd I:\dir\gellary 11 verbose Windows_NT 10.0.15063 12 verbose argv “I:\nodejs\node.exe” “I:\nodejs\node_modules\npm\bin\npm-cli.js” “install” “mongoose” “–save" 13 verbose node v8.1.2 14 verbose npm v5.0.3 15 error Unexpected end of input at 1:39920 15 error “lib”:”./lib/mongoose”},“dist”:{“shasum”:"cb475442ef49a37d8158eccd182
多谢解答,最后使用了国内镜像来解决