home page
Message Board
About us
Links
Search
one
Using idle mobile phone to build local web environment + ngrok intranet penetration to achieve external network access
45469 reading
two
Xiaomi 8 installs Google play service Suite
28395 reading
three
The green version is suitable for the elderly
20637 reading
four
Chinese and English names of 224 countries in the world
19355 reading
five
Emlog, WordPress, Typecho articles, whether Baidu has included the detection code
16039 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
Applets
Remote desktop
frp
www.9ywk.com
Cumulative writing
seventy-two
Articles
Cumulative received
sixty-four
Comments
home page
column
Default classification
Source code tutorial
Life Essay
Code Notes
page
Message Board
About us
Links
Search for
one
Article and
The results of
2020-08-19
Record 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 the 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 NPM installation directory creates a soft link, and the environment variable VIM / etc / profile can be added to the bottom export path = $path / root / node-v14.15.3-linux-x64/bin to refresh the configuration and take effect immediately source / etc / profilearn ා
npm install -g yarn
#Create soft link. Global effect
ln -s /root/node-v14.15.3-linux-x64/bin/yarn /usr/local/bin/
#Version query
yarn -v
#Installation position
Choose between NPM and 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 soft link. Global effect
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 the process
pm2 start server.js
#View progress
pm2 listWindowsNode.
JS official website download to start the installation, always click next. Note: check the necessary tools to install automatically
Note that this will also install Chocolatey.
The script will pop-up in a new window after the installation completes.
After installation, 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 system variables are not internal or external commands, the system variables will be automatically added. Path: my computer - properties - advanced system settings - environment variables - system variables - pathvue scaffold official website: Vue cli global installation Vue CIL,
The so-called scaffold, the premise is that the node has been installed
JS install NPM install - G @ Vue / cli
# or
For example, if you want to switch the source of the new / M registry / registry, you can use the following command to check the source of the file
https://registry.npm.taobao.org
Problem 2 installation error NPM warn degraded
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. Try to clear the cache. Uninstall. Re install to clear the cache
npm cache clean --force
Uninstall old version
npm uninstall -g @vue/cli
# or
Yarn global remove Vue cli upgrade NPM update - G @ Vue / cli
# or
Yarn global Upgrade -- Latest @ Vue / cli view version Vue - V
# or
Vue -- version successfully installed. Is' Vue 'not an internal or external command?
Configure the system variable C: \ * * * \ node_
You need to install node before downloading and installing the global / yarn official website
JS is still the same. After the installation is completed, run 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
1581 reading
1 comments
0 likes
//