【发布时间】:2014-06-27 21:41:48
【问题描述】:
我正在尝试让 yeoman/grunt 工作,但我认为我的路径或安装位置存在问题。当我运行 node -v 时,我得到: -bash:节点:找不到命令
我已经安装了一些东西,最初它看起来像是在工作。不知道是什么破坏了它,但现在它似乎不知道 nom、node 或 yo 是什么。
我认为我的 yo、npm、node、grunt、bower 文件安装在以下位置: 高清>用户>布赖恩>本地>斌>哟
node_modules 位于: 高清 > 用户 > 布赖恩 > 本地 > bin > node_modules
我的 .bashrc 文件中包含以下内容:
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export PATH=$HOME/local/bin:$PATH
.bash_profile 里面有这个:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
我现在的问题是,如果我的文件是全局安装的,那么它们应该安装在哪里,其次这些 .bash_profile 和 .bashrc 文件是否正确?
非常感谢您对此提供的任何帮助!
【问题讨论】: