Use yarn to install Linux Command desktop version

1. Linux-Command desktop version open source project address: https://github.com/haloislet/linux-command

screenshot:
insert image description here

2. Installation steps:

1. Download the source file of the linux command desktop version: click "Code" in the upper right corner, and then select "Download ZIP". After the download is complete, unzip the file. The screenshot is as follows:

insert image description here

2. The open source project said in the readme that the dependency installation needs to use yarn. Yarn is a package management tool for node.js. The new version of node.js has built-in yarn, so go directly to the node.js official website to download and install and then enable yarn. Yes, if not, you can refer to: windows installation yarn detailed tutorial

insert image description here

3. Run the cmd command window as an administrator. First, switch the disk letter to the disk letter where the previously decompressed linux comman source file is located. The command directly enters the drive letter + colon, and then press Enter. The command: (My drive letter X:is X, yours may be C: or D: or E: just judge by yourself); then switch the directory to the source file directory, the command is the drive letter + path: (If you did not modify the directory name when you decompressed the file, the directory X:\linux-commandname should be linux-command-master), the screenshot is as follows:

insert image description here
4. If there is no error reported in the above steps, it will succeed soon. Next, you only need to execute 3 commands: (1) Depend on the tool installation , execute the command: yarn install( yarnit seems to ), the function of this command: after executing the command , the program will download the dependent tools required in the source project package.json (you can check which dependencies are downloaded in the node_modules directory). Due to network reasons, if you do not have an external network accelerator, the installation progress bar may be stuck in Building fresh packages for a while, just wait patiently. The blogger thought it was stuck after waiting for a while for the first time, and then terminated the command to re-execute. Finally, he waited for 389 seconds before prompting that the installation was complete (after opening the proxy accelerator basis). After the year install is successfully executed, ( 2) The last step is to build a static page and execute the command: yarn build, which is actually to load the html page of each command manual of linux. There are currently 554 pages, and the number should continue to increase in the future. After this step is executed, it will be You can start the linux command search tool, (3) Run , command: yarn start, you can see the linux command interface after execution.

insert image description here

insert image description here

insert image description here

Finally,
Linux-Command runs successfully! ! ! :

insert image description here

Can be retrieved normally:

insert image description here

Guess you like

Origin blog.csdn.net/qq_41320433/article/details/126654341