npm install antd 失败,怀疑是rc-input-number问题

查看:480
本文介绍了npm install antd 失败,怀疑是rc-input-number问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

npm install antd 失败,怀疑是rc-input-number问题.

错误log

npm ERR! Unexpected end of input at 1:10970
npm ERR! ":"~0.1.0","sinon":"^2.1.0"},"directories":{},"dist":{"shasum":"ea3bc

完整log

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'antd' ]
2 info using npm@5.0.3
3 info using node@v8.1.0
4 verbose npm-session 83b34d9ec4644aa3
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npm.taobao.org/antd 355ms (from cache)
8 silly pacote tag manifest for antd@latest fetched in 391ms
9 silly install loadIdealTree
10 silly install cloneCurrentTreeToIdealTree
11 silly install loadShrinkwrap
12 silly install loadAllDepsIntoIdealTree
13 silly resolveWithNewModule antd@2.12.8 checking installable status
14 http fetch GET 304 https://registry.npm.taobao.org/array-tree-filter 90ms (from cache)
15 silly pacote range manifest for array-tree-filter@~1.0.0 fetched in 91ms
16 silly resolveWithNewModule array-tree-filter@1.0.1 checking installable status
17 http fetch GET 304 https://registry.npm.taobao.org/dom-closest 145ms (from cache)
18 silly pacote range manifest for dom-closest@^0.2.0 fetched in 148ms
19 silly resolveWithNewModule dom-closest@0.2.0 checking installable status
20 http fetch GET 304 https://registry.npm.taobao.org/css-animation 160ms (from cache)
21 http fetch GET 304 https://registry.npm.taobao.org/omit.js 159ms (from cache)
22 silly pacote range manifest for css-animation@^1.2.5 fetched in 162ms
23 silly resolveWithNewModule css-animation@1.4.1 checking installable status
24 silly pacote range manifest for omit.js@^1.0.0 fetched in 163ms
25 silly resolveWithNewModule omit.js@1.0.0 checking installable status
26 http fetch GET 304 https://registry.npm.taobao.org/moment 184ms (from cache)
27 http fetch GET 304 https://registry.npm.taobao.org/create-react-class 192ms (from cache)
28 silly pacote range manifest for moment@^2.18.1 fetched in 190ms
29 silly resolveWithNewModule moment@2.18.1 checking installable status
30 silly pacote range manifest for create-react-class@^15.6.0 fetched in 196ms
31 silly resolveWithNewModule create-react-class@15.6.0 checking installable status
32 http fetch GET 304 https://registry.npm.taobao.org/lodash.debounce 199ms (from cache)
33 http fetch GET 304 https://registry.npm.taobao.org/classnames 203ms (from cache)
34 http fetch GET 304 https://registry.npm.taobao.org/prop-types 200ms (from cache)
35 silly pacote range manifest for lodash.debounce@^4.0.8 fetched in 202ms
36 silly resolveWithNewModule lodash.debounce@4.0.8 checking installable status
37 silly pacote range manifest for classnames@~2.2.0 fetched in 207ms
38 silly resolveWithNewModule classnames@2.2.5 checking installable status
39 http fetch GET 304 https://registry.npm.taobao.org/babel-runtime 209ms (from cache)
40 silly pacote range manifest for prop-types@^15.5.7 fetched in 206ms
41 silly resolveWithNewModule prop-types@15.5.10 checking installable status
42 http fetch GET 304 https://registry.npm.taobao.org/rc-animate 120ms (from cache)
43 silly pacote range manifest for babel-runtime@6.x fetched in 216ms
44 silly resolveWithNewModule babel-runtime@6.26.0 checking installable status
45 silly pacote range manifest for rc-animate@^2.3.6 fetched in 126ms
46 silly resolveWithNewModule rc-animate@2.4.1 checking installable status
47 http fetch GET 304 https://registry.npm.taobao.org/rc-calendar 80ms (from cache)
48 silly pacote range manifest for rc-calendar@~9.0.0 fetched in 82ms
49 silly resolveWithNewModule rc-calendar@9.0.1 checking installable status
50 http fetch GET 304 https://registry.npm.taobao.org/rc-checkbox 69ms (from cache)
51 silly pacote range manifest for rc-checkbox@~2.0.3 fetched in 73ms
52 silly resolveWithNewModule rc-checkbox@2.0.3 checking installable status
53 http fetch GET 304 https://registry.npm.taobao.org/rc-cascader 83ms (from cache)
54 silly pacote range manifest for rc-cascader@~0.11.3 fetched in 85ms
55 silly resolveWithNewModule rc-cascader@0.11.4 checking installable status
56 http fetch GET 304 https://registry.npm.taobao.org/rc-collapse 65ms (from cache)
57 silly pacote range manifest for rc-collapse@~1.7.5 fetched in 66ms
58 silly resolveWithNewModule rc-collapse@1.7.6 checking installable status
59 http fetch GET 304 https://registry.npm.taobao.org/rc-dialog 69ms (from cache)
60 silly pacote range manifest for rc-dialog@~6.5.10 fetched in 71ms
61 silly resolveWithNewModule rc-dialog@6.5.11 checking installable status
62 http fetch GET 304 https://registry.npm.taobao.org/rc-dropdown 82ms (from cache)
63 silly pacote range manifest for rc-dropdown@~1.5.0 fetched in 83ms
64 silly resolveWithNewModule rc-dropdown@1.5.0 checking installable status
65 http fetch GET 304 https://registry.npm.taobao.org/rc-notification 57ms (from cache)
66 http fetch GET 304 https://registry.npm.taobao.org/rc-menu 78ms (from cache)
67 silly pacote range manifest for rc-notification@~2.0.0 fetched in 64ms
68 silly resolveWithNewModule rc-notification@2.0.5 checking installable status
69 silly pacote range manifest for rc-menu@~5.0.10 fetched in 97ms
70 silly resolveWithNewModule rc-menu@5.0.10 checking installable status
71 http fetch GET 304 https://registry.npm.taobao.org/rc-pagination 84ms (from cache)
72 silly pacote range manifest for rc-pagination@~1.11.0 fetched in 93ms
73 silly resolveWithNewModule rc-pagination@1.11.0 checking installable status
74 http fetch GET 304 https://registry.npm.taobao.org/rc-form 128ms (from cache)
75 silly pacote range manifest for rc-form@~1.4.0 fetched in 129ms
76 silly resolveWithNewModule rc-form@1.4.7 checking installable status
77 http fetch GET 304 https://registry.npm.taobao.org/rc-progress 91ms (from cache)
78 http fetch GET 304 https://registry.npm.taobao.org/rc-input-number 128ms (from cache)
79 silly fetchPackageMetaData error for rc-input-number@~3.6.0 Unexpected end of input at 1:10970
79 silly fetchPackageMetaData ":"~0.1.0","sinon":"^2.1.0"},"directories":{},"dist":{"shasum":"ea3bc
79 silly fetchPackageMetaData                                                                      ^
80 silly pacote range manifest for rc-progress@~2.2.2 fetched in 101ms
81 silly resolveWithNewModule rc-progress@2.2.2 checking installable status
82 http fetch GET 304 https://registry.npm.taobao.org/rc-editor-mention 155ms (from cache)
83 silly pacote range manifest for rc-editor-mention@~0.6.12 fetched in 159ms
84 silly resolveWithNewModule rc-editor-mention@0.6.12 checking installable status
85 http fetch GET 304 https://registry.npm.taobao.org/rc-slider 84ms (from cache)
86 http fetch GET 304 https://registry.npm.taobao.org/rc-select 111ms (from cache)
87 silly pacote range manifest for rc-slider@~8.2.0 fetched in 92ms
88 silly resolveWithNewModule rc-slider@8.2.0 checking installable status
89 silly pacote range manifest for rc-select@~6.8.6 fetched in 116ms
90 silly resolveWithNewModule rc-select@6.8.10 checking installable status
91 http fetch GET 304 https://registry.npm.taobao.org/rc-switch 72ms (from cache)
92 http fetch GET 304 https://registry.npm.taobao.org/rc-steps 85ms (from cache)
93 silly pacote range manifest for rc-steps@~2.5.1 fetched in 88ms
94 silly resolveWithNewModule rc-steps@2.5.1 checking installable status
95 silly pacote range manifest for rc-switch@~1.5.1 fetched in 76ms
96 silly resolveWithNewModule rc-switch@1.5.2 checking installable status
97 http fetch GET 304 https://registry.npm.taobao.org/rc-table 69ms (from cache)
98 http fetch GET 304 https://registry.npm.taobao.org/rc-tabs 67ms (from cache)
99 silly pacote range manifest for rc-table@~5.6.1 fetched in 72ms
100 silly resolveWithNewModule rc-table@5.6.4 checking installable status
101 silly pacote range manifest for rc-tabs@~9.1.2 fetched in 69ms
102 silly resolveWithNewModule rc-tabs@9.1.4 checking installable status
103 http fetch GET 304 https://registry.npm.taobao.org/rc-time-picker 77ms (from cache)
104 silly pacote range manifest for rc-time-picker@~2.4.1 fetched in 92ms
105 silly resolveWithNewModule rc-time-picker@2.4.1 checking installable status
106 http fetch GET 304 https://registry.npm.taobao.org/rc-upload 67ms (from cache)
107 silly pacote range manifest for rc-upload@~2.4.0 fetched in 70ms
108 silly resolveWithNewModule rc-upload@2.4.0 checking installable status
109 http fetch GET 304 https://registry.npm.taobao.org/rc-util 66ms (from cache)
110 silly pacote range manifest for rc-util@^4.0.4 fetched in 68ms
111 silly resolveWithNewModule rc-util@4.0.4 checking installable status
112 http fetch GET 304 https://registry.npm.taobao.org/rc-tree-select 84ms (from cache)
113 silly pacote range manifest for rc-tree-select@~1.10.2 fetched in 87ms
114 silly resolveWithNewModule rc-tree-select@1.10.6 checking installable status
115 http fetch GET 304 https://registry.npm.taobao.org/shallowequal 61ms (from cache)
116 silly pacote range manifest for shallowequal@^1.0.1 fetched in 62ms
117 silly resolveWithNewModule shallowequal@1.0.2 checking installable status
118 http fetch GET 304 https://registry.npm.taobao.org/rc-tooltip 119ms (from cache)
119 silly pacote range manifest for rc-tooltip@~3.4.6 fetched in 120ms
120 silly resolveWithNewModule rc-tooltip@3.4.8 checking installable status
121 http fetch GET 304 https://registry.npm.taobao.org/react-slick 68ms (from cache)
122 silly pacote range manifest for react-slick@~0.14.2 fetched in 76ms
123 silly resolveWithNewModule react-slick@0.14.11 checking installable status
124 http fetch GET 304 https://registry.npm.taobao.org/rc-tree 126ms (from cache)
125 silly pacote range manifest for rc-tree@~1.7.0 fetched in 130ms
126 silly resolveWithNewModule rc-tree@1.7.3 checking installable status
127 http fetch GET 304 https://registry.npm.taobao.org/warning 64ms (from cache)
128 silly pacote range manifest for warning@~3.0.0 fetched in 65ms
129 silly resolveWithNewModule warning@3.0.0 checking installable status
130 http fetch GET 304 https://registry.npm.taobao.org/react-lazy-load 124ms (from cache)
131 silly pacote range manifest for react-lazy-load@^3.0.10 fetched in 125ms
132 silly resolveWithNewModule react-lazy-load@3.0.12 checking installable status
133 http fetch GET 304 https://registry.npm.taobao.org/rc-rate 267ms (from cache)
134 silly pacote range manifest for rc-rate@~2.1.1 fetched in 269ms
135 silly resolveWithNewModule rc-rate@2.1.1 checking installable status
136 verbose stack SyntaxError: Unexpected end of input at 1:10970
136 verbose stack ":"~0.1.0","sinon":"^2.1.0"},"directories":{},"dist":{"shasum":"ea3bc
136 verbose stack                                                                      ^
136 verbose stack     at Object.parseJSON (C:\Program Files\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)
136 verbose stack     at parse (C:\Program Files\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)
136 verbose stack     at consumeBody.call.then.buffer (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\body.js:96:50)
136 verbose stack     at <anonymous>
136 verbose stack     at process._tickCallback (internal/process/next_tick.js:169:7)
137 verbose cwd f:\node\github\yue
138 verbose Windows_NT 10.0.15063
139 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "antd"
140 verbose node v8.1.0
141 verbose npm  v5.0.3
142 error Unexpected end of input at 1:10970
142 error ":"~0.1.0","sinon":"^2.1.0"},"directories":{},"dist":{"shasum":"ea3bc
142 error                                                                      ^
143 verbose exit [ 1, true ]

解决方案

换cnpm
确认你安装了淘宝的cnpm 源没。

这篇关于npm install antd 失败,怀疑是rc-input-number问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆