Linux安装t-get后,还是不能用tget

以下是全过程,难道还缺少些步骤么?
[root@localhost t-get]# npm install -g t-get
/root/755/node-v6.11.3-linux-x64/bin/tget -> /root/755/node-v6.11.3-linux-x64/lib/node_modules/t-get/app.js
/root/755/node-v6.11.3-linux-x64/lib
└── t-get@1.1.0

[root@localhost t-get]# t-get -v
-bash: t-get: 未找到命令
[root@localhost t-get]# tegt -v
-bash: tegt: 未找到命令
[root@localhost t-get]# tget --help
-bash: tget: 未找到命令
[root@localhost t-get]#
以下是原址:
https://github.com/jeffjose/tget

阅读 4.1k
1 个回答

你的系统PATH设置有问题
编辑~/.bash_profile,最后面添加

export PATH=$PATH:nodejs路径/bin
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题