我正在尝试安装 urturn api 并为 urturn.com 编写我自己的表达式 关注http://webdoc.github.com/urturn-expression-api/#!guides/start
之后:
npm install urturn-toolbelt -g
我正在尝试运行沙箱:
ur sandbox
并出现错误:
-bash: ur: command not found
请帮忙
附注我使用的是 Mac 操作系统
谢谢
最佳答案
您的 nodeJS npm/bin 文件夹可能未包含在您的 PATH 中。
你能检查一下你的 PATH 变量吗?
Node NPM 包 bin 文件全部符号链接(symbolic link)在同一个 ./bin
文件夹中。如果您使用 Homebrew 安装 NodeJS (brew install node
),则它应该是 /usr/local/share/npm/bin
。
您可以使用以下命令回显当前路径:
echo $PATH
如果上面的文件夹没有出现在列表中,请检查您的 .bashrc 或 .bash_profile 文件并修复任何问题。
可能有效的修复方法是在 ~/.bash_profile 中添加以下行
PATH=$PATH:/usr/local/share/npm/bin
关于api - Urturn API : command not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15657457/