YMFE / yapi

YApi 是一个可本地部署的、打通前后端及QA的、可视化的接口管理平台
http://yapi.smart-xwork.cn/
Apache License 2.0
27.32k stars 4.78k forks source link

权限问题怎么解决? #903

Open whatthehan opened 5 years ago

whatthehan commented 5 years ago

权限问题怎么解决? image

Originally posted by @sawsam in https://github.com/YMFE/yapi/issues/16#issuecomment-468886239

golden-hu commented 5 years ago

有没有解决了,有没有官方的解决方案呀?chown到root?我本来就是root的身份执行

golden-hu commented 5 years ago

在root权限下 执行npm 会有权限问题 解决问题方法是在项目 /vendors 执行 npm install --production --registry https://registry.npm.taobao.org --unsafe-perm

golden-hu commented 5 years ago

在root权限下 执行npm 会有权限问题 解决问题方法是在项目 /vendors 执行 npm install --production --registry https://registry.npm.taobao.org --unsafe-perm

这个可以解决,亲测可以

yinlsea commented 5 years ago

亲测可以