本文介绍了的Mac OS终端:无法对全球环境得到作曲家的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我一直在试图建立我的甲基苯丙胺和Laravel,但停留在让作曲家工作。

So I have been trying to setup my MAMP and Laravel but stuck at getting the composer to work.

我已经安装了甲基苯丙胺,我用下面的命令:

I have installed MAMP, and I use the command:

卷曲-sS https://getcomposer.org/installer | PHP

和我试图运行

PHP composer.phar

一切正常为止。

然后,当我试图把作曲家到我的全局路径(我假设以下行做它)

Then when I tried to put composer into my global path (I assume the following line does it)

MV composer.phar在/ usr / local / bin目录/作曲家

我收到此错误

MV:重命名composer.phar到/ usr / local / bin目录/作曲:没有这样的文件或目录

我试过 MV composer.phar在/ usr / local / bin目录以及它给出了同样的错误。

I tried mv composer.phar /usr/local/bin as well it gives the same error.

下面是我的回声$ PATH
的/ usr / bin中:/ bin中:/ usr / sbin目录:/ sbin目录:在/ usr / local / bin目录

在解决这个任何指针?呵呵,Mac的新秀这里。

Any pointers on resolving this? Oh, Mac Rookie here.

推荐答案

确保的/ usr / local / bin目录存在。这就是当目标目录不存在,你得到错误。

Make sure that /usr/local/bin exists. That's the error that you get when the target directory doesn't exist.

这篇关于的Mac OS终端:无法对全球环境得到作曲家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 08:52
查看更多