如果在bash中安装了nvm (Node Version Manager),我如何确定? 我已经在我的系统中安装了它,但是我还不能创建任何可以检测到它的bash脚本。我正在制作一个其他人应该使用的脚本,它依赖于nvm,所以如果它没有安装,我想输出它,如果它没有安装,我想退出。这不起作用:https://stackoverflow.com/a/26759734/846348它说nvm没有安装,但是bash
我试着运行sudo apt-get install npm,它返回下面的对话框。我如何解决这个问题?requested an impossible situation or if you are using the unstableor been moved out of Incoming.
The following info
我检查了是否安装了发出nvm的which nvm,它没有工作:/usr/bin/which: no nvm in (/home/ec2-user我检查了.bashrc of ec2-user以确定是否正确地导出了nvm (如此中所建议的):
# User specific aliases and funct