首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Elastic Beanstalk上安装nvm

在Elastic Beanstalk上安装nvm
EN

Stack Overflow用户
提问于 2017-11-29 01:37:40
回答 0查看 517关注 0票数 4

我正在尝试在我的Elastic Beanstalk实例上安装nvm,因为我们的rails应用程序需要节点6.9.5,当前该实例上存在节点4。我正在运行命令

代码语言:javascript
复制
01_node_install:
    command: "sudo yum install make glibc-devel gcc patch openssl-devel c++"
02_node_install:
    command: "curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | sh"
03_node_install:
    command: "source ~/.bash_profile"
04_node_install:
    command: "nvm install 6.9.5"
05_node_install:
    command: "nvm alias default 6.9.5"

我收到一个错误:

代码语言:javascript
复制
=> Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.
=> Create one of them and run this script again
OR
=> Append the following lines to the correct file yourself:

export NVM_DIR="/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
=> Close and reopen your terminal to start using nvm

对我来说奇怪的是,它说~/.bash_profile文件不存在,但我可以通过ssh进入实例并看到它。我试图将这些行回显到文件中,但得到了类似的错误。

任何帮助都将不胜感激!

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47537711

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档