Користувальницькькі налаштування

Налаштування сайту


programming:javascript:nodejsinstall

Розбіжності

Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.

Посилання на цей список змін

Наступна ревізія
Попередня ревізія
programming:javascript:nodejsinstall [2018/03/16 17:49]
charon створено
programming:javascript:nodejsinstall [2018/05/11 18:29] (поточний)
charon
Рядок 1: Рядок 1:
 +Будем использовать NVM
 ===== Install nodejs ===== ===== Install nodejs =====
   sudo apt-get install build-essential libssl-dev   sudo apt-get install build-essential libssl-dev
   wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash   wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
   # see https://github.com/creationix/nvm#install-script for latest version available   # see https://github.com/creationix/nvm#install-script for latest version available
-  # now view LTS version available 
-  nvm ls-remote --lts 
   # choose latest LTS, like Carbon, and install latest version of this LTS   # choose latest LTS, like Carbon, and install latest version of this LTS
-  nvm install --lts=carbon+  nvm install --lts 
 +  nvm alias default lts/*
   # update NPM to latest stable version   # update NPM to latest stable version
   npm install npm@latest -g   npm install npm@latest -g
-  npm cache clean+
  
 ===== Update nodejs ===== ===== Update nodejs =====
 +this is not enough tested
   # show currently installed version of NodeJS - remember it!   # show currently installed version of NodeJS - remember it!
   nvm current    nvm current 
Рядок 23: Рядок 24:
   # update NPM   # update NPM
   npm install npm@latest -g   npm install npm@latest -g
 +  npm cache clean
   # update global packages (in this example from nvm 6.13.1 - see begginning of this instruction)   # update global packages (in this example from nvm 6.13.1 - see begginning of this instruction)
   nvm reinstall-packages v6.13.1   nvm reinstall-packages v6.13.1
programming/javascript/nodejsinstall.1521215368.txt.gz · Востаннє змінено: 2018/03/16 17:49 повз charon