- Источник
- https://enigmaprod.net/
Установка:
$ cd /var/www/pterodactyl
$ apt install npm
$ curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
$ export NVM_DIR="$HOME/.nvm"
$ [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
$ [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
$ nvm install 16
$ npm i -g yarn
$ yarn add cross-env
$ yarn run build:production
$ cd /var/www/pterodactyl
$ apt install npm
$ curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
$ export NVM_DIR="$HOME/.nvm"
$ [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
$ [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
$ nvm install 16
$ npm i -g yarn
$ yarn add cross-env
$ yarn run build:production