YMFE / yapi-plugin-qsso

YApi可视化接口管理平台 qsso 登录插件
43 stars 26 forks source link

执行:yapi plugin --name yapi-plugin-qsso出错: #2

Open sandheart opened 6 years ago

sandheart commented 6 years ago

执行:yapi plugin --name yapi-plugin-qsso出错:

npm WARN checkPermissions Missing write access to /data/yapi/vendors/node_modules/isobject/node_modules npm WARN html-webpack-plugin@2.29.0 requires a peer of webpack@1 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3 but none is installed. You must install peer dependencies yourself. npm WARN string-replace-webpack-plugin@0.1.3 requires a peer of webpack@^1.4.2 || >=2.2.0 but none is installed. You must install peer dependencies yourself. npm WARN sw-precache-webpack-plugin@0.11.3 requires a peer of webpack@^1 || ^2 || ^2.1.0-beta || ^2.2.0-beta but none is installed. You must install peer dependencies yourself. npm WARN webpack-dev-middleware@1.12.2 requires a peer of webpack@^1.0.0 || ^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself. npm WARN yapi@1.3.20 license should be a valid SPDX license expression

npm ERR! path /data/yapi/vendors/node_modules/cjson npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall access npm ERR! enoent ENOENT: no such file or directory, access '/data/yapi/vendors/node_modules/cjson' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-07-24T00_42_45_088Z-debug.log 更新插件成功 正在安装依赖... ^C

sandheart commented 6 years ago

npm的依赖管理太蛋疼了,能改用yarn吗?

sandheart commented 6 years ago

yapi-plugin-qsso依赖ykit,没说明,这个坑趟的

gaoxiaomumu commented 6 years ago

image 在zh执行 yapi plugin 的时候会判断是否安装过ykit 的