npm安装vee-validate失败, 啥原因了?
0 verbose cli [0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli 'C:\\Users\\yunge\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli 'i',
0 verbose cli 'vee-validate@2.2.15'
0 verbose cli ]
1 info using npm@7.5.4
2 info using node@v12.16.2
3 timing config:load:defaults Completed in 1ms
4 timing config:load:file:C:\Users\yunge\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 2ms
5 timing config:load:builtin Completed in 2ms
6 timing config:load:cli Completed in 1ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:D:\湖南\app-h5\hnnx_mbank\.npmrc Completed in 1ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:C:\Users\yunge\.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:C:\Users\yunge\AppData\Roaming\npm\etc\npmrc Completed in 1ms
13 timing config:load:global Completed in 1ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 1ms
16 timing config:load:setUserAgent Completed in 1ms
17 timing config:load:setEnvs Completed in 0ms
18 timing config:load Completed in 9ms
19 verbose npm-session af20cb32a64645c0
20 timing npm:load Completed in 23ms
21 timing arborist:ctor Completed in 0ms
22 timing arborist:ctor Completed in 0ms
23 timing idealTree:init Completed in 4979ms
24 timing idealTree:userRequests Completed in 3ms
25 silly idealTree buildDeps
26 silly fetch manifest vee-validate@2.2.15
27 http fetch GET 304 https://registry.npmmirror.com/vee-validate 452ms (from cache)
28 silly placeDep ROOT @ali/kylin-build@0.1.49-open01 REPLACE for: want: ./kylin_modules/_ali_kylin-build
29 silly placeDep ROOT @ali/kylin-cli@0.1.8-open REPLACE for: want: ./kylin_modules/_ali_kylin-cli
30 silly placeDep ROOT @ali/kylin-framework@0.1.10-open REPLACE for: want: ./kylin_modules/_ali_kylin-framework
31 silly placeDep ROOT @ali/kylin-plugin-env@0.1.0 REPLACE for: want: ./kylin_modules/_ali_kylin-plugin-env
32 silly placeDep ROOT @ali/kylin-plugin-resource@0.1.0 REPLACE for: want: ./kylin_modules/_ali_kylin-plugin-resource
33 silly placeDep ROOT @ali/kylin-plugin-vue@0.8.0 REPLACE for: want: ./kylin_modules/_ali_kylin-plugin-vue
34 silly placeDep ROOT @alipay/alipayjsapi@3.1.0 REPLACE for: want: ./kylin_modules/_alipay_alipayjsapi
35 silly placeDep ROOT @alipay/antui-vue@0.4.6-open03 REPLACE for: want: ./kylin_modules/_alipay_antui-vue
36 silly placeDep ROOT vee-validate@2.2.15 OK for: want: 2.2.15
37 silly placeDep ROOT webpack-px2rem-loader@0.0.4 REPLACE for: want: file:./library/webpack-px2rem-loader
38 timing idealTree:#root Completed in 1792ms
39 silly fetch manifest chalk@^1.1.3
40 http fetch GET 200 https://registry.npmmirror.com/chalk 63ms
41 silly fetch manifest commander@~2.9.0
42 http fetch GET 200 https://registry.npmmirror.com/commander 81ms
43 silly fetch manifest cross-spawn@^5.1.0
44 http fetch GET 200 https://registry.npmmirror.com/cross-spawn 52ms
45 silly fetch manifest css-loader@^0.25.0
46 http fetch GET 304 https://registry.npmmirror.com/css-loader 61ms (from cache)
47 silly fetch manifest http-proxy-middleware@^0.17.2
48 http fetch GET 304 https://registry.npmmirror.com/http-proxy-middleware 91ms (from cache)
49 silly fetch manifest postcss@^5.0.19
50 http fetch GET 304 https://registry.npmmirror.com/postcss 72ms (from cache)
51 silly fetch manifest resolve@^1.3.3
52 http fetch GET 200 https://registry.npmmirror.com/resolve 54ms
53 silly fetch manifest semver@^5.3.0
54 http fetch GET 200 https://registry.npmmirror.com/semver 50ms
55 silly fetch manifest vue-style-loader@^1.0.0
56 http fetch GET 304 https://registry.npmmirror.com/vue-style-loader 86ms (from cache)
57 silly fetch manifest @ali/kylin-test@^0.0.5
58 http fetch GET 404 https://registry.npmmirror.com/@ali%2fkylin-test 111ms
59 http fetch GET 404 https://registry.npmmirror.com/@ali%2fkylin-test 108ms
60 silly fetch manifest alicov@^2.4.0
61 http fetch GET 304 https://registry.npmmirror.com/alicov 115ms (from cache)
62 silly fetch manifest babel-cli@^6.7.5
63 http fetch GET 304 https://registry.npmmirror.com/babel-cli 84ms (from cache)
64 silly fetch manifest babel-istanbul@^0.7.0
65 http fetch GET 304 https://registry.npmmirror.com/babel-istanbul 98ms (from cache)
66 silly fetch manifest babel-core@^6.7.4
67 http fetch GET 304 https://registry.npmmirror.com/babel-core 86ms (from cache)
68 silly fetch manifest babel-plugin-add-module-exports@^0.2.1
69 http fetch GET 304 https://registry.npmmirror.com/babel-plugin-add-module-exports 81ms (from cache)
70 silly fetch manifest babel-preset-es2015-node4@^2.1.1
71 http fetch GET 304 https://registry.npmmirror.com/babel-preset-es2015-node4 82ms (from cache)
72 silly fetch manifest expect@^1.16.0
73 http fetch GET 304 https://registry.npmmirror.com/expect 82ms (from cache)
74 silly fetch manifest mocha@^2.4.5
75 http fetch GET 304 https://registry.npmmirror.com/mocha 80ms (from cache)
76 timing idealTree Completed in 8381ms
77 timing command:install Completed in 8389ms
78 verbose stack TypeError: Cannot read property 'name' of null
78 verbose stack at Node.matches (C:\Users\yunge\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:903:14)
78 verbose stack at Link.matches (C:\Users\yunge\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:908:41)
78 verbose stack at Arborist.[canPlaceDep] (C:\Users\yunge\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1463:15)
78 verbose stack at Arborist.[placeDep] (C:\Users\yunge\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1199:36)
78 verbose stack at C:\Users\yunge\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:847:46
78 verbose stack at Array.map (<anonymous>)
78 verbose stack at Arborist.[buildDepStep] (C:\Users\yunge\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:847:8)
78 verbose stack at async Arborist.buildIdealTree (C:\Users\yunge\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:209:7)
78 verbose stack at async Promise.all (index 1)
78 verbose stack at async Arborist.reify (C:\Users\yunge\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:127:5)
79 verbose cwd D:\湖南\app-h5\hnnx_mbank
80 verbose Windows_NT 10.0.19043
81 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\yunge\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "i" "vee-validate@2.2.15"
82 verbose node v12.16.2
83 verbose npm v7.5.4
84 error Cannot read property 'name' of null
85 verbose exit 1
回答:
以下几点试过了吗?
1:删除了node_modules和package-lock.json后再试试?
2:package.json里面把 vee-validate 删了重新装,确定是不是就是vee-validate的问题?
3:如果是vee-validate的问题,换个版本呢?
4:如果不是是vee-validate的问题,有没有装nvm,换个node的版本,同时也换个npm的版本再试试。
有几个类似的问题可以参考下,但不是完全一样的:
1:链接
2:链接
以上是 npm安装vee-validate失败, 啥原因了? 的全部内容, 来源链接: utcz.com/p/937189.html