iT邦幫忙

0

2.[幸福銅鏡] 環境建置

Bu 2018-10-29 23:00:17439 瀏覽

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 curl
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh

Run the script

bash nodesource_setup.sh
apt install nodejs
node -v
npm -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.1
nvm use default

Install Git

Update Default Packages

apt update

Install Git

apt install git

Confirm Successful Installation

git --version

miaoli project install

cd /var/miaoli
npm install
npm start

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言