我正在尝试使用 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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)