uni-app(vue2)编译器核心插件一直下载不了,处于一直加载中

uni-app(vue2)编译器核心插件一直下载不了,处于一直加载中

产品分类

uniapp/小程序/微信

PC开发环境操作系统

Windows

PC开发环境操作系统版本号

22631.3447

HBuilderX类型

正式

HBuilderX版本号

4.08

第三方开发者工具版本号

暂时没用

基础库版本号

暂时没用

项目创建方式

HBuilderX

示例代码

2024-04-19 22:16:22.782 [WARNING:] [PluginHost] [Error: ENOENT: no such file or directory, open 'C:\Users\ASUS\AppData\Roaming\HBuilder X\extensions\uniapp-extension\db.json'] {  
  errno: -4058,  
  code: 'ENOENT',  
  syscall: 'open',  
  path: 'C:\\Users\\ASUS\\AppData\\Roaming\\HBuilder X\\extensions\\uniapp-extension\\db.json'  
}  

2024-04-19 22:16:23.776 [INFO:] PluginInstall setInstallText: "uniapp-cli"  ---  1 :: "正在下载"  
2024-04-19 22:16:24.430 [INFO:] (startdownload  "hbuilderx-language-services" ) get json: "http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/index.json"  
2024-04-19 22:16:24.430 [INFO:] (checkupdate) getjson: "http://update.dcloud.io/hbuilderx/alpha/win32/update/index.json?tmp=80184430"  
2024-04-19 22:16:26.114 [INFO:] Local Mac:  "08:8E:90:F4:D0:3A"  
2024-04-19 22:16:29.166 [INFO:] Upgrade::isFallbackedVersion ?  
2024-04-19 22:16:29.166 [INFO:] Upgrade::isFallbackedVersion return false  
2024-04-19 22:16:29.462 [WARNING:] service server return 1002, try relogin  
2024-04-19 22:16:29.462 [WARNING:] "Cloud server returns error: This service is not available for now."  
2024-04-19 22:16:34.457 [WARNING:] http request  QUrl("http://update.dcloud.io/hbuilderx/alpha/win32/update/index.json?tmp=80184430") : connect to server timeout  
2024-04-19 22:16:44.453 [WARNING:] http request  QUrl("http://update.dcloud.io/hbuilderx/alpha/win32/update/index.json?tmp=80184430") : connect to server timeout  
2024-04-19 22:16:44.453 [WARNING:] http request:  QUrl("http://update.dcloud.io/hbuilderx/alpha/win32/update/index.json?tmp=80184430") , connect to server error, errorCode:  QNetworkReply::NetworkError(OperationCanceledError) , httpCode:  0 , httpReason:  ""  
2024-04-19 22:16:44.458 [WARNING:] Update index file is not valid : version of  is not String  
2024-04-19 22:16:44.458 [INFO:] (checkupdate) updaterequests is empty  
2024-04-19 22:16:44.458 [INFO:] (checkupdate) clear  "E:/Hbuilder4.08/HBuilderX/update/patch"  
2024-04-19 22:16:44.458 [INFO:] (checkupdate) clear  "E:/Hbuilder4.08/HBuilderX/update/patch.tmp"  
2024-04-19 22:16:44.458 [INFO:] (checkupdate) report noupdate  
2024-04-19 22:16:44.458 [INFO:] [Update] No update.  
2024-04-19 22:16:44.463 [INFO:] Upgrade::canFallback::check( "E:/Hbuilder4.08/HBuilderX/update/backup/root/hbuilder.root" ) exits?  
2024-04-19 22:16:44.463 [INFO:] Upgrade::canFallback::check return false  
2024-04-19 22:16:46.925 [WARNING:] http request : read timeout  
2024-04-19 22:16:46.925 [WARNING:] http request  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/index.json?tmp=2588") : connect to server timeout  
2024-04-19 22:16:52.929 [WARNING:] http request : read timeout  
2024-04-19 22:16:52.940 [WARNING:] http request  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/index.json?tmp=2588") : connect to server timeout  
2024-04-19 22:16:52.940 [WARNING:] http request:  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/index.json?tmp=2588") , connect to server error, errorCode:  QNetworkReply::NetworkError(OperationCanceledError) , httpCode:  200 , httpReason:  "OK"  
2024-04-19 22:16:52.943 [WARNING:] get  "http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/index.json"  error:( QNetworkReply::NetworkError(OperationCanceledError) )  
2024-04-19 22:16:52.943 [WARNING:] get  "http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/index.json"  error:( "" )  
2024-04-19 22:16:52.943 [WARNING:] (startdownload  "hbuilderx-language-services" ) failed to get  "http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/index.json"  
2024-04-19 22:16:52.943 [INFO:] (startdownload  "hbuilderx-language-services" ) [try] get  "http://update.dcloud.io/hbuilderx/alpha/win32/plugins/index.json"  
2024-04-19 22:16:59.005 [INFO:] (startdownload  "hbuilderx-language-services" ) get json: "https://update.liuyingyong.cn/hbuilderx/marketplace/plugin.json"  
2024-04-19 22:17:01.884 [INFO:] (startdownload  "hbuilderx-language-services" ) get json: "http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/update/index.json"  
2024-04-19 22:17:11.882 [WARNING:] http request  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/update/index.json?tmp=80221884") : connect to server timeout  
2024-04-19 22:17:16.794 [INFO:] (startdownload  "hbuilderx-language-services" ) downloadnpmmodule  
2024-04-19 22:17:16.794 [INFO:] (startdownload  "hbuilderx-language-services" ) downloadpluginzipfromindex  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "hbuilderx-language-services" ) set state to downloading  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "hbuilderx-language-services" ) make path: "E:/Hbuilder4.08/HBuilderX/update/plugins/"  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "hbuilderx-language-services" ) download extenstiondependencies  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "hbuilderx-language-services" ) get  "npm"  state =  3  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "hbuilderx-language-services" ) download dependency  "npm"  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "hbuilderx-language-services" ) download zip from index  "npm"  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "npm" ) set state to downloading  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "npm" ) make path: "E:/Hbuilder4.08/HBuilderX/update/plugins/"  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "npm" ) download extenstiondependencies  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "npm" ) get  "node"  state =  0  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "npm" ) get  "npm"  state =  1  
2024-04-19 22:17:16.794 [INFO:] Download plugin  "npm"  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "npm" ) ismarket?: false  
2024-04-19 22:17:16.794 [INFO:] (downloadpluginzipfromindex  "npm" ) use  "http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/contents/npm.1.0.2-2023033018.zip"  
2024-04-19 22:20:30.879 [WARNING:] http request : read timeout  
2024-04-19 22:20:30.881 [WARNING:] http request  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/contents/npm.1.0.2-2023033018.zip") : connect to server timeout  
2024-04-19 22:20:30.882 [INFO:] set Range =  "bytes="  
2024-04-19 22:20:38.128 [WARNING:] http request : read timeout  
2024-04-19 22:20:38.129 [WARNING:] http request  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/contents/npm.1.0.2-2023033018.zip") : connect to server timeout  
2024-04-19 22:20:38.129 [WARNING:] http request:  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/contents/npm.1.0.2-2023033018.zip") , connect to server error, errorCode:  QNetworkReply::NetworkError(OperationCanceledError) , httpCode:  206 , httpReason:  "Partial Content"  
2024-04-19 22:20:38.135 [WARNING:] Download plugin  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/contents/npm.1.0.2-2023033018.zip")  faild! , try count:  2  
2024-04-19 22:20:38.139 [INFO:] set Range =  "bytes="  
2024-04-19 22:23:20.047 [WARNING:] http request : read timeout  
2024-04-19 22:23:20.047 [WARNING:] http request  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/contents/npm.1.0.2-2023033018.zip") : connect to server timeout  
2024-04-19 22:23:20.047 [INFO:] set Range =  "bytes="  
2024-04-19 22:23:42.897 [WARNING:] http request : read timeout  
2024-04-19 22:23:42.897 [WARNING:] http request  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/contents/npm.1.0.2-2023033018.zip") : connect to server timeout  
2024-04-19 22:23:42.897 [WARNING:] http request:  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/contents/npm.1.0.2-2023033018.zip") , connect to server error, errorCode:  QNetworkReply::NetworkError(OperationCanceledError) , httpCode:  206 , httpReason:  "Partial Content"  
2024-04-19 22:23:42.897 [WARNING:] Download plugin  QUrl("http://update.dcloud.io/hbuilderx/upgrade_repositories/4.08.2024040127/win32/plugins/contents/npm.1.0.2-2023033018.zip")  faild! , try count:  3  
2024-04-19 22:23:42.912 [INFO:] set Range =  "bytes="  

操作步骤


更多关于uni-app(vue2)编译器核心插件一直下载不了,处于一直加载中的实战教程也可以访问 https://www.itying.com/category-93-b0.html

1 回复

更多关于uni-app(vue2)编译器核心插件一直下载不了,处于一直加载中的实战教程也可以访问 https://www.itying.com/category-93-b0.html


如果你在使用 uni-app(Vue2)时遇到编译器核心插件一直下载不了、处于一直加载中的问题,可能是由于网络问题、缓存问题或配置问题导致的。以下是一些可能的解决方案:


1. 检查网络连接

  • 确保你的网络连接正常,尤其是在国内访问 npm 或 GitHub 资源时,可能会受到网络限制。
  • 可以尝试切换网络(如使用手机热点)或使用 VPN 来改善网络环境。

2. 使用淘宝镜像

uni-app 依赖 npm 包,默认的 npm 源可能较慢,建议切换到淘宝镜像:

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

然后重新运行项目:

npm run dev:mp-weixin

3. 清除 npm 缓存

有时候 npm 缓存可能导致问题,可以尝试清除缓存后重新安装:

npm cache clean --force

4. 删除 node_modules 和重新安装

删除项目中的 node_modules 文件夹和 package-lock.json 文件,然后重新安装依赖:

rm -rf node_modules package-lock.json
npm install

5. 手动安装核心插件

如果自动下载失败,可以尝试手动安装 uni-app 的核心插件:

npm install [@dcloudio](/user/dcloudio)/uni-mp-weixin [@dcloudio](/user/dcloudio)/uni-cli-shared [@dcloudio](/user/dcloudio)/uni-cli-shared -D

6. 检查 HBuilderX 版本

如果你使用的是 HBuilderX IDE,确保你的版本是最新的。旧版本可能存在兼容性问题。

  • 打开 HBuilderX,点击 帮助 -> 检查更新,更新到最新版本。

7. 检查项目配置

确保你的 package.json 文件中正确配置了 uni-app 相关依赖。示例:

{
  "dependencies": {
    "[@dcloudio](/user/dcloudio)/uni-app": "^2.0.0"
  },
  "devDependencies": {
    "[@dcloudio](/user/dcloudio)/uni-mp-weixin": "^2.0.0",
    "[@dcloudio](/user/dcloudio)/uni-cli-shared": "^2.0.0"
  }
}
回到顶部