我正在尝试使用 AWS Elastic Beanstalk 部署使用 webpacker gem 创建的 rails 5.1 和 react 应用程序。问题是我不断收到以下错误:
Webpacker requires Node.js >= 6.0.0 and you are using 4.6.0
我在我的电脑上使用 Node 9.5.0。有什么建议??
最佳答案
对于那些还需要安装 Yarn 的人,我发现以下内容对我有用:
commands:
01_install_yarn:
command: "sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo && curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash - && sudo yum install yarn -y"
02_download_nodejs:
command: curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
03_install_nodejs:
command: yum -y install nodejs
关于ruby-on-rails - 在 AWS 弹性 beantalk 上使用 webpacker gem 部署 rails react 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48798846/