当前位置:论坛首页 > Windows面板 > 求助

网站,无法创建node项目

发表在 Windows面板2025-1-7 18:08 [复制链接] 0 94

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:

系统版本:

问题描述:

相关截图(日志、错误):
REQUEST_DATE: 2025-01-07 18:03:32
PAN_VERSION: 8.2.2
  OS_VERSION: Windows Server 2019 Standard (build 17763) x64 (Py3.8.6)
REMOTE_ADDR: 127.0.0.1
REQUEST_URI: POST /project/nodejs/create_project?
REQUEST_FORM: {'data': '{"project_cwd":"C:/workspace/github/qq-music-api","project_name":"qqMusicApi","project_script":"start","port":"5000","run_user":"root","pkg_manager":"npm","not_install_pkg":1,"nodejs_version":"v18.16.1","project_ps":"qq music api","domains":"","release_firewall":false,"bind_extranet":0,"is_power_on":1,"max_memory_limit":4096,"project_env":""}'}
  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Traceback (most recent call last):
  File "C:\Program Files\python\lib\site-packages\win32com\client\dynamic.py", line 89, in _GetGoodDispatch
    IDispatch = pythoncom.connect(IDispatch)
pywintypes.com_error: (-2147221008, '尚未调用 CoInitialize。', None, None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\BtSoft\panel\BTPanel\__init__.py", line 1584, in publicObject
    return run_exec().run(toObject, defs, get)
  File "C:\BtSoft\panel\BTPanel\__init__.py", line 1825, in run
    result = resobj(get)
  File "C:\BtSoft\panel/class\panelProjectController.py", line 93, in model
    result = PluginLoader.module_run(module_name, def_name, pdata)
  File "C:\BtSoft\panel/class/projectModel/nodejsModel.py", line 732, in create_project
    self.create_shortcut(script_path, task_path)
  File "C:\BtSoft\panel/class/projectModel/nodejsModel.py", line 2569, in create_shortcut
    shell = win32com.client.Dispatch("WScript.Shell")
  File "C:\Program Files\python\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch
    dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
  File "C:\Program Files\python\lib\site-packages\win32com\client\dynamic.py", line 114, in _GetGoodDispatchAndUserName
    return (_GetGoodDispatch(IDispatch, clsctx), userName)
  File "C:\Program Files\python\lib\site-packages\win32com\client\dynamic.py", line 91, in _GetGoodDispatch
    IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147221008, '尚未调用 CoInitialize。', None, None)
使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表