yapi icon indicating copy to clipboard operation
yapi copied to clipboard

安装时提示gyp ERR

Open neilss opened this issue 7 years ago • 0 comments

版本号

yapi-1.8.3 nodejs v7.9.0 MongoDB shell version: 2.6.12

什么问题

`npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version. npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version. npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version. npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version. npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.

[email protected] install /root/yapi/vendors/node_modules/dtrace-provider node-gyp rebuild || node suppress-error.js

gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: connect ENETUNREACH 104.20.23.46:443 gyp ERR! stack at Object.exports._errnoException (util.js:1050:11) gyp ERR! stack at exports._exceptionWithHostPort (util.js:1073:20) gyp ERR! stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14) gyp ERR! System Linux 3.10.107-1-tlinux2_kvm_guest-0048 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /root/yapi/vendors/node_modules/dtrace-provider gyp ERR! node -v v7.9.0 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok `

依赖关系未被满足 ` │ ├── UNMET PEER DEPENDENCY eslint@>=3.0.0 ├─┬ UNMET PEER DEPENDENCY [email protected]

npm WARN [email protected] requires a peer of mongoose@^4.1.12 but none was installed. npm WARN [email protected] requires a peer of eslint@>=3.0.0 but none was installed. `

如何复现此问题

按照内网安装指引,执行到npm install --production --registry https://registry.npm.taobao.org即可复现: 方式二. 命令行部署 mkdir yapi cd yapi git clone https://github.com/YMFE/yapi.git vendors //或者下载 zip 包解压到 vendors 目录(clone 整个仓库大概 140+ M,可以通过 git clone --depth=1 https://github.com/YMFE/yapi.git vendors 命令减少,大概 10+ M) cp vendors/config_example.json ./config.json //复制完成后请修改相关配置 cd vendors npm install --production --registry https://registry.npm.taobao.org

什么浏览器

什么系统(Linux, Windows, macOS)

CentOS Linux release 7.2 (Final)

neilss avatar Oct 01 '19 04:10 neilss