2017-10-24 5 views
1

나는 Nodejs를 설치하고 더 AWS 탄성 콩 줄기에 "NPM 실행 생산"을 실행에 문제가 있어요. 지금 configs를 쓰고 있지만 여러 번 시도했지만 그들은 nodejs를 설치할 수 없다. AWS EB 확장을 사용하여 Vuejs 구성 요소를 컴파일하려면 어떻게해야합니까?

내가 수동으로 원격 컴퓨터에 SSHing 실행 노드를 설치하려고 :
" sudo는 냠 nodejs NPM --enablerepo-EPEL 설치 -y"I를

있지만 설치 노드 v0.10을 한 후 "NPM 실행 자극을"(나는 Laravel 농가는 기본적으로 노드 v6.11을 사용하기 때문에 즉 추측 실행할 수 없습니다 나는이와

답변

0

만들기 새로운 elastic beanstalk configuration file :.

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'

이것은 Elastic Beanstalk Servers의 64bit Amazon Linux 2017.03 v2.5.0 running PHP 7.1에서 작동합니다.