home page
Message Board
About us
Friendly Links
Search
one
Using idle mobile phones to build a local WEB environment+ngrok intranet penetration to achieve external network access
47980 Reading
two
Xiaomi 8 installs Google Play service suite
31013 Reading
three
The single player landlords' non networked green version is suitable for the elderly
23715 Reading
four
Chinese and English names of 224 countries in the world
21321 Reading
five
Emlog, wordpress, typecho articles, whether Baidu has included detection codes
16679 Reading
Default classification
Source code tutorial
Life essay
Code Notes
Sign in
Search
Tag Search
SSL
vps
CentOS
AppNode
Intranet penetration
Node.js
Hairpin
GitHub
python
Google Voice
Local environment
Linux panel
Google Play
MarkDown
Vue
yarn
Small shop
Applet
Remote Desktop
frp
www.9ywk.com
Accumulated writing
seventy-two
Articles
Accumulated receipt
sixty-four
Comments
home page
column
Default classification
Source code tutorial
Life essay
Code Notes
page
Message Board
About us
Friendly Links
Search to
two
Article and
Results for
2020-09-16
Discovery Navigation Deployment Tutorial - GitHub Page
Recently, we found a good website navigation in GitHub, which is pure static, automatic deployment, and coexistence of beauty and simplicity. It is no longer the era of killing matt. More information can be found on GitHub. Here we record the detailed deployment process.
Nav.ka.mk - I built this
https://github.com/xjh22222228/nav
How to deploy?
It is recommended that you use the github pages service, so that you do not need to provide a server, and the project has its own automated deployment service.
1: First, one copy of Fork is in its own warehouse. Second, apply for Tokens. Check all the Tokens. Otherwise, you have no permission.
https://github.com/settings/tokens
3: [Setting] – [Secrets] - [New secret] Fill in the token just applied for, and the name must be filled in TOKEN in capital four: [Actions] – click [I understand my workflows, go ahead and enable them] to start!
GitHub Page In the settings, find GitHub Page, select the gh pages branch · folder root and save it. Now you can see the access address.
Later, it will be prompted that the domain name nav.xiejiahe.com is used, which is the author's. If you don't need to bind the domain name, you can delete the CNAME in the gh pages branch or change it to your own.
Submit Commit to edit the 'unimportant' file under the main branch master. For example, saving README.md can trigger Action!
The Action completes the construction and is now accessible.
Modify the description navigation data directory dataconfig/index.ts configuration file. The address in the 23 lines is the Git address in the upper right corner. It is recommended to keep the footersrc/view/app.component.html bottom footersrc/view/app.component.html top link on the mobile phone, logo address src/index.html website name, statistical code assets/icon/logo.pnglogo map. Node.js needs to be installed for local construction,
Please refer to this article to record Node.js/vue/yarn installation # Download source code
#Enter directory
C:\user>cd *\nav-master\nav-master
#Installation dependency
npm install
#Compile
npm run build
#Start
The prompt of npm start completion is opened,
http://localhost:port
Port
September 16, 2020
1581 Reading
0 Comments
0 likes
2020-08-19
Record the Node.js/vue/yarn installation
Linuxnode. js npm # Download
wget
https://nodejs.org/dist/v14.15.3/node-v14.15.3-linux-x64.tar.xz
#Decompress
tar xf node-v14.15.3-linux-x64.tar.xz
#Enter directory
cd node-v14.15.3-linux-x64
#Establish soft connection and take effect globally
ln -s /root/node-v14.15.3-linux-x64/bin/npm /usr/local/bin/npm
ln -s /root/node-v14.15.3-linux-x64/bin/node /usr/local/bin/node
Node - v # version query
Npm - v # version query
Which npm # where is npm npm The installation directory creates a soft link. The environment variable can not be configured. vim/etc/profile Add the bottom export PATH=$PATH:/root/node-v14.15.3-linux-x64/bin Refresh the configuration, and take effect immediately. source/etc/profileyarn # Install
npm install -g yarn
#Create a soft link. It takes effect globally
ln -s /root/node-v14.15.3-linux-x64/bin/yarn /usr/local/bin/
#Version Query
yarn -v
#Installation position
Which yarn # where is yarnPM2 # Install either. npm or yarn
npm install -g pm2
yarn global add pm2
##If you do not know where the installation location is, you can see the installation process
#Create a soft link. It takes effect globally
ln -s /root/node-v14.15.3-linux-x64/bin/pm2 /usr/local/bin/
#Version Query
pm2 -v
#Installation position
which pm2 # whereis pm2
#Start process
pm2 start server.js
#View process
Pm2 listWindowsNode.js starts the installation by downloading from the official website. Keep clicking Next. Note: Check to install the necessary tools automatically
Note that this will also install Chocolatey.
The script will pop up in a new window after the installation completes. After the installation is completed, the CMD window executes node - v to view the node version npm - v to view the npm version npm install - g npm npm update. If the command is not an internal or external command
Check whether the system variables are added. Generally, the system variable path will be automatically added: My Computer - Properties - Advanced System Settings - Environment Variables - System Variables - Pathvue Scaffold Official Website: Vue CLI Global Installation of vue cil, the so-called scaffold, provided that node.js is installed and npm install - g @ vue/cli is installed
# or
Yarn global add @ vue/cli Question 1: For example, execute the command: always stop fetchMetadata: sill resolveWithNewModule
View node source: npm config get registry Switch to Taobao source npm config set registry
https://registry.npm.taobao.org
Problem 2: Installation error npm WARN deprecated
vue-cli@2.9.6
: This package has been deprecated in favour of @vue/cli
npm WARN deprecated
request@2.88.2
: request has been.....
... or other errors, see the following reasons Try to clear the cache. Uninstall. Reinstall to clear the cache
npm cache clean --force
Uninstall older versions
npm uninstall -g @vue/cli
# or
Yarn global remove vue cli Upgrade npm update - g @ vue/cli
# or
Yarn global upgrade -- latest @ vue/cliView version vue - V
# or
Vue -- version Installation succeeded. 'vue' is not an internal or external command?
System variable C: * * * node under configuration_
Before downloading and installing on the global yarn official website, Node.js needs to be installed first. The same is true. After the installation is complete, click next. Execute npm install - g yarn in the CMD window to verify whether the installation is successful. Re enter the CMD to view the yarn version yarn - v
August 19, 2020
2099 Reading
1 Comments
0 likes
//