2017-10-24 1 views
1

Ich habe Probleme bei der Installation von NodeJS und weiter "npm run Produktion" auf AWS Elastic Beanstalk läuft. Ich schreibe gerade die configs und habe mehrere versucht, aber sie erlauben mir nicht, nodejs zu installieren.Wie kompiliere ich Vuejs-Komponenten mit AWS EB-Erweiterungen?

Ich versuchte Knoten manuell SSHing auf dem Remote-Computer und läuft zu installieren:
"sudo yum -y NodeJS npm --enablerepo-EPEL installieren"

aber es installiert v0.10 Knoten und dann habe ich ist nicht in der Lage "npm run prod" (ich denke, das liegt daran, dass Laravel Homestead nutzt Knoten v6.11 standardmäßig läuft

Antwort

0

ein neues elastic beanstalk configuration file mit diesem erstellen.

container_commands: 01_install_gcc: command: 'yum install -y gcc-c++ make' 02_download_node: command: "curl -sL https://rpm.nodesource.com/setup_6.x | bash -E" 03_install_node: command: 'yum install -y nodejs' 04_install_node_modules: command: 'npm install --save-dev cross-env' 05_run_production: command: 'npm run production'

Dies funktioniert für die 64bit Amazon Linux 2017.03 v2.5.0 running PHP 7.1 Elastic Beanstalk Server.