yapi icon indicating copy to clipboard operation
yapi copied to clipboard

可视化部署报错

Open MoeRookie opened this issue 10 months ago • 3 comments

Image 错误信息如下: npm

ERR! code CERT_HAS_EXPIRED npm ERR! errno CERT_HAS_EXPIRED npm ERR! request to https://registry.npm.taobao.org/copy-to-clipboard failed, reason: certificate has expired

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2025-02-10T14_03_51_132Z-debug.log

依赖库安装完成,正在初始化数据库mongodb...

[email protected] install-server D:\Soft\YApi\vendors > node server/install.js

Error: internal/modules/cjs/loader.js:797 throw err; ^ Error: Cannot find module '

MoeRookie avatar Feb 11 '25 06:02 MoeRookie

+1

15237179193 avatar Feb 14 '25 06:02 15237179193

用这个 https://github.com/gozeon/yapii

gozeon avatar Feb 19 '25 06:02 gozeon

进入node安装的根目录,将根目录授权一下,这个错误的原因在于 nodejs 的 运行权限和运行 yapi -server 的权限不一致。 解决: chown -R root:root /nodejs安装目录(环境变量配置的目录) 或 chmod 777 /nodejs

e8tg001 avatar Mar 19 '25 08:03 e8tg001