file-type

纽约时报项目本地部署指南

ZIP文件

下载需积分: 5 | 4KB | 更新于2024-11-21 | 123 浏览量 | 0 下载量 举报 收藏
download 立即下载
本文档提供了关于创建一个新项目的基础指南,特别是对于一个旨在克隆《纽约时报》文章页面的项目。文档内容包括项目设置、技术栈、部署方法、作者信息、贡献指南以及许可信息。以下是对这些内容的详细解读: 1. **项目概述** - **标题**: setup-new-project - **描述**: 文档描述了一个基于《纽约时报》的文章页面的项目克隆。文档详细说明了项目设置的各个步骤,包括先决条件、环境设置、安装、使用说明和测试等。 - **标签**: HTML - 这表明项目可能主要使用HTML语言来构建前端界面,但具体技术栈可能还包括其他技术。 2. **技术细节** - **主要语言**: 文档没有明确指出项目的主要编程语言,但从描述中可以推断可能涉及JavaScript,因为它是构建动态网页的常用语言。 - **架构**: 架构信息未直接提及,但根据项目描述,它可能采用一个简单的前端框架,如React或Vue.js,用于管理页面内容的动态渲染。 - **使用的技术**: 提到的“技术”可能涉及前端开发技术,例如HTML, CSS, JavaScript以及可能的框架或库。 - **现场演示**: 指出了有一个现场演示的链接,但未在文档中提供,这可能用于演示项目的功能和外观。 - **入门**: 文档提供了一个示例,指导如何在本地设置项目,这可能包括了克隆项目仓库、安装依赖、配置开发环境以及运行项目等步骤。 3. **操作指南** - **先决条件**: 这部分内容应该会说明启动项目之前需要准备的软件或工具,如Node.js、npm/yarn等。 - **设置**: 可能包括项目的初始化设置,如安装必要的包和依赖。 - **安装**: 描述了如何安装项目所需的依赖,例如运行`npm install`或`yarn install`。 - **用法**: 说明了如何运行和使用项目,可能包括启动开发服务器、构建项目等命令。 - **运行测试**: 如果项目包含了测试,此处会说明如何执行测试来确保代码质量。 - **部署方式**: 介绍了如何将项目部署到生产环境,可能涉及步骤、平台或服务的选择。 4. **人员与贡献** - **作者**: 列出了作者的信息和他们的一些社交网络链接,如GitHub、Twitter和LinkedIn。 - **贡献**: 鼓励社区贡献,说明了如何提供文稿、问题反馈和功能请求,也可能涉及代码贡献的流程和指南。 5. **其他信息** - **致谢**: 对于使用过项目代码的人表示感谢,这可能是一种鼓励开源和共享资源的手段。 - **灵感**: 文档提到此项目可能受到了一些启发或灵感来源。 - **执照**: 项目采用了麻省理工学院(MIT)许可证,这是一种常见的开源许可证,允许用户自由地使用、修改和共享代码,但可能要求保留原作者的版权声明和许可证声明。 综上所述,文档提供了一个全面的指南,从技术实现到社区贡献,再到项目管理,每个环节都有详尽的描述和指导。这些内容对于想要复制《纽约时报》文章页面功能的开发者来说非常有价值。

相关推荐

filetype

doccano init [2025-07-11 13:48:11 +0800] [87632] [INFO] [django_drf_filepond.apps::ready::61] App init: no django-storages backend configured, using default (local) storage backend if set, otherwise you need to manage file storage independently of this app. Setup Database. Traceback (most recent call last): File "C:\Users\minhuan\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\minhuan\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\myselfcode\PythonProject\doccano-env-new\Scripts\doccano.exe\__main__.py", line 7, in <module> File "D:\myselfcode\PythonProject\doccano-env-new\lib\site-packages\backend\cli.py", line 177, in main args.handler(args) File "D:\myselfcode\PythonProject\doccano-env-new\lib\site-packages\backend\cli.py", line 75, in command_db_init management.call_command("migrate") File "D:\myselfcode\PythonProject\doccano-env-new\lib\site-packages\django\core\management\__init__.py", line 194, in call_command return command.execute(*args, **defaults) File "D:\myselfcode\PythonProject\doccano-env-new\lib\site-packages\django\core\management\base.py", line 458, in execute output = self.handle(*args, **options) File "D:\myselfcode\PythonProject\doccano-env-new\lib\site-packages\django\core\management\base.py", line 106, in wrapper res = handle_func(*args, **kwargs) File "D:\myselfcode\PythonProject\doccano-env-new\lib\site-packages\django\core\management\commands\migrate.py", line 120, in handle executor.loader.check_consistent_history(connection) File "D:\myselfcode\PythonProject\doccano-env-new\lib\site-packages\django\db\migrations\loader.py", line 327, in check_consistent_history raise InconsistentMigrationHistory( django.db.migrations.exceptions.InconsistentMigrationHistory: Migration socialaccount.0001_initial is applied before its dependency sites.0001_initial on database 'default'. (doccano-env-new) PS D:\myselfcode\PythonProject> 什么问题

filetype

C:\project2\new_headline_project\app-vue-headline>npm run dev > [email protected] dev > vite VITE v6.3.5 ready in 595 ms ➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ➜ press h + enter to show help Error: Failed to scan for dependencies from entries: C:/project2/new_headline_project/app-vue-headline/index.html C:/project2/new_headline_project/app-vue-headline/Untitled-1.html X [ERROR] ENOENT: no such file or directory, open 'C:\project2\new_headline_project\app-vue-headline\src\components\ContentList.vue' [plugin vite:dep-scan] node_modules/esbuild/lib/main.js:1267:21: 1267 │ let result = await callback({ ╵ ^ at async open (node:internal/fs/promises:633:25) at async Object.readFile (node:internal/fs/promises:1237:14) at async htmlTypeOnLoadCallback (file:///C:/project2/new_headline_project/app-vue-headline/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:14390:19) at async requestCallbacks.on-load (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:1267:22) at async handleRequest (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:628:11) This error came from the "onLoad" callback registered here: node_modules/esbuild/lib/main.js:1141:20: 1141 │ let promise = setup({ ╵ ^ at setup (file:///C:/project2/new_headline_project/app-vue-headline/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:14470:13) at handlePlugins (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:1141:21) at buildOrContextImpl (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:854:5) at Object.buildOrContext (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:680:5) at C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:2035:68 at new Promise (<anonymous>) at Object.context (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:2035:27) at Object.context (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:1877:58) at prepareEsbuildScanner (file:///C:/project2/new_headline_project/app-vue-headline/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:14266:24) The plugin "vite:dep-scan" was triggered by this import script:C:/project2/new_headline_project/app-vue-headline/src/views/HotView.vue?id=0:3:26: 3 │ import ContentList from '@/components/ContentList.vue' ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at failureErrorWithLog (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:1467:15) at C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:926:25 at runOnEndCallbacks (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:1307:45) at buildResponseToResult (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:924:7) at C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:936:9 at new Promise (<anonymous>) at requestCallbacks.on-end (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:935:54) at handleRequest (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:628:17) at handleIncomingPacket (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:653:7) at Socket.readFromStdout (C:\project2\new_headline_project\app-vue-headline\node_modules\esbuild\lib\main.js:581:7)

filetype

E:\pythonProject\venv\Scripts\python.exe "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 55147 --file E:/pythonProject/Test_Single.py ------------------------------------------------------------------------------- pydev debugger: CRITICAL WARNING: This version of python seems to be incorrectly compiled (internal generated filenames are not absolute) pydev debugger: The debugger may still function, but it will work slower and may miss breakpoints. pydev debugger: Related bug: http://bugs.python.org/issue1666807 ------------------------------------------------------------------------------- D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\pydevd.py:1816: DeprecationWarning: currentThread() is deprecated, use current_thread() instead dummy_thread = threading.currentThread() pydev debugger: process 7316 is connecting Connected to pydev debugger (build 202.6948.78) Traceback (most recent call last): File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 2141, in <module> main() ~~~~^^ File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 2132, in main globals = debugger.run(setup['file'], None, None, is_module) File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1360, in run m = save_main_module(file, 'pydevd') File "D:\Program Files\JetBrains\PyCharm Community Edition 2020.2.1\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_utils.py", line 43, in save_main_module from imp import new_module ModuleNotFoundError: No module named 'imp' Process finished with exit code 1

filetype

PS C:\Users\Administrator> Set-ExecutionPolicy RemoteSigned -Scope LocalMachine -Force >> cd E:\ >> .\Setup-Environment.ps1 >> 涓嬭浇 Node.js 瀹夎绋嬪簭... 姝e湪瀹夎 Node.js... 涓嬭浇 .NET SDK 瀹夎绋嬪簭... 澶囩敤涓嬭浇婧? https://dotnet.microsoft.com/download/dotnet/8.0 Invoke-WebRequest : 远程服务器返回错误: (400) 错误的请求。 所在位置 E:\Setup-Environment.ps1:42 字符: 5 + Invoke-WebRequest -Uri "https://download.visualstudio.microsoft.c ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],WebExce ption + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand 姝e湪瀹夎 .NET SDK... Start-Process : 由于出现以下错误,无法运行此命令: 系统找不到指定的文件。。 所在位置 E:\Setup-Environment.ps1:46 字符: 1 + Start-Process $dotnetInstaller -Wait -ArgumentList "/install", "/quie ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Start-Process],InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand 璁剧疆绯荤粺鐜鍙橀噺... node : 无法将“node”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确 ,然后再试一次。 所在位置 E:\Setup-Environment.ps1:57 字符: 32 + Write-Host "楠岃瘉 Node.js 瀹夎: $(node --version)" + ~~~~ + CategoryInfo : ObjectNotFound: (node:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 楠岃瘉 Node.js 瀹夎: dotnet : 无法将“dotnet”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径 正确,然后再试一次。 所在位置 E:\Setup-Environment.ps1:58 字符: 33 + Write-Host "楠岃瘉 .NET SDK 瀹夎: $(dotnet --version)" + ~~~~~~ + CategoryInfo : ObjectNotFound: (dotnet:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 楠岃瘉 .NET SDK 瀹夎: 鉁?鍒涘缓鐩綍: E:\ProjectEcosystem\Config 鉁?鍒涘缓鐩綍: E:\ProjectEcosystem\APIServer 鉁?鍒涘缓鐩綍: E:\ProjectEcosystem\BackendService 鉁?鍒涘缓榛樿閰嶇疆鏂囦欢: E:\ProjectEcosystem\Config\EcosystemConfig.xml 鉁?鐜璁剧疆瀹屾垚 PS E:\> .\Install-EcosystemService.ps1 -Action Uninstall >> Start-Sleep -Seconds 2 >> .\Install-EcosystemService.ps1 -Action Install >> ✅ 服务停止成功 ✅ 服务删除成功 ✅ 服务创建成功 ✅ 服务权限设置成功 ❌ 服务启动失败: 由于以下错误无法启动服务“Project Ecosystem Manager (ProjectEcosystemManager)”: 无法启动计算机“.”上 的服务 ProjectEcosystemManager。 === 诊断信息 === 服务路径: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1" 测试命令: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1" 错误详情: ServiceName : ProjectEcosystemManager Message : 由于以下错误无法启动服务“Project Ecosystem Manager (ProjectEcosystemManager)”: 无法启动计算机“.”上 的服务 ProjectEcosystemMana ger。 Data : {} InnerException : System.InvalidOperationException: 无法启动计算机“.”上的服务 ProjectEcosystemManager。 ---> System.ComponentModel.W in32Exception: 服务没有及时响应启动或控制请求。 --- 内部异常堆栈跟踪的结尾 --- 在 System.ServiceProcess.ServiceController.Start(String[] args) 在 Microsoft.PowerShell.Commands.ServiceOperationBaseCommand.DoStartService(ServiceController servic eController) TargetSite : StackTrace : HelpLink : Source : HResult : -2146233087 PS E:\> # 直接运行主脚本测试 >> & "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1" >> 已启动脚本,输出文件为 E:\ProjectEcosystem\Logs\Service_20250813.log === 生态系统管理服务启动于 08/13/2025 22:00:41 === 当前用户: BF-202503252000\Administrator 工作目录: E:\ PATH环境变量: C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Windows\System32;E:\curl-8.15.0_4-win64-mingw\bin;E:\Python310;E:\Python310\Scripts;C:\Windows;\Wbem;\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;E:\ai_temp;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Miniconda3\Scripts;C:\ProgramData\Miniconda3\Library\bin;C:\Program Files\Microsoft VS Code\bin;E:\Python310;E:\Python310\Scripts;E:\ai_temp;E:\Python310;E:\Python310\Scripts;E:\ai_temp 🔍 监控项目: APIServer ⚠️ APIServer 未运行 🚀 正在启动 APIServer... ✅ APIServer 启动成功 🔍 监控项目: BackendService ⚠️ BackendService 未运行 🚀 正在启动 BackendService... ✅ BackendService 启动成功 ⏱️ 等待 60 秒后再次检查... node : 无法将“node”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确 dotnet : 无法将“dotnet”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径,然后再试一次。 正确,然后再试一次。所在位置 行:1 字符: 1 所在位置 行:1 字符: 1+ node E:\ProjectEcosystem\APIServer\server.js 2>&1 | Tee-Object -FileP ... + dotnet run --project E:\ProjectEcosystem\BackendService\BackendServic ... + ~~~~+ ~~~~~~ + CategoryInfo : ObjectNotFound: (node:String) [], CommandNotFoundException + CategoryInfo : ObjectNotFound: (dotnet:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

filetype

第一步输入的时候窗口卡住了 然后我又开了第二个窗口 第一个“PS C:\Users\Administrator> # 手动下载安装包 >> $ProgressPreference = 'SilentlyContinue' >> $webClient = New-Object System.Net.WebClient >> >> # 下载 Node.js >> $nodeUrl = "https://nodejs.org/dist/v20.12.1/node-v20.12.1-x64.msi" >> $nodeInstaller = "$env:TEMP\node-installer.msi" >> $webClient.DownloadFile($nodeUrl, $nodeInstaller) >> Start-Process msiexec.exe -Wait -ArgumentList "/i", "`"$nodeInstaller`"", "/quiet", "/norestart" >> >> # 下载 .NET SDK >> $dotnetUrl = "https://download.visualstudio.microsoft.com/download/pr/8d5ffbe0-0e5b-4d9e-84aa-7950d7e2c4bd/dotnet-sdk-8.0.300-win-x64.exe" >> $dotnetInstaller = "$env:TEMP\dotnet-installer.exe" >> $webClient.DownloadFile($dotnetUrl, $dotnetInstaller) >> Start-Process $dotnetInstaller -Wait -ArgumentList "/install", "/quiet", "/norestart" >> >> # 设置环境变量 >> [System.Environment]::SetEnvironmentVariable("PATH", "C:\Program Files\nodejs;C:\Program Files\dotnet;$env:PATH", "Machine") >> $env:PATH = "C:\Program Files\nodejs;C:\Program Files\dotnet;$env:PATH" >> 使用“2”个参数调用“DownloadFile”时发生异常:“远程服务器返回错误: (400) 错误的请求。” 所在位置 行:14 字符: 1 + $webClient.DownloadFile($dotnetUrl, $dotnetInstaller) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Start-Process : 由于出现以下错误,无法运行此命令: 系统找不到指定的文件。。 所在位置 行:15 字符: 1 + Start-Process $dotnetInstaller -Wait -ArgumentList "/install", "/quie ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Start-Process],InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand PS C:\Users\Administrator> Set-ExecutionPolicy RemoteSigned -Scope LocalMachine -Force PS C:\Users\Administrator> cd E:\ PS E:\> .\Setup-Environment.ps1 涓嬭浇 Node.js 瀹夎绋嬪簭...” 第二个窗口“PS C:\Users\Administrator> Set-ExecutionPolicy RemoteSigned -Scope LocalMachine -Force >> cd E:\ >> .\Setup-Environment.ps1 >> Remove-Item : 无法删除项 E:\ai_temp\node-installer.msi: 文件“E:\ai_temp\node-installer.msi”正由另一进程使用,因此该进 程无法访问此文件。 所在位置 E:\Setup-Environment.ps1:13 字符: 5 + Remove-Item $nodeInstaller -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (E:\ai_temp\node-installer.msi:FileInfo) [Remove-Item], IOException + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand 涓嬭浇 Node.js 瀹夎绋嬪簭... 澶囩敤涓嬭浇婧? https://npmmirror.com/mirrors/node/v20.12.1/node-v20.12.1-x64.msi Invoke-WebRequest : 文件“E:\ai_temp\node-installer.msi”正由另一进程使用,因此该进程无法访问此文件。 所在位置 E:\Setup-Environment.ps1:24 字符: 5 + Invoke-WebRequest -Uri "https://npmmirror.com/mirrors/node/v20.12 ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], IOException + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand 姝e湪瀹夎 Node.js... 涓嬭浇 .NET SDK 瀹夎绋嬪簭... 澶囩敤涓嬭浇婧? https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-8.0.300-windows-x64-installer 使用“2”个参数调用“DownloadFile”时发生异常:“远程服务器返回错误: (400) 错误的请求。” 所在位置 E:\Setup-Environment.ps1:47 字符: 5 + $webClient.DownloadFile("https://download.visualstudio.microsoft. ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException 姝e湪瀹夎 .NET SDK... Start-Process : 由于出现以下错误,无法运行此命令: 系统找不到指定的文件。。 所在位置 E:\Setup-Environment.ps1:51 字符: 1 + Start-Process $dotnetInstaller -Wait -ArgumentList "/install", "/quie ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Start-Process],InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand 璁剧疆绯荤粺鐜鍙橀噺... node : 无法将“node”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确 ,然后再试一次。 所在位置 E:\Setup-Environment.ps1:62 字符: 32 + Write-Host "楠岃瘉 Node.js 瀹夎: $(node --version)" + ~~~~ + CategoryInfo : ObjectNotFound: (node:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 楠岃瘉 Node.js 瀹夎: dotnet : 无法将“dotnet”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径 正确,然后再试一次。 所在位置 E:\Setup-Environment.ps1:63 字符: 33 + Write-Host "楠岃瘉 .NET SDK 瀹夎: $(dotnet --version)" + ~~~~~~ + CategoryInfo : ObjectNotFound: (dotnet:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 楠岃瘉 .NET SDK 瀹夎: 鉁?鐜璁剧疆瀹屾垚 PS E:\> .\Install-EcosystemService.ps1 -Action Uninstall >> Start-Sleep -Seconds 2 >> .\Install-EcosystemService.ps1 -Action Install >> ✅ 服务停止成功 ✅ 服务删除成功 ✅ 服务创建成功 ✅ 服务权限设置成功 ✅ 服务恢复选项设置成功 ❌ 服务启动失败: 由于以下错误无法启动服务“Project Ecosystem Manager (ProjectEcosystemManager)”: 无法启动计算机“.”上 的服务 ProjectEcosystemManager。 === 诊断信息 === 服务路径: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1" 测试命令: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1" 错误详情: ServiceName : ProjectEcosystemManager Message : 由于以下错误无法启动服务“Project Ecosystem Manager (ProjectEcosystemManager)”: 无法启动计算机“.”上 的服务 ProjectEcosystemMana ger。 Data : {} InnerException : System.InvalidOperationException: 无法启动计算机“.”上的服务 ProjectEcosystemManager。 ---> System.ComponentModel.W in32Exception: 服务没有及时响应启动或控制请求。 --- 内部异常堆栈跟踪的结尾 --- 在 System.ServiceProcess.ServiceController.Start(String[] args) 在 Microsoft.PowerShell.Commands.ServiceOperationBaseCommand.DoStartService(ServiceController servic eController) TargetSite : StackTrace : HelpLink : Source : HResult : -2146233087 尝试增加服务启动超时时间... ✅ 服务启动超时时间设置为60秒 ℹ️ 需要重启计算机使设置生效 PS E:\> # 直接运行主脚本测试 >> & "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1" >> 已启动脚本,输出文件为 E:\ProjectEcosystem\Logs\Service_20250813.log === 生态系统管理服务启动于 08/13/2025 22:14:43 === 当前用户: BF-202503252000\Administrator 工作目录: E:\ PATH环境变量: C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Windows\System32;E:\curl-8.15.0_4-win64-mingw\bin;E:\Python310;E:\Python310\Scripts;C:\Windows;\Wbem;\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;E:\ai_temp;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Miniconda3\Scripts;C:\ProgramData\Miniconda3\Library\bin;C:\Program Files\Microsoft VS Code\bin;E:\Python310;E:\Python310\Scripts;E:\ai_temp;E:\Python310;E:\Python310\Scripts;E:\ai_temp;E:\Python310;E:\Python310\Scripts;E:\ai_temp;E:\Python310;E:\Python310\Scripts;E:\ai_temp ❌ 无法找到 PS E:\> Start-Service -Name "ProjectEcosystemManager" >> Get-Service -Name "ProjectEcosystemManager" >> Get-Content "E:\ProjectEcosystem\Logs\Service_*.log" -Tail 50 -Wait >> Start-Service : 由于以下错误无法启动服务“Project Ecosystem Manager (ProjectEcosystemManager)”: 无法启动计算机“.”上 的服务 ProjectEcosystemManager。 所在位置 行:1 字符: 1 + Start-Service -Name "ProjectEcosystemManager" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand Status Name DisplayName ------ ---- ----------- Stopped ProjectEcosyste... Project Ecosystem Manager 计算机: BF-202503252000 (Microsoft Windows NT 10.0.22631.0) 主机应用程序: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1 进程 ID: 19236 PSVersion: 5.1.22621.2506 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.2506 BuildVersion: 10.0.22621.2506 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** 已启动脚本,输出文件为 E:\ProjectEcosystem\Logs\Service_20250813.log === 生态系统管理服务启动于 08/13/2025 22:04:59 === 当前用户: BF-202503252000\Administrator 工作目录: E:\ PATH环境变量: C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Windows\System32;E:\curl-8.15.0_4-win64-mingw\bin;E:\Python310;E:\Python310\Scripts;C:\Windows;\Wbem;\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;E:\ai_temp;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Miniconda3\Scripts;C:\ProgramData\Miniconda3\Library\bin;C:\Program Files\Microsoft VS Code\bin;E:\Python310;E:\Python310\Scripts;E:\ai_temp;E:\Python310;E:\Python310\Scripts;E:\ai_temp;E:\Python310;E:\Python310\Scripts;E:\ai_temp ❌ 无法找到Node.js可执行文件 ********************** Windows PowerShell 脚本结束 结束时间: 20250813220459 ********************** ********************** Windows PowerShell 脚本开始 开始时间: 20250813221443 用户名: BF-202503252000\Administrator RunAs 用户: BF-202503252000\Administrator 配置名称: 计算机: BF-202503252000 (Microsoft Windows NT 10.0.22631.0) 主机应用程序: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1 进程 ID: 19912 PSVersion: 5.1.22621.2506 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.2506 BuildVersion: 10.0.22621.2506 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** 已启动脚本,输出文件为 E:\ProjectEcosystem\Logs\Service_20250813.log === 生态系统管理服务启动于 08/13/2025 22:14:43 === 当前用户: BF-202503252000\Administrator 工作目录: E:\ PATH环境变量: C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Program Files\nodejs;C:\Program Files\dotnet;C:\Windows\System32;E:\curl-8.15.0_4-win64-mingw\bin;E:\Python310;E:\Python310\Scripts;C:\Windows;\Wbem;\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;E:\ai_temp;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Miniconda3\Scripts;C:\ProgramData\Miniconda3\Library\bin;C:\Program Files\Microsoft VS Code\bin;E:\Python310;E:\Python310\Scripts;E:\ai_temp;E:\Python310;E:\Python310\Scripts;E:\ai_temp;E:\Python310;E:\Python310\Scripts;E:\ai_temp;E:\Python310;E:\Python310\Scripts;E:\ai_temp ❌ 无法找到 ********************** Windows PowerShell 脚本结束 结束时间: 20250813221443 **********************”

filetype

PS C:\Users\Administrator> Set-ExecutionPolicy RemoteSigned -Scope LocalMachine -Force >> Set-ExecutionPolicy RemoteSigned -Scope LocalMachine -Force >> PS C:\Users\Administrator> cd E:\ >> .\Setup-Environment.ps1 >> 涓嬭浇 Node.js 瀹夎绋嬪簭... Invoke-WebRequest : 文件“E:\ai_temp\node-installer.msi”正由另一进程使用,因此该进程无法访问此文件。 所在位置 E:\Setup-Environment.ps1:12 字符: 1 + Invoke-WebRequest -Uri $nodeUrl -OutFile $nodeInstaller -UseBasicPars ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], IOException + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand 姝e湪瀹夎 Node.js... 涓嬭浇 .NET SDK 瀹夎绋嬪簭... Invoke-WebRequest : 远程服务器返回错误: (400) 错误的请求。 所在位置 E:\Setup-Environment.ps1:20 字符: 1 + Invoke-WebRequest -Uri $dotnetUrl -OutFile $dotnetInstaller -UseBasic ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],WebExce ption + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand 姝e湪瀹夎 .NET SDK... Start-Process : 由于出现以下错误,无法运行此命令: 系统找不到指定的文件。。 所在位置 E:\Setup-Environment.ps1:22 字符: 1 + Start-Process $dotnetInstaller -Wait -ArgumentList "/install", "/quie ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Start-Process],InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand 璁剧疆绯荤粺鐜鍙橀噺... node : 无法将“node”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确 ,然后再试一次。 所在位置 E:\Setup-Environment.ps1:33 字符: 32 + Write-Host "楠岃瘉 Node.js 瀹夎: $(node --version)" + ~~~~ + CategoryInfo : ObjectNotFound: (node:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 楠岃瘉 Node.js 瀹夎: dotnet : 无法将“dotnet”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径 正确,然后再试一次。 所在位置 E:\Setup-Environment.ps1:34 字符: 33 + Write-Host "楠岃瘉 .NET SDK 瀹夎: $(dotnet --version)" + ~~~~~~ + CategoryInfo : ObjectNotFound: (dotnet:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 楠岃瘉 .NET SDK 瀹夎: 鉁?鐜璁剧疆瀹屾垚 PS E:\> .\Install-EcosystemService.ps1 -Action Uninstall ✅ 服务停止成功 __GENUS : 2 __CLASS : __PARAMETERS __SUPERCLASS : __DYNASTY : __PARAMETERS __RELPATH : __PROPERTY_COUNT : 1 __DERIVATION : {} __SERVER : __NAMESPACE : __PATH : ReturnValue : 0 PSComputerName : ✅ 服务删除成功 PS E:\> Start-Sleep -Seconds 2 PS E:\> .\Install-EcosystemService.ps1 -Action Install ✅ 服务创建成功 ✅ 服务权限设置成功 ❌ 服务启动失败: 由于以下错误无法启动服务“Project Ecosystem Manager (ProjectEcosystemManager)”: 无法启动计算机“.”上 的服务 ProjectEcosystemManager。 === 诊断信息 === 服务路径: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1" 测试命令: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1" -TestMode PS E:\> .\Install-EcosystemService.ps1 -Action Uninstall >> Start-Sleep -Seconds 2 >> .\Install-EcosystemService.ps1 -Action Install >> ✅ 服务停止成功 __GENUS : 2 __CLASS : __PARAMETERS __SUPERCLASS : __DYNASTY : __PARAMETERS __RELPATH : __PROPERTY_COUNT : 1 __DERIVATION : {} __SERVER : __NAMESPACE : __PATH : ReturnValue : 0 PSComputerName : ✅ 服务删除成功 ✅ 服务创建成功 ✅ 服务权限设置成功 ❌ 服务启动失败: 由于以下错误无法启动服务“Project Ecosystem Manager (ProjectEcosystemManager)”: 无法启动计算机“.”上 的服务 ProjectEcosystemManager。 === 诊断信息 === 服务路径: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1" 测试命令: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1" -TestMode PS E:\> Start-Service -Name "ProjectEcosystemManager" >> Get-Service -Name "ProjectEcosystemManager" >> Get-Content "E:\ProjectEcosystem\Logs\Service_*.log" -Tail 50 -Wait >> Start-Service : 由于以下错误无法启动服务“Project Ecosystem Manager (ProjectEcosystemManager)”: 无法启动计算机“.”上 的服务 ProjectEcosystemManager。 所在位置 行:1 字符: 1 + Start-Service -Name "ProjectEcosystemManager" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand Status Name DisplayName ------ ---- ----------- Stopped ProjectEcosyste... Project Ecosystem Manager 工作目录: C:\Users\Administrator PATH环境变量: C:\Windows\System32;E:\curl-8.15.0_4-win64-mingw\bin;E:\Python310;E:\Python310\Scripts;C:\Windows;\Wbem;\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;E:\ai_temp;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Miniconda3\Scripts;C:\ProgramData\Miniconda3\Library\bin;C:\Program Files\Microsoft VS Code\bin;E:\Python310;E:\Python310\Scripts;E:\ai_temp ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ********************** Windows PowerShell 脚本开始 开始时间: 20250813215212 用户名: BF-202503252000\Administrator RunAs 用户: BF-202503252000\Administrator 配置名称: 计算机: BF-202503252000 (Microsoft Windows NT 10.0.22631.0) 主机应用程序: C:\Windows\system32\WindowsPowerShell\v1.0\PowerShell.exe 进程 ID: 4620 PSVersion: 5.1.22621.2506 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.2506 BuildVersion: 10.0.22621.2506 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** 已启动脚本,输出文件为 E:\ProjectEcosystem\Logs\Service_20250813.log === 生态系统管理服务启动于 08/13/2025 21:52:12 === 当前用户: BF-202503252000\Administrator 工作目录: C:\Users\Administrator PATH环境变量: C:\Windows\System32;E:\curl-8.15.0_4-win64-mingw\bin;E:\Python310;E:\Python310\Scripts;C:\Windows;\Wbem;\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;E:\ai_temp;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Miniconda3\Scripts;C:\ProgramData\Miniconda3\Library\bin;C:\Program Files\Microsoft VS Code\bin;E:\Python310;E:\Python310\Scripts;E:\ai_temp ⚠️ 配置文件不存在,使用默认配置 PS>TerminatingError(Out-File):“未能找到路径“E:\ProjectEcosystem\Config\EcosystemConfig.xml”的一部分。” ❌ 配置加载失败: 未能找到路径“E:\ProjectEcosystem\Config\EcosystemConfig.xml”的一部分。 ********************** Windows PowerShell 脚本结束 结束时间: 20250813215212 **********************

filetype

第一个窗口一直在那检查 不让输入别的:”PS C:\Users\Administrator> param( >> [Parameter(Mandatory=$true)] >> [ValidateSet("Install", "Uninstall", "Start", "Stop")] >> [string]$Action >> ) >> >> $serviceName = "ProjectEcosystemManager" >> $scriptPath = "E:\ProjectEcosystem\ProjectMonitor\Scripts\ProjectEcosystemManager.ps1" >> >> # 获取PowerShell可执行文件完整路径 >> $powershellExe = Join-Path $env:SystemRoot "System32\WindowsPowerShell\v1.0\powershell.exe" >> if (-not (Test-Path $powershellExe)) { >> Write-Host "❌ PowerShell可执行文件不存在: $powershellExe" -ForegroundColor Red >> exit 1 >> } >> >> # 关键修复:正确的二进制路径格式 >> $binaryPath = "`"$powershellExe`" -NoProfile -ExecutionPolicy Bypass -File `"$scriptPath`"" >> >> switch ($Action) { >> "Install" { >> # 检查服务是否已存在 >> $service = Get-Service -Name $serviceName -ErrorAction SilentlyContinue >> if ($service) { >> Write-Host "ℹ️ 服务已存在,先卸载..." -ForegroundColor Yellow >> & $PSCommandPath -Action Uninstall >> Start-Sleep -Seconds 3 >> } >> >> # 创建服务 >> try { >> $service = New-Service -Name $serviceName ` >> -BinaryPathName $binaryPath ` >> -DisplayName "Project Ecosystem Manager" ` >> -Description "自动化管理项目生态系统" ` >> -StartupType Automatic ` >> -ErrorAction Stop >> >> Write-Host "✅ 服务创建成功" -ForegroundColor Green >> } >> catch { >> Write-Host "❌ 服务创建失败: $_" -ForegroundColor Red >> exit 1 >> } >> >> # 授予服务必要的权限 >> try { >> $sdResult = sc.exe sdset $serviceName "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)" >> if ($LASTEXITCODE -ne 0) { >> throw $sdResult >> } >> Write-Host "✅ 服务权限设置成功" -ForegroundColor Green >> } >> catch { >> Write-Host "❌ 服务权限设置失败: $_" -ForegroundColor Red >> } >> >> # 启动服务 >> try { >> Start-Service -Name $serviceName -ErrorAction Stop >> Write-Host "✅ 服务启动成功" -ForegroundColor Green >> } >> catch { >> Write-Host "❌ 服务启动失败: $_" -ForegroundColor Red >> # 提供诊断信息 >> Write-Host "`n=== 诊断信息 ===" >> Write-Host "服务路径: $binaryPath" >> Write-Host "测试命令: $binaryPath -TestMode" >> exit 1 >> } >> } >> >> # ... [其他操作保持不变] ... >> } >> 位于命令管道位置 1 的 cmdlet 请为以下参数提供值: Action: 无法对参数“Action”执行参数验证。参数“”不属于 ValidateSet 属性指定的集合“Install,Uninstall,Start,Stop”。请提供一个 此集合中的参数,然后重试此命令。 + CategoryInfo : InvalidData: (:) [],ParentContainsErrorRecordException + FullyQualifiedErrorId : ParameterArgumentValidationError PS C:\Users\Administrator> .# === 环境初始化 === >> $global:projectRoot = "E:\ProjectEcosystem" >> $global:ecosystemConfig = Join-Path $projectRoot "Config\EcosystemConfig.xml" >> >> # 确保日志目录存在 >> $global:logDir = Join-Path $projectRoot "Logs" >> if (-not (Test-Path $logDir)) { >> New-Item -ItemType Directory -Path $logDir -Force | Out-Null >> } >> >> # 启动日志记录 >> $global:serviceLog = Join-Path $logDir "Service_$(Get-Date -Format 'yyyyMMdd').log" >> Start-Transcript -Path $global:serviceLog -Append -ErrorAction SilentlyContinue >> >> Write-Host "=== 生态系统管理服务启动于 $(Get-Date) ===" >> Write-Host "当前用户: $([Security.Principal.WindowsIdentity]::GetCurrent().Name)" >> Write-Host "工作目录: $(Get-Location)" >> Write-Host "PATH环境变量: $env:PATH" >> >> # === 关键修复:设置系统环境变量 === >> # 添加必要的工具路径到系统PATH >> $env:PATH = "C:\Program Files\nodejs;$env:PATH" >> $env:PATH = "C:\Program Files\dotnet;$env:PATH" >> $env:PATH = "C:\Program Files\Git\bin;$env:PATH" >> >> # 设置项目特定环境变量 >> $env:NODE_ENV = "production" >> $env:PROJECT_ROOT = $global:projectRoot >> >> # 加载配置(带默认值) >> function Load-Configuration { >> # ... [保持不变] ... >> } >> >> $global:config = Load-Configuration >> >> # === 修复项目监控函数 === >> function Monitor-Project { >> param( >> [string]$ProjectName, >> [string]$StartCommand >> ) >> >> $logFile = Join-Path $global:logDir "$ProjectName-$(Get-Date -Format 'yyyyMMdd').log" >> Write-Host "🔍 监控项目: $ProjectName" >> >> # 增强进程检测逻辑 >> $isRunning = $false >> $processes = @() >> >> # 根据项目类型使用不同的检测逻辑 >> switch ($ProjectName) { >> "APIServer" { >> $processes = Get-Process -Name "node" -ErrorAction SilentlyContinue | >> Where-Object { $_.Path -like "*$ProjectName*" } >> } >> "BackendService" { >> $processes = Get-Process -Name "dotnet" -ErrorAction SilentlyContinue | >> Where-Object { $_.Path -like "*$ProjectName*" } >> } >> default { >> $processes = Get-Process -Name $ProjectName -ErrorAction SilentlyContinue >> } >> } >> >> if ($null -ne $processes -and $processes.Count -gt 0) { >> $isRunning = $true >> Write-Host "✅ $ProjectName 正在运行 (PID: $($processes[0].Id))" >> } else { >> Write-Host "⚠️ $ProjectName 未运行" >> } >> >> if (-not $isRunning) { >> Write-Host "🚀 正在启动 $ProjectName..." >> try { >> # 修复启动命令 - 使用完整的PowerShell路径 >> $powershellExe = Join-Path $env:SystemRoot "System32\WindowsPowerShell\v1.0\powershell.exe" >> >> # 创建启动信息对象 >> $startInfo = New-Object System.Diagnostics.ProcessStartInfo >> $startInfo.FileName = $powershellExe >> $startInfo.Arguments = "-NoProfile -ExecutionPolicy Bypass -Command `"$StartCommand 2>&1 | Tee-Object -FilePath '$logFile'`"" >> $startInfo.WorkingDirectory = $global:projectRoot >> $startInfo.WindowStyle = [System.Diagnostics.ProcessWindowStyle]::Hidden >> $startInfo.UseShellExecute = $false >> >> # 启动进程 >> [System.Diagnostics.Process]::Start($startInfo) | Out-Null >> >> Write-Host "✅ $ProjectName 启动成功" >> } >> catch { >> Write-Host "❌ 启动失败: $_" -ForegroundColor Red >> # 提供详细错误信息 >> Write-Host "启动命令: $powershellExe -Command `"$StartCommand`"" >> } >> } >> } >> >> # === 主监控循环 === >> try { >> while ($true) { >> # 确保监控间隔有效 >> $interval = $global:config.Monitoring.Interval >> if (-not $interval -or $interval -le 0) { >> $interval = 60 >> Write-Host "⚠️ 使用默认监控间隔: 60秒" -ForegroundColor Yellow >> } >> >> # 项目监控逻辑 >> foreach ($project in $global:config.Projects) { >> Monitor-Project -ProjectName $project.Name -StartCommand $project.StartCommand >> } >> >> # 等待下一个监控周期 >> Write-Host "⏱️ 等待 $interval 秒后再次检查..." >> Start-Sleep -Seconds $interval >> } >> } >> catch { >> Write-Host "❌ 全局错误: $_" -ForegroundColor Red >> } >> finally { >> Stop-Transcript >> } >> .# : 无法将“.#”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然 后再试一次。 所在位置 行:1 字符: 1 + .# === 环境初始化 === + ~~ + CategoryInfo : ObjectNotFound: (.#:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 已启动脚本,输出文件为 E:\ProjectEcosystem\Logs\Service_20250813.log === 生态系统管理服务启动于 08/13/2025 21:42:52 === 当前用户: BF-202503252000\Administrator 工作目录: C:\Users\Administrator PATH环境变量: C:\Windows\System32;E:\curl-8.15.0_4-win64-mingw\bin;E:\Python310;E:\Python310\Scripts;C:\Windows;\Wbem;\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;E:\ai_temp;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Miniconda3\Scripts;C:\ProgramData\Miniconda3\Library\bin;C:\Program Files\Microsoft VS Code\bin;E:\Python310;E:\Python310\Scripts;E:\ai_temp ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... “ 第二个窗口好像在下载 有个弹窗”正在写入 web 请求正在写入请求流...(已写入字节数:12066174)“Windows PowerShell 版权所有(C) Microsoft Corporation。保留所有权利。 正在写入 Web 请求 正在写入请求流... (已写入字节数: 12895486) >> $nodeUrl = "https://nodejs.org/dist/v18.18.0/node-v18.18.0-x64.msi" >> $nodeInstaller = "$env:TEMP\node-installer.msi" >> Invoke-WebRequest -Uri $nodeUrl -OutFile $nodeInstaller >> Start-Process msiexec.exe -Wait -ArgumentList "/i $nodeInstaller /quiet" >> >> # 安装 .NET SDK >> $dotnetUrl = "https://download.visualstudio.microsoft.com/download/pr/815cce5b-0b36-44b3-9a8a-3b0d0a0e0c0e/8d1c5e8a4f2a4c4e4b4f4d4c4e4f4d4c/dotnet-sdk-6.0.400-win-x64.exe" >> $dotnetInstaller = "$env:TEMP\dotnet-installer.exe" >> Invoke-WebRequest -Uri $dotnetUrl -OutFile $dotnetInstaller >> Start-Process $dotnetInstaller -Wait -ArgumentList "/install", "/quiet", "/norestart" >> >> # 设置系统环境变量 >> [System.Environment]::SetEnvironmentVariable("PATH", "C:\Program Files\nodejs;C:\Program Files\dotnet;$env:PATH", "Machine") >> >> # 重启服务使环境变量生效 >> Restart-Service -Name "ProjectEcosystemManager" -Force >> >> Write-Host "✅ 环境设置完成" -ForegroundColor Green 第三个窗口:”PS C:\Users\Administrator> .\Setup-Environment.ps1 >> .\Setup-Environment.ps1 : 无法将“.\Setup-Environment.ps1”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名 称的拼写,如果包括路径,请确保路径正确,然后再试一次。 所在位置 行:1 字符: 1 + .\Setup-Environment.ps1 + ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (.\Setup-Environment.ps1:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException PS C:\Users\Administrator> # 将修复后的 ProjectEcosystemManager.ps1 保存到 E:\ProjectEcosystem\ProjectMonitor\Scripts\ >> PS C:\Users\Administrator> # 将修复后的 Install-EcosystemService.ps1 保存到 E:\ >> PS C:\Users\Administrator> .\Install-EcosystemService.ps1 -Action Uninstall >> Start-Sleep -Seconds 2 >> .\Install-EcosystemService.ps1 -Action Install >> .\Install-EcosystemService.ps1 : 无法将“.\Install-EcosystemService.ps1”项识别为 cmdlet、函数、脚本文件或可运行程序的 名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。 所在位置 行:1 字符: 1 + .\Install-EcosystemService.ps1 -Action Uninstall + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (.\Install-EcosystemService.ps1:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException .\Install-EcosystemService.ps1 : 无法将“.\Install-EcosystemService.ps1”项识别为 cmdlet、函数、脚本文件或可运行程序的 名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。 所在位置 行:3 字符: 1 + .\Install-EcosystemService.ps1 -Action Install + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (.\Install-EcosystemService.ps1:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException PS C:\Users\Administrator> Get-Service -Name "ProjectEcosystemManager" >> Start-Service -Name "ProjectEcosystemManager" >> Get-Content "E:\ProjectEcosystem\Logs\Service_*.log" -Tail 50 >> Status Name DisplayName ------ ---- ----------- Stopped ProjectEcosyste... ProjectEcosystemManager Start-Service : 由于以下错误无法启动服务“ProjectEcosystemManager (ProjectEcosystemManager)”: 无法启动计算机“.”上的 服务 ProjectEcosystemManager。 所在位置 行:2 字符: 1 + Start-Service -Name "ProjectEcosystemManager" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand 🔍 监控项目: BackendService ⚠️ BackendService 未运行 🚀 正在启动 BackendService... PS C:\Users\Administrator> TerminatingError(Start-Process):“由于出现以下错误,无法运行此命令: 系统找不到指定的文件。。 ” ❌ 启动失败: 由于出现以下错误,无法运行此命令: 系统找不到指定的文件。。 ⏱️ 等待 60 秒后再次检查... 🔍 监控项目: APIServer ⚠️ APIServer 未运行 🚀 正在启动 APIServer... PS C:\Users\Administrator> TerminatingError(Start-Process):“由于出现以下错误,无法运行此命令: 系统找不到指定的文件。。 ” ❌ 启动失败: 由于出现以下错误,无法运行此命令: 系统找不到指定的文件。。 🔍 监控项目: BackendService ⚠️ BackendService 未运行 🚀 正在启动 BackendService... PS C:\Users\Administrator> TerminatingError(Start-Process):“由于出现以下错误,无法运行此命令: 系统找不到指定的文件。。 ” ❌ 启动失败: 由于出现以下错误,无法运行此命令: 系统找不到指定的文件。。 ⏱️ 等待 60 秒后再次检查... ********************** Windows PowerShell 脚本开始 开始时间: 20250813214252 用户名: BF-202503252000\Administrator RunAs 用户: BF-202503252000\Administrator 配置名称: 计算机: BF-202503252000 (Microsoft Windows NT 10.0.22631.0) 主机应用程序: C:\Windows\system32\WindowsPowerShell\v1.0\PowerShell.exe 进程 ID: 2476 PSVersion: 5.1.22621.2506 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.2506 BuildVersion: 10.0.22621.2506 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** 已启动脚本,输出文件为 E:\ProjectEcosystem\Logs\Service_20250813.log === 生态系统管理服务启动于 08/13/2025 21:42:52 === 当前用户: BF-202503252000\Administrator 工作目录: C:\Users\Administrator PATH环境变量: C:\Windows\System32;E:\curl-8.15.0_4-win64-mingw\bin;E:\Python310;E:\Python310\Scripts;C:\Windows;\Wbem;\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;E:\ai_temp;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Miniconda3\Scripts;C:\ProgramData\Miniconda3\Library\bin;C:\Program Files\Microsoft VS Code\bin;E:\Python310;E:\Python310\Scripts;E:\ai_temp ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... ⚠️ 使用默认监控间隔: 60秒 ⏱️ 等待 60 秒后再次检查... PS C:\Users\Administrator>”

filetype

D:\project\lp_leapcloud_main_web\src\components\Charts\LpCharts.vue 2:22 warning Attribute ":ref" should go before "class" vue/attributes-order 2:22 warning ':ref' should be on a new line vue/max-attributes-per-line 2:33 warning Require self-closing on HTML elements (
) vue/html-self-closing 79:5 warning Prop "unit" should define at least its type vue/require-prop-types 104:5 warning Prop 'chartOption' requires default value to be set vue/require-default-prop 143:3 warning The "components" property should be above the "props" property on line 16 vue/order-in-components 154:3 error The `beforeDestroy` lifecycle hook is deprecated. Use `beforeUnmount` instead vue/no-deprecated-destroyed-lifecycle 162:3 error The `destroyed` lifecycle hook is deprecated. Use `unmounted` instead vue/no-deprecated-destroyed-lifecycle ✖ 8 problems (2 errors, 6 warnings) 2 errors and 4 warnings potentially fixable with the `--fix` option. 18:53:51 [vite] warning: D:\project\lp_leapcloud_main_web\src\components\Fault\FaultCase.vue 2:1 warning Expected indentation of 2 spaces but found 4 spaces vue/html-indent 3:1 warning Expected indentation of 4 spaces but found 8 spaces vue/html-indent 3:39 warning 'width' should be on a new line vue/max-attributes-per-line 3:51 warning ':title' should be on a new line vue/max-attributes-per-line 3:66 warning ':before-close' should be on a new line vue/max-attributes-per-line 3:94 warning 'destroy-on-close' should be on a new line vue/max-attributes-per-line 4:1 warning Expected indentation of 6 spaces but found 12 spaces vue/html-indent 4:45 warning 'label-width' should be on a new line vue/max-attributes-per-line 4:65 warning ':model' should be on a new line vue/max-attributes-per-line 4:84 warning Attribute "ref" should go before ":model" vue/attributes-order 4:84 warning 'ref' should be on a new line vue/max-attributes-per-line 4:100 warning ':rules' should be on a new line vue/max-attributes-per-line 5:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 6:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 6:26 warning Expected 1 space after '{{', but not found vue/mustache-interpolation-spacing 6:77 warning Expected 1 space before '}}', but not found vue/mustache-interpolation-spacing 7:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 8:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 9:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 10:1 warning Expected indentation of 12 spaces but found 24 spaces vue/html-indent 10:47 warning Require self-closing on Vue.js custom components (<el-radio>) vue/html-self-closing 11:1 warning Expected indentation of 12 spaces but found 24 spaces vue/html-indent 11:47 warning Require self-closing on Vue.js custom components (<el-radio>) vue/html-self-closing 12:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 13:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 14:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 14:43 warning 'prop' should be on a new line vue/max-attributes-per-line 15:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 15:43 warning Attribute "v-model" should go before "type" vue/attributes-order 15:43 warning 'v-model' should be on a new line vue/max-attributes-per-line 15:52 error Unexpected mutation of "faultForm" prop vue/no-mutating-props 15:73 warning 'maxLength' should be on a new line vue/max-attributes-per-line 15:73 warning Attribute 'maxLength' must be hyphenated vue/attribute-hyphenation 15:83 warning Expected to be enclosed by double quotes vue/html-quotes 15:88 warning 'placeholder' should be on a new line vue/max-attributes-per-line 15:109 warning Require self-closing on Vue.js custom components (<el-input>) vue/html-self-closing 16:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 17:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 17:44 warning 'prop' should be on a new line vue/max-attributes-per-line 18:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 18:47 warning Attribute "v-model" should go before "type" vue/attributes-order 18:47 warning 'v-model' should be on a new line vue/max-attributes-per-line 18:56 error Unexpected mutation of "faultForm" prop vue/no-mutating-props 18:76 warning 'placeholder' should be on a new line vue/max-attributes-per-line 18:98 warning 'maxlength' should be on a new line vue/max-attributes-per-line 18:115 warning Require self-closing on Vue.js custom components (<el-input>) vue/html-self-closing 19:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 20:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 20:44 warning 'prop' should be on a new line vue/max-attributes-per-line 21:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 21:47 warning Attribute "v-model" should go before "type" vue/attributes-order 21:47 warning 'v-model' should be on a new line vue/max-attributes-per-line 21:56 error Unexpected mutation of "faultForm" prop vue/no-mutating-props 21:74 warning 'placeholder' should be on a new line vue/max-attributes-per-line 21:96 warning 'maxlength' should be on a new line vue/max-attributes-per-line 21:113 warning Require self-closing on Vue.js custom components (<el-input>) vue/html-self-closing 22:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 23:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 24:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 24:44 warning '@click' should be on a new line vue/max-attributes-per-line 24:66 warning Expected 1 line break after opening tag (`<el-button>`), but no line breaks found vue/singleline-html-element-content-newline 24:68 warning Expected 1 line break before closing tag (`</el-button>`), but no line breaks found vue/singleline-html-element-content-newline 25:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 25:47 warning '@click' should be on a new line vue/max-attributes-per-line 25:67 warning Expected 1 line break after opening tag (`<el-button>`), but no line breaks found vue/singleline-html-element-content-newline 25:69 warning Expected 1 line break before closing tag (`</el-button>`), but no line breaks found vue/singleline-html-element-content-newline 26:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 27:1 warning Expected indentation of 6 spaces but found 12 spaces vue/html-indent 28:1 warning Expected indentation of 4 spaces but found 8 spaces vue/html-indent 29:1 warning Expected indentation of 2 spaces but found 4 spaces vue/html-indent 38:9 warning Prop 'title' requires default value to be set vue/require-default-prop 39:9 warning Prop 'faultForm' requires default value to be set vue/require-default-prop 51:9 warning Prop 'parentFunc' requires default value to be set vue/require-default-prop 99:24 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 122:44 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 127:44 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 136:48 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 140:48 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 148:48 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 152:48 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 164:5 warning The "destroyed" property should be above the "methods" property on line 97 vue/order-in-components 164:5 error The `destroyed` lifecycle hook is deprecated. Use `unmounted` instead vue/no-deprecated-destroyed-lifecycle ✖ 82 problems (4 errors, 78 warnings) 1 error and 56 warnings potentially fixable with the `--fix` option. Plugin: vite-plugin-eslint File: D:/project/lp_leapcloud_main_web/src/components/Fault/FaultCase.vue D:\project\lp_leapcloud_main_web\src\components\Fault\FaultCase.vue 2:1 warning Expected indentation of 2 spaces but found 4 spaces vue/html-indent 3:1 warning Expected indentation of 4 spaces but found 8 spaces vue/html-indent 3:39 warning 'width' should be on a new line vue/max-attributes-per-line 3:51 warning ':title' should be on a new line vue/max-attributes-per-line 3:66 warning ':before-close' should be on a new line vue/max-attributes-per-line 3:94 warning 'destroy-on-close' should be on a new line vue/max-attributes-per-line 4:1 warning Expected indentation of 6 spaces but found 12 spaces vue/html-indent 4:45 warning 'label-width' should be on a new line vue/max-attributes-per-line 4:65 warning ':model' should be on a new line vue/max-attributes-per-line 4:84 warning Attribute "ref" should go before ":model" vue/attributes-order 4:84 warning 'ref' should be on a new line vue/max-attributes-per-line 4:100 warning ':rules' should be on a new line vue/max-attributes-per-line 5:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 6:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 6:26 warning Expected 1 space after '{{', but not found vue/mustache-interpolation-spacing 6:77 warning Expected 1 space before '}}', but not found vue/mustache-interpolation-spacing 7:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 8:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 9:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 10:1 warning Expected indentation of 12 spaces but found 24 spaces vue/html-indent 10:47 warning Require self-closing on Vue.js custom components (<el-radio>) vue/html-self-closing 11:1 warning Expected indentation of 12 spaces but found 24 spaces vue/html-indent 11:47 warning Require self-closing on Vue.js custom components (<el-radio>) vue/html-self-closing 12:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 13:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 14:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 14:43 warning 'prop' should be on a new line vue/max-attributes-per-line 15:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 15:43 warning Attribute "v-model" should go before "type" vue/attributes-order 15:43 warning 'v-model' should be on a new line vue/max-attributes-per-line 15:52 error Unexpected mutation of "faultForm" prop vue/no-mutating-props 15:73 warning 'maxLength' should be on a new line vue/max-attributes-per-line 15:73 warning Attribute 'maxLength' must be hyphenated vue/attribute-hyphenation 15:83 warning Expected to be enclosed by double quotes vue/html-quotes 15:88 warning 'placeholder' should be on a new line vue/max-attributes-per-line 15:109 warning Require self-closing on Vue.js custom components (<el-input>) vue/html-self-closing 16:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 17:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 17:44 warning 'prop' should be on a new line vue/max-attributes-per-line 18:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 18:47 warning Attribute "v-model" should go before "type" vue/attributes-order 18:47 warning 'v-model' should be on a new line vue/max-attributes-per-line 18:56 error Unexpected mutation of "faultForm" prop vue/no-mutating-props 18:76 warning 'placeholder' should be on a new line vue/max-attributes-per-line 18:98 warning 'maxlength' should be on a new line vue/max-attributes-per-line 18:115 warning Require self-closing on Vue.js custom components (<el-input>) vue/html-self-closing 19:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 20:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 20:44 warning 'prop' should be on a new line vue/max-attributes-per-line 21:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 21:47 warning Attribute "v-model" should go before "type" vue/attributes-order 21:47 warning 'v-model' should be on a new line vue/max-attributes-per-line 21:56 error Unexpected mutation of "faultForm" prop vue/no-mutating-props 21:74 warning 'placeholder' should be on a new line vue/max-attributes-per-line 21:96 warning 'maxlength' should be on a new line vue/max-attributes-per-line 21:113 warning Require self-closing on Vue.js custom components (<el-input>) vue/html-self-closing 22:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 23:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 24:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 24:44 warning '@click' should be on a new line vue/max-attributes-per-line 24:66 warning Expected 1 line break after opening tag (`<el-button>`), but no line breaks found vue/singleline-html-element-content-newline 24:68 warning Expected 1 line break before closing tag (`</el-button>`), but no line breaks found vue/singleline-html-element-content-newline 25:1 warning Expected indentation of 10 spaces but found 20 spaces vue/html-indent 25:47 warning '@click' should be on a new line vue/max-attributes-per-line 25:67 warning Expected 1 line break after opening tag (`<el-button>`), but no line breaks found vue/singleline-html-element-content-newline 25:69 warning Expected 1 line break before closing tag (`</el-button>`), but no line breaks found vue/singleline-html-element-content-newline 26:1 warning Expected indentation of 8 spaces but found 16 spaces vue/html-indent 27:1 warning Expected indentation of 6 spaces but found 12 spaces vue/html-indent 28:1 warning Expected indentation of 4 spaces but found 8 spaces vue/html-indent 29:1 warning Expected indentation of 2 spaces but found 4 spaces vue/html-indent 38:9 warning Prop 'title' requires default value to be set vue/require-default-prop 39:9 warning Prop 'faultForm' requires default value to be set vue/require-default-prop 51:9 warning Prop 'parentFunc' requires default value to be set vue/require-default-prop 99:24 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 122:44 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 127:44 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 136:48 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 140:48 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 148:48 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 152:48 warning The "update:visible" event has been triggered but not declared on `emits` option vue/require-explicit-emits 164:5 warning The "destroyed" property should be above the "methods" property on line 97 vue/order-in-components 164:5 error The `destroyed` lifecycle hook is deprecated. Use `unmounted` instead vue/no-deprecated-destroyed-lifecycle ✖ 82 problems (4 errors, 78 warnings) 1 error and 56 warnings potentially fixable with the `--fix` option. 18:53:51 [vite] warning: D:\project\lp_leapcloud_main_web\src\components\CarSearch\CommChartHeader.vue 8:17 warning Attribute ':isClearable' must be hyphenated vue/attribute-hyphenation 8:44 warning ':carType.sync' should be on a new line vue/max-attributes-per-line 8:44 warning Attribute ':carType.sync' must be hyphenated vue/attribute-hyphenation 8:44 error '.sync' modifier on 'v-bind' directive is deprecated. Use 'v-model:propName' instead vue/no-deprecated-v-bind-sync 8:82 warning 'isNormal' should be on a new line vue/max-attributes-per-line 8:82 warning Attribute 'isNormal' must be hyphenated vue/attribute-hyphenation 8:91 warning 'style' should be on a new line vue/max-attributes-per-line 8:117 warning Require self-closing on Vue.js custom components (<car-type>) vue/html-self-closing 9:43 warning Attribute "v-model" should go before "class" vue/attributes-order 9:43 warning 'v-model' should be on a new line vue/max-attributes-per-line 9:80 warning 'align' should be on a new line vue/max-attributes-per-line 9:94 warning 'type' should be on a new line vue/max-attributes-per-line 9:106 warning 'placeholder' should be on a new line vue/max-attributes-per-line 9:129 warning ':picker-options' should be on a new line vue/max-attributes-per-line 9:161 warning Require self-closing on Vue.js custom components (<el-date-picker>) vue/html-self-closing 10:50 warning 'class' should be on a new line vue/max-attributes-per-line 10:81 warning ':vinOrNum.sync' should be on a new line vue/max-attributes-per-line 10:81 warning Attribute ':vinOrNum.sync' must be hyphenated vue/attribute-hyphenation 10:81 error '.sync' modifier on 'v-bind' directive is deprecated. Use 'v-model:propName' instead vue/no-deprecated-v-bind-sync 10:117 warning ':multiple' should be on a new line vue/max-attributes-per-line 10:134 warning ':carType' should be on a new line vue/max-attributes-per-line 10:134 warning Attribute ':carType' must be hyphenated vue/attribute-hyphenation 10:167 warning Require self-closing on Vue.js custom components (<car-select>) vue/html-self-closing 11:18 warning Attribute ':componentData' must be hyphenated vue/attribute-hyphenation 11:49 warning Require self-closing on Vue.js custom components (<car-miles>) vue/html-self-closing 12:33 warning '@click' should be on a new line vue/max-attributes-per-line 12:48 warning Expected 1 line break after opening tag (`<el-button>`), but no line breaks found vue/singleline-html-element-content-newline 12:50 warning Expected 1 line break before closing tag (`</el-button>`), but no line breaks found vue/singleline-html-element-content-newline 23:5 warning Prop 'onOk' requires default value to be set vue/require-default-prop 26:5 warning Prop 'carType' requires default value to be set vue/require-default-prop 36:3 warning The "data" property should be above the "mounted" property on line 33 vue/order-in-components 54:3 warning The "components" property should be above the "props" property on line 22 vue/order-in-components 55:5 error The "LpArea" component has been registered but not used vue/no-unused-components ✖ 33 problems (3 errors, 30 warnings) 2 errors and 17 warnings potentially fixable with the `--fix` option. Plugin: vite-plugin-eslint File: D:/project/lp_leapcloud_main_web/src/components/CarSearch/CommChartHeader.vue D:\project\lp_leapcloud_main_web\src\components\CarSearch\CommChartHeader.vue 8:17 warning Attribute ':isClearable' must be hyphenated vue/attribute-hyphenation 8:44 warning ':carType.sync' should be on a new line vue/max-attributes-per-line 8:44 warning Attribute ':carType.sync' must be hyphenated vue/attribute-hyphenation 8:44 error '.sync' modifier on 'v-bind' directive is deprecated. Use 'v-model:propName' instead vue/no-deprecated-v-bind-sync 8:82 warning 'isNormal' should be on a new line vue/max-attributes-per-line 8:82 warning Attribute 'isNormal' must be hyphenated vue/attribute-hyphenation 8:91 warning 'style' should be on a new line vue/max-attributes-per-line 8:117 warning Require self-closing on Vue.js custom components (<car-type>) vue/html-self-closing 9:43 warning Attribute "v-model" should go before "class" vue/attributes-order 9:43 warning 'v-model' should be on a new line vue/max-attributes-per-line 9:80 warning 'align' should be on a new line vue/max-attributes-per-line 9:94 warning 'type' should be on a new line vue/max-attributes-per-line 9:106 warning 'placeholder' should be on a new line vue/max-attributes-per-line 9:129 warning ':picker-options' should be on a new line vue/max-attributes-per-line 9:161 warning Require self-closing on Vue.js custom components (<el-date-picker>) vue/html-self-closing 10:50 warning 'class' should be on a new line vue/max-attributes-per-line 10:81 warning ':vinOrNum.sync' should be on a new line vue/max-attributes-per-line 10:81 warning Attribute ':vinOrNum.sync' must be hyphenated vue/attribute-hyphenation 10:81 error '.sync' modifier on 'v-bind' directive is deprecated. Use 'v-model:propName' instead vue/no-deprecated-v-bind-sync 10:117 warning ':multiple' should be on a new line vue/max-attributes-per-line 10:134 warning ':carType' should be on a new line vue/max-attributes-per-line 10:134 warning Attribute ':carType' must be hyphenated vue/attribute-hyphenation 10:167 warning Require self-closing on Vue.js custom components (<car-select>) vue/html-self-closing 11:18 warning Attribute ':componentData' must be hyphenated vue/attribute-hyphenation 11:49 warning Require self-closing on Vue.js custom components (<car-miles>) vue/html-self-closing 12:33 warning '@click' should be on a new line vue/max-attributes-per-line 12:48 warning Expected 1 line break after opening tag (`<el-button>`), but no line breaks found vue/singleline-html-element-content-newline 12:50 warning Expected 1 line break before closing tag (`</el-button>`), but no line breaks found vue/singleline-html-element-content-newline 23:5 warning Prop 'onOk' requires default value to be set vue/require-default-prop 26:5 warning Prop 'carType' requires default value to be set vue/require-default-prop 36:3 warning The "data" property should be above the "mounted" property on line 33 vue/order-in-components 54:3 warning The "components" property should be above the "props" property on line 22 vue/order-in-components 55:5 error The "LpArea" component has been registered but not used vue/no-unused-components ✖ 33 problems (3 errors, 30 warnings) 2 errors and 17 warnings potentially fixable with the `--fix` option. 18:53:52 [vite] warning: D:\project\lp_leapcloud_main_web\src\App.vue 2:1 warning Expected indentation of 2 spaces but found 4 spaces vue/html-indent 3:1 warning Expected indentation of 4 spaces but found 8 spaces vue/html-indent 3:22 warning Require self-closing on Vue.js custom components (<router-view>) vue/html-self-closing 4:1 warning Expected indentation of 2 spaces but found 4 spaces vue/html-indent ✖ 4 problems (0 errors, 4 warnings) 0 errors and 4 warnings potentially fixable with the `--fix` option. Plugin: vite-plugin-eslint File: D:/project/lp_leapcloud_main_web/src/App.vue?vue&type=style&index=0&lang.css 是不是vue2不应该迁移vite

weixin_42135073
  • 粉丝: 43
上传资源 快速赚钱