npm install vue-i18n –save –verbose
npm verbose cli D:\nodejs\node.exe D:\nodejs\node_modules\npm\bin\npm-cli.js
npm info using npm@10.7.0
npm info using node@v20.14.0
npm verbose title npm install vue-i18n
npm verbose argv “install” “vue-i18n” “–save” “–loglevel” “verbose”
npm verbose logfile logs-max:10 dir:C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-10-16T06_15_31_368Z-
npm verbose logfile C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-10-16T06_15_31_368Z-debug-0.log
npm http fetch GET 200 https://npmmirror.com/vue-i18n 243ms (cache miss)
npm verbose type invalid-json
npm verbose stack FetchError: invalid json response body at https://npmmirror.com/vue-i18n reason: Unexpected token ‘<‘, “<!DOCTYPE “… is not valid JSON
npm verbose stack at Response.json (D:\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\body.js:79:13)
npm verbose stack at async RegistryFetcher.packument (D:\nodejs\node_modules\npm\node_modules\pacote\lib\registry.js:98:25)
npm verbose stack at async RegistryFetcher.manifest (D:\nodejs\node_modules\npm\node_modules\pacote\lib\registry.js:129:23)
npm verbose stack at async #nodeFromEdge (D:\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1055:19)
npm verbose stack at async #buildDepStep (D:\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:923:11)
npm verbose stack at async Arborist.buildIdealTree (D:\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:203:7)
npm verbose stack at async Promise.all (index 1)
npm verbose stack at async Arborist.reify (D:\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:131:5)
npm verbose stack at async Install.exec (D:\nodejs\node_modules\npm\lib\commands\install.js:150:5)
npm verbose stack at async module.exports (D:\nodejs\node_modules\npm\lib\cli\entry.js:74:5)
npm verbose cwd E:\wwwroot\0-hbuilder\fyx_uniapp
npm verbose Windows_NT 10.0.19045
npm verbose node v20.14.0
npm verbose npm v10.7.0
npm error code FETCH_ERROR
npm error errno FETCH_ERROR
npm error invalid json response body at https://npmmirror.com/vue-i18n reason: Unexpected token ‘<‘, “<!DOCTYPE “… is not valid JSON
npm verbose exit 1
npm verbose code 1

npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-10-16T06_15_31_368Z-debug-0.log

1、更改 npm 源

npm config set registry https://registry.npmjs.org/

npm config set registry https://registry.npm.taobao.org

2、清除 npm 缓存

npm cache clean –force

作者 admin

百度广告效果展示