【问题标题】:Using Composer in Cpanel在 Cpanel 中使用 Composer
【发布时间】:2020-03-02 02:57:03
【问题描述】:

我正在尝试制作一个 Wordpress 插件,我想继续使用 composer。由于作曲家预装在​​ cPanel 中,我没有安装其他任何东西。我的插件位于 /gg/example/example-plugin.php。但是当我输入我的终端作曲家 init 然后我的包名(/)时,我插入(gg/example),但我得到错误The package name )(gg/example) is invalid, it should be lowercase and have a vendor name, a forward slash, and a package name, matching: [a-z0-9_.-]+/[a-z0-9_.-] 有谁知道为什么?

【问题讨论】:

  • 你真的使用gg/example作为你的包名吗?
  • @KoalaYeung 不,我用 gg 和 example 替换了它们,但概念相同
  • 恐怕我们需要实际的包字符串来调试您的问题。我认为使用 gg/example 不会导致此错误,但您的实际包名可能会。

标签: php wordpress composer-php cpanel


【解决方案1】:

所以我不小心选错了存放处。 这就是问题所在

【讨论】:

    猜你喜欢
    • 2014-08-21
    • 1970-01-01
    • 1970-01-01
    • 2018-09-15
    • 2014-07-29
    • 2021-07-28
    • 1970-01-01
    • 2013-10-12
    • 2019-07-04
    相关资源
    最近更新 更多