reactnative创建项目报错Error: Cannot find module ‘./lib/source-map-generator‘

在运行npxreact-nativeinitAwesomeProject时遇到错误,删除metro-source-map后的node_modules后,初始化项目成功。

 运行 npx react-native init AwesomeProject 之后就报如下错误:

 结果我把metro-source-map后面的那个node_modules删除之后重新运行 init就成功了

 

aria2: http://192.168.0.100:6800 [START] Security scan [DONE] Security scan ## ComfyUI-Manager: installing dependencies done. ** ComfyUI startup time: 2025-08-18 01:01:22.434 ** Platform: Windows ** Python version: 3.12.11 (main, Aug 8 2025, 17:05:04) [MSC v.1944 64 bit (AMD64)] ** Python executable: E:\ComfyUI\.venv\Scripts\python.exe ** ComfyUI Path: E:\ComfyUI\ComfyUI ** ComfyUI Base Folder Path: E:\ComfyUI\ComfyUI ** User directory: E:\ComfyUI\ComfyUI\user ** ComfyUI-Manager config path: E:\ComfyUI\ComfyUI\user\default\ComfyUI-Manager\config.ini ** Log path: E:\ComfyUI\ComfyUI\user\comfyui.log Prestartup times for custom nodes: 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-easy-use 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\rgthree-comfy 2.6 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager Checkpoint files will always be loaded safely. Total VRAM 16303 MB, total RAM 130789 MB pytorch version: 2.8.0+cu128 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 5080 : cudaMallocAsync Using pytorch attention Python version: 3.12.11 (main, Aug 8 2025, 17:05:04) [MSC v.1944 64 bit (AMD64)] ComfyUI version: 0.3.50 ComfyUI frontend version: 1.24.4 [Prompt Server] web root: E:\ComfyUI\.venv\Lib\site-packages\comfyui_frontend_package\static Error: [WinError 1314] 客户端没有所需的特权。: 'E:\\ComfyUI\\ComfyUI\\custom_nodes\\ComfyLiterals\\js' -> 'E:\\ComfyUI\\ComfyUI\\web\\extensions\\ComfyLiterals' Failed to create symlink to E:\ComfyUI\ComfyUI\web\extensions\ComfyLiterals. Please copy the folder manually. Source: E:\ComfyUI\ComfyUI\custom_nodes\ComfyLiterals\js Target: E:\ComfyUI\ComfyUI\web\extensions\ComfyLiterals WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for: PyTorch 2.7.1+cu128 with CUDA 1208 (you have 2.8.0+cu128) Python 3.9.13 (you have 3.12.11) Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers) Memory-efficient attention, SwiGLU, sparse and more won't be available. Set XFORMERS_MORE_DETAILS=1 for more details xFormers not available xFormers not available Module 'diffusers' load failed. If you don't have it installed, do it: pip install diffusers [ComfyUI-Easy-Use] server: v1.3.2 Loaded [ComfyUI-Easy-Use] web root: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-easy-use\web_version/v2 Loaded theUpsiders Logic Nodes: Loaded ### Loading: ComfyUI-Manager (V3.36) [ComfyUI-Manager] network_mode: public ### ComfyUI Version: v0.3.50-6-ge4f7ea10 | Released on '2025-08-13' [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json -------------- ### Mixlab Nodes: Loaded json_repair## OK ChatGPT.available True edit_mask.available True ## clip_interrogator_model not found: E:\ComfyUI\ComfyUI\models\clip_interrogator\Salesforce\blip-image-captioning-base, pls download from https://huggingface.co/Salesforce/blip-image-captioning-base ClipInterrogator.available True ## text_generator_model not found: E:\ComfyUI\ComfyUI\models\prompt_generator\text2image-prompt-generator, pls download from https://huggingface.co/succinctly/text2image-prompt-generator/tree/main ## zh_en_model not found: E:\ComfyUI\ComfyUI\models\prompt_generator\opus-mt-zh-en, pls download from https://huggingface.co/Helsinki-NLP/opus-mt-zh-en/tree/main PromptGenerate.available True ChinesePrompt.available True RembgNode_.available True ffmpeg could not be found. Using ffmpeg from imageio-ffmpeg. Use Proxy: http://192.168.0.100:7897 TripoSR.available MiniCPMNode.available Scenedetect.available FishSpeech.available SenseVoice.available False Whisper.available False fal-client## OK FalVideo.available -------------- Use Proxy: http://192.168.0.100:7897 ======================================== ComfyUI-nunchaku Initialization ======================================== Nunchaku version: 0.3.1 ComfyUI-nunchaku version: 0.3.3 Traceback (most recent call last): File "E:\ComfyUI\.venv\Lib\site-packages\diffusers\utils\import_utils.py", line 883, in _get_module return importlib.import_module("." + module_name, self.__name__) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Roaming\uv\python\cpython-3.12.11-windows-x86_64-none\Lib\importlib\__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "E:\ComfyUI\.venv\Lib\site-packages\diffusers\models\transformers\__init__.py", line 5, in <module> from .auraflow_transformer_2d import AuraFlowTransformer2DModel File "E:\ComfyUI\.venv\Lib\site-packages\diffusers\models\transformers\auraflow_transformer_2d.py", line 26, in <module> from ..attention_processor import ( File "E:\ComfyUI\.venv\Lib\site-packages\diffusers\models\attention_processor.py", line 35, in <module> import xformers.ops File "E:\ComfyUI\.venv\Lib\site-packages\xformers\ops\__init__.py", line 9, in <module> from .fmha import ( File "E:\ComfyUI\.venv\Lib\site-packages\xformers\ops\fmha\__init__.py", line 10, in <module> from . import ( File "E:\ComfyUI\.venv\Lib\site-packages\xformers\ops\fmha\flash3.py", line 109, in <module> from ...flash_attn_3 import _C # type: ignore[attr-defined] # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: DLL load failed while importing _C: 找不到指定的程序。 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "E:\ComfyUI\ComfyUI\nodes.py", line 2129, in load_custom_node module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-nunchaku\__init__.py", line 31, in <module> from .nodes.models.flux import NunchakuFluxDiTLoader File "E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-nunchaku\nodes\models\flux.py", line 11, in <module> from diffusers import FluxTransformer2DModel File "<frozen importlib._bootstrap>", line 1412, in _handle_fromlist File "E:\ComfyUI\.venv\Lib\site-packages\diffusers\utils\import_utils.py", line 874, in __getattr__ value = getattr(module, name) ^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI\.venv\Lib\site-packages\diffusers\utils\import_utils.py", line 873, in __getattr__ module = self._get_module(self._class_to_module[name]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI\.venv\Lib\site-packages\diffusers\utils\import_utils.py", line 885, in _get_module raise RuntimeError( RuntimeError: Failed to import diffusers.models.transformers.transformer_flux because of the following error (look up to see its traceback): DLL load failed while importing _C: 找不到指定的程序。 Cannot import E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-nunchaku module for custom nodes: Failed to import diffusers.models.transformers.transformer_flux because of the following error (look up to see its traceback): DLL load failed while importing _C: 找不到指定的程序。 Error loading AILab_SegmentV2.py: No module named 'groundingdino' [ComfyUI-RMBG] v2.5.0 | 26 nodes Loaded ------------------------------------------ Comfyroll Studio v1.76 : 175 Nodes Loaded ------------------------------------------ ** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md ** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki ------------------------------------------ [E:\ComfyUI\ComfyUI\custom_nodes\comfyui_controlnet_aux] | INFO -> Using ckpts path: E:\ComfyUI\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts [E:\ComfyUI\ComfyUI\custom_nodes\comfyui_controlnet_aux] | INFO -> Using symlinks: False [E:\ComfyUI\ComfyUI\custom_nodes\comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider'] E:\ComfyUI\ComfyUI\custom_nodes\comfyui_controlnet_aux\node_wrappers\dwpose.py:26: UserWarning: DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly warnings.warn("DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly") Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 5/94 ### [START] ComfyUI AlekPet Nodes v1.0.77 ### Node -> ArgosTranslateNode: ArgosTranslateCLIPTextEncodeNode, ArgosTranslateTextNode [Loading] Node -> ChatGLMNode[Loading] Node -> DeepLXTranslateNode[Loading] Node -> DeepTranslatorNode: DeepTranslatorCLIPTextEncodeNode, DeepTranslatorTextNode [Loading] Node -> ExtrasNode: PreviewTextNode, HexToHueNode, ColorsCorrectNode [Loading] Node -> GoogleTranslateNode: GoogleTranslateCLIPTextEncodeNode, GoogleTranslateTextNode [Loading] Node -> IDENode: IDENode [Loading] Node -> PainterNode: PainterNode [Loading] Node -> PoseNode: PoseNode [Loading] ### [END] ComfyUI AlekPet Nodes ### # 😺dzNodes: LayerStyle -> Cannot import name 'guidedFilter' from 'cv2.ximgproc' A few nodes cannot works properly, while most nodes are not affected. Please REINSTALL package 'opencv-contrib-python'. For detail refer to https://github.com/chflame163/ComfyUI_LayerStyle/issues/5 Initializing ControlAltAI Nodes Use Proxy: http://192.168.0.100:7897 [rgthree-comfy] Loaded 47 magnificent nodes. 🎉 Import times for custom nodes: 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\websocket_image_save.py 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui_ttp_toolset 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-inpainteasy 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyLiterals 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui_slk_joy_caption_two 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-logic 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-custom-scripts 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-inpaint-nodes 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui_essentials 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ControlAltAI-Nodes 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-advanced-controlnet 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-KJNodes 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\derfuu_comfyui_moddednodes 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-RMBG 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-tooling-nodes 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI_Mira 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes 0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui_controlnet_aux 0.1 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-model-manager 0.1 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Dwpose-Tensorrt 0.1 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI_LayerStyle 0.2 seconds (IMPORT FAILED): E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-nunchaku 0.3 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-florence2 0.4 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Depth-Anything-Tensorrt 0.5 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager 0.7 seconds: E:\ComfyUI\ComfyUI\custom_nodes\rgthree-comfy 1.7 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-depthanythingv2 1.8 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui_custom_nodes_alekpet 1.8 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-easy-use 4.5 seconds: E:\ComfyUI\ComfyUI\custom_nodes\comfyui-mixlab-nodes Context impl SQLiteImpl. Will assume non-transactional DDL. No target revision found. Starting server To see the GUI go to: http://0.0.0.0:8188 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 E:\ComfyUI\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/photoswipe-lightbox.esm.min.js E:\ComfyUI\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/pickr.min.js E:\ComfyUI\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/photoswipe.min.css E:\ComfyUI\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/classic.min.css E:\ComfyUI\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/model-viewer.min.js E:\ComfyUI\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/juxtapose.css E:\ComfyUI\ComfyUI\custom_nodes\comfyui-mixlab-nodes\webApp\lib/juxtapose.min.js Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 10/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 15/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 20/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 25/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 30/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 35/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 40/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 45/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 50/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 55/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 60/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 65/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 70/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 75/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 80/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 85/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data: 90/94 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 Use Proxy: http://192.168.0.100:7897 FETCH ComfyRegistry Data [DONE] [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes mode: remote filename: custom-node-list.json channel_url: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.jsonUse Proxy: http://192.168.0.100:7897 [DONE] Merge json from \\192.168.0.100\mcs\ComfyUI\custom-list;\\192.168.0.100\mcs\ComfyUI\civitai-list Merge json from \\192.168.0.100\mcs\ComfyUI\custom-list\custom-node-list.json FETCH DATA from: \\192.168.0.100\mcs\ComfyUI\custom-list\custom-node-list.json [DONE] merge custom_nodes [ComfyUI-Manager] broken item:{'title': 'ComfyUI Dwpose TensorRT', 'reference': 'https://github.com/yuvraj108c/ComfyUI-Dwpose-Tensorrt', 'req_models': [{'name': 'DWPose-l ucoco 384', 'reference': 'https://huggingface.co/yzd-v/DWPose'}, {'name': 'DWPose yolox l', 'reference': 'https://huggingface.co/yzd-v/DWPose'}]} [ComfyUI-Manager] broken item:{'title': 'ComfyUI Depth Anything TensorRT', 'reference': 'https://github.com/yuvraj108c/ComfyUI-Depth-Anything-Tensorrt', 'req_models': [{'name': 'Depth Anything 2 Onnx Large', 'reference': 'https://huggingface.co/yuvraj108c/Depth-Anything-2-Onnx'}]} [ComfyUI-Manager] All startup tasks have been completed.
08-19
-5.3.39.jar Downloaded from public: https://maven.aliyun.com/repository/public/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar (41 kB at 8.3 kB/s) Downloading from public: https://maven.aliyun.com/repository/public/org/springframework/spring-aop/5.3.39/spring-aop-5.3.39.jar Downloaded from public: https://maven.aliyun.com/repository/public/org/springframework/plugin/spring-plugin-core/2.0.0.RELEASE/spring-plugin-core-2.0.0.RELEASE.jar (29 kB at 5.6 kB/s) Downloading from public: https://maven.aliyun.com/repository/public/org/springframework/plugin/spring-plugin-metadata/2.0.0.RELEASE/spring-plugin-metadata-2.0.0.RELEASE.jar Downloaded from public: https://maven.aliyun.com/repository/public/org/springframework/plugin/spring-plugin-metadata/2.0.0.RELEASE/spring-plugin-metadata-2.0.0.RELEASE.jar (9.9 kB at 1.8 kB/s) Downloading from public: https://maven.aliyun.com/repository/public/io/swagger/swagger-models/1.6.2/swagger-models-1.6.2.jar Downloaded from public: https://maven.aliyun.com/repository/public/org/springframework/spring-aop/5.3.39/spring-aop-5.3.39.jar (385 kB at 64 kB/s) Downloading from public: https://maven.aliyun.com/repository/public/com/fasterxml/jackson/core/jackson-annotations/2.12.7/jackson-annotations-2.12.7.jar Downloaded from public: https://maven.aliyun.com/repository/public/net/bytebuddy/byte-buddy/1.10.22/byte-buddy-1.10.22.jar (3.5 MB at 569 kB/s) Downloading from public: https://maven.aliyun.com/repository/public/io/swagger/swagger-annotations/1.6.2/swagger-annotations-1.6.2.jar Downloaded from public: https://maven.aliyun.com/repository/public/io/swagger/swagger-models/1.6.2/swagger-models-1.6.2.jar (155 kB at 25 kB/s) Downloading from public: https://maven.aliyun.com/repository/public/com/mysql/mysql-connector-j/8.0.33/mysql-connector-j-8.0.33.jar Downloaded from public: https://maven.aliyun.com/repository/public/com/fasterxml/jackson/core/jackson-annotations/2.12.7/jackson-annotations-2.12.7.jar (76 kB at 12 kB/s) Downloading from public: https://maven.aliyun.com/repository/public/com/ruoyi/ruoyi-framework/3.9.0/ruoyi-framework-3.9.0.jar Downloaded from public: https://maven.aliyun.com/repository/public/io/swagger/swagger-annotations/1.6.2/swagger-annotations-1.6.2.jar (22 kB at 3.5 kB/s) Downloading from public: https://maven.aliyun.com/repository/public/com/ruoyi/ruoyi-quartz/3.9.0/ruoyi-quartz-3.9.0.jar Downloaded from public: https://maven.aliyun.com/repository/public/org/springframework/spring-beans/5.3.39/spring-beans-5.3.39.jar (707 kB at 112 kB/s) Downloading from public: https://maven.aliyun.com/repository/public/com/ruoyi/ruoyi-generator/3.9.0/ruoyi-generator-3.9.0.jar Downloaded from public: https://maven.aliyun.com/repository/public/io/springfox/springfox-swagger-ui/3.0.0/springfox-swagger-ui-3.0.0.jar (2.7 MB at 351 kB/s) Downloaded from public: https://maven.aliyun.com/repository/public/com/mysql/mysql-connector-j/8.0.33/mysql-connector-j-8.0.33.jar (2.5 MB at 318 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/com/ruoyi/ruoyi-framework/3.9.0/ruoyi-framework-3.9.0.jar Downloading from central: https://repo.maven.apache.org/maven2/com/ruoyi/ruoyi-quartz/3.9.0/ruoyi-quartz-3.9.0.jar Downloading from central: https://repo.maven.apache.org/maven2/com/ruoyi/ruoyi-generator/3.9.0/ruoyi-generator-3.9.0.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16.417 s [INFO] Finished at: 2025-11-13T11:27:36+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project ruoyi-admin: Could not resolve dependencies for project com.ruoyi:ruoyi-admin:jar:3.9.0 [ERROR] dependency: com.ruoyi:ruoyi-framework:jar:3.9.0 (compile) [ERROR] Could not find artifact com.ruoyi:ruoyi-framework:jar:3.9.0 in public (https://maven.aliyun.com/repository/public) [ERROR] Could not find artifact com.ruoyi:ruoyi-framework:jar:3.9.0 in central (https://repo.maven.apache.org/maven2) [ERROR] dependency: com.ruoyi:ruoyi-quartz:jar:3.9.0 (compile) [ERROR] Could not find artifact com.ruoyi:ruoyi-quartz:jar:3.9.0 in public (https://maven.aliyun.com/repository/public) [ERROR] Could not find artifact com.ruoyi:ruoyi-quartz:jar:3.9.0 in central (https://repo.maven.apache.org/maven2) [ERROR] dependency: com.ruoyi:ruoyi-generator:jar:3.9.0 (compile) [ERROR] Could not find artifact com.ruoyi:ruoyi-generator:jar:3.9.0 in public (https://maven.aliyun.com/repository/public) [ERROR] Could not find artifact com.ruoyi:ruoyi-generator:jar:3.9.0 in central (https://repo.maven.apache.org/maven2) [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException PS C:\Users\33130\Downloads\RuoYi-Vue-master\RuoYi-Vue-master\ruoyi-admin>
最新发布
11-14
你遇到的错误是: ``` [ERROR] Failed to execute goal on project ruoyi-admin: Could not resolve dependencies for project com.ruoyi:ruoyi-admin:jar:3.9.0 [ERROR] Could not find artifact com.ruoyi:ruoyi-framework:jar:3.9.0 [ERROR] Could not find artifact com.ruoyi:ruoyi-quartz:jar:3.9.0 [ERROR] Could not find artifact com.ruoyi:ruoyi-generator:jar:3.9.0 ``` --- ## 🔍 错误原因:**你进错了文件夹!** 你现在在: ``` RuoYi-Vue-master\ruoyi-admin ``` ⚠️ 这是 **前端项目里的 ruoyi-admin**,它不是 Java 项目! 👉 真正的后端 Java 项目应该来自这个地址: 🔗 https://gitee.com/y_project/RuoYi 而你下载的是: 🔗 https://gitee.com/y_project/RuoYi-Vue (这是**前端**) 这两个项目的结构完全不同! --- ### ❌ 你现在的问题: - `RuoYi-Vue` 是 Vue 前端项目,里面的 `ruoyi-admin` 只是一个空文件夹或配置文件 - 它没有真正的 Java 模块(如 `ruoyi-framework`, `ruoyi-quartz`) - 所以 Maven 找不到这些依赖包:`com.ruoyi:ruoyi-framework:jar:3.9.0` --- ## ✅ 正确做法:下载并使用 **后端项目 RuoYi** ### 第一步:下载正确的后端项目 打开浏览器访问: 👉 https://gitee.com/y_project/RuoYi 点击“克隆/下载” → 下载 ZIP 解压后你会看到: ``` RuoYi/ ├── pom.xml ├── ruoyi-common/ ├── ruoyi-system/ ├── ruoyi-framework/ ├── ruoyi-quartz/ ├── ruoyi-generator/ └── ruoyi-admin/ ← 这个才是 Spring Boot 主模块 ``` 这才是你要运行的后端项目--- ### 第二步:进入正确的目录运行命令 1. 打开命令行(cmd) 2. 进入: ```bash cd 解压后的\RuoYi\ruoyi-admin ``` 3. 运行启动命令: ```bash mvn spring-boot:run ``` ✅ 此时 Maven 会自动编译多模块项目,并正确找到 `ruoyi-framework` 等本地模块(因为它们在同一父工程下)。 --- ## 🧩 为什么之前找不到依赖? 因为在 `RuoYi-Vue` 中: - `ruoyi-framework` 是一个独立的 jar 包,需要发布到远程仓库才能下载 - 但若依官方没有把私有模块上传到公共 Maven 仓库 - 所以阿里云和中央仓库都找不到 `com.ruoyi:ruoyi-framework:jar:3.9.0` 👉 必须通过完整源码构建,Maven 才能识别这些模块为“本地子模块” --- ## ✅ 总结:你现在要做的事 | 步骤 | 操作 | |------|------| | 1️⃣ | 删除当前错误的项目(可选) | | 2️⃣ | 去 https://gitee.com/y_project/RuoYi 下载后端项目 ZIP | | 3️⃣ | 解压得到 `RuoYi` 文件夹 | | 4️⃣ | 打开命令行,进入 `RuoYi\ruoyi-admin` | | 5️⃣ | 输入命令:`mvn spring-boot:run` | | 6️⃣ | 等待启动成功,访问 http://localhost:8080 | --- ## 💡 小贴士:如何区分前后端? | 项目地址 | 类型 | 是否可运行 Java | |--------|------|----------------| | https://gitee.com/y_project/RuoYi | 后端(Java + Spring Boot) | ✅ 可以运行 | | https://gitee.com/y_project/RuoYi-Vue | 前端(Vue) | ❌ 不能当后端用 | > ⚠️ 记住:你要测试接口和性能,必须有一个真实的后端服务跑起来! --- 如果你现在按照这个步骤操作,就能顺利启动若依系统。一旦启动成功,你就可以开始做功能测试、接口测试、性能测试了! 如果还有问题(比如数据库连接失败),随时告诉我,我会继续帮你解决。你已经非常接近成功了!💪
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值