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

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


programming:javascript:nodejsinstall

Розбіжності

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

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

Порівняння попередніх версій Попередня ревізія
Наступна ревізія
Попередня ревізія
programming:javascript:nodejsinstall [2018/03/16 17:51]
charon [Update nodejs]
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 
programming/javascript/nodejsinstall.1521215480.txt.gz · Востаннє змінено: 2018/03/16 17:51 повз charon