Make writing a habit together! This is the fifth day of my participation in the “Gold Digging Day New Plan · April More text Challenge”. Click here for more details.
All that stuff about me redeveloping Yapi
To tell the truth, when I received this project, I was really full of confidence, is not two open? It’s such a small thing, after MY development, I just want to quietly sing a little cabbage ah… The ground is cool
Take notes of the trample here, if. The future. We need to develop! Just don’t step in the hole
Install Yapi
1. Create a project directory
The mkdir yapi && CD yapi git clone https://github.com/YMFE/yapi.git vendors - the depth = 1 # or download the zip package decompression to vendors directoryCopy the code
Git Clone failed… emmmm
Git reported RPC failed. [curl] (https://so.csdn.net/so/search?q=curl&spm=1001.2101.3001.7020) 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errfno 10054, as shown in the following screenshot
- Solution – Reference address:
- git config http.sslVerify “false”
- If fatal: not in a git directory is displayed, run the git init command
- Git clone XXXX
- If the git code still fails to be downloaded, run git config –global http.postBuffer 100M to change the git cache size to 100MB
2. Modify the configuration
Cp vendors/config_example.json./config.json # Modify the configuration vi./config.json after replication is completeCopy the code
‘cp’ is not an internal or external command, nor is it a runnable program. This one is simpler, don’t use CMD, just use Powershell
3. Install dependencies
CD vendors NPM install - registry https://registry.npm.taobao.org # rely on installationCopy the code
YApi installation has a problem please see here I thought it was ok… Press confidently
npm run dev
Copy the code
Oh, my God, this is so hard!
Cannot find module ‘fs-extra’ #458 issues Cannot find module ‘FS -extra’ #458 issues Cannot find module’ FS -extra’ #458 issues
In the spirit of a dead horse, I choose to carry out the following orders
cnpm i
npm run dev
Copy the code
It’s so…
This problem is relatively simple, it is mongodb problem, open to install config. Json configuration content to configure
About the white screen
With regard to the white screen issue, the dependency may not have been installed completely
node-gyp
I remember that we installed node-gyp dependency package and rely on c++ files, so we need to find the appropriate environment in the installation manual to install it
In the package. The json
npm run dev-copy-icon && ykit s -p 4000;Copy the code
Ykit have to install
npm install ykit -g
Copy the code
NPM run dev-copy-icon && ykit s -p 4000