Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本地部署初始化失败 #341

Closed
hu-qi opened this issue May 23, 2018 · 6 comments
Closed

本地部署初始化失败 #341

hu-qi opened this issue May 23, 2018 · 6 comments

Comments

@hu-qi
Copy link

hu-qi commented May 23, 2018

版本号

v1.3.16
node v8.9.3
nvm 5.5.1
git version 2.8.1.windows.1
mongod version: 3.4.14 (MMAPv1)

什么问题

本地部署失败
`
部署日志
当前安装版本: v1.3.16
连接数据库成功!
开始下载平台文件压缩包... http://yapi.demo.qunar.com/publicapi/archive/v1.3.16
部署文件完成,正在安装依赖库...
npm
ERR! Error while executing: npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/adobe-webplatform/eve.git npm ERR! npm ERR! fatal: unable to connect to github.com: npm ERR! github.com[0: 13.250.177.223]: errno=No such file or directory npm ERR! github.com[1: 13.229.188.59]: errno=No such file or directory npm ERR! github.com[2: 52.74.223.119]: errno=No such file or directory npm ERR! npm ERR! npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\huqi\AppData\Roaming\npm-cache_logs\2018-05-23T10_52_09_965Z-debug.log
依赖库安装完成,正在初始化数据库mongodb...

yapi@1.3.16 install-server E:\test\my-yapi\vendors > node server/install.js
Error: module.js:538
throw err;
^

Error: Cannot find module 'fs-extra'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object. (E:\test\my-yapi\vendors\server\install.js:1:74)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
`

如何复现此问题

http://localhost:9090/
点击 开始部署 按钮
就会部署失败
尝试过低版本同样的错误

什么浏览器

Google Chrome 66.0.3359.181(正式版本) (64 位)

什么系统(Linux, Windows, macOS)

Windows

@gaoxiaomumu
Copy link
Member

请问你git 工具安装了吗

@liwenliang
Copy link

同样的问题,如何解决呢

@gaoxiaomumu
Copy link
Member

#16

@hu-qi
Copy link
Author

hu-qi commented May 25, 2018

git version 2.8.1.windows.1
现在还不急
到时候线上再试试
估计跟我本地的环境有关

@hu-qi
Copy link
Author

hu-qi commented May 28, 2018

centos 线上部署没问题 感谢!

@hu-qi hu-qi closed this as completed May 29, 2018
@yeongjet
Copy link

yeongjet commented Feb 7, 2020

我的原因是内存空间不足导致npm install时执行node-gyp的过程中被kill,增加内存就解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants