2.[幸福铜镜] 环境建置

get node and npm basically

To get this version, you can use the apt package manager. Refresh your local package index by typing:

apt update

Install Node.js from the repositories:

apt install nodejs
apt install npm

Installing Using a PPA (personal package archive)

cd ~apt install curlcurl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh

Run the script

bash nodesource_setup.sh
apt install nodejsnode -vnpm -v

latest version~~

Installing Using NVM

visit github page nvm and you can get command line

curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh

run the script

bash install_nvm.sh

It will install the software into a subdirectory of your home directory at ~/.nvm. It will also add the necessary lines to your ~/.profile file to use the file.

To gain access to the nvm functionality, you'll need to either log out and log back in again or source the ~/.profile file so that your current session knows about the changes:

source ~/.profile

list nvm version

nvm ls-remote
nvm alias default 8.11.1nvm use default

Install Git

Update Default Packages

apt update

Install Git

apt install git

Confirm Successful Installation

git --version

miaoli project install

cd /var/miaolinpm install
npm start

关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章