如何在yii1项目中安装Composer.json?

发布于 2025-01-27 17:02:33 字数 503 浏览 3 评论 0原文

我有一个现有的YII1项目,但没有资产文件夹。因此,只有文件夹:CS,图像,受保护。

因此,我在根目录中仅制作了一个空的composer.json文件。我做了一个错误

composer install

,但后来又得到了这个错误:

 "./composer.json" does not contain valid JSON
  Parse error on line 1:

  ^
  Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['

是的,当然,我已经阅读了作曲家的官方文档:

https:// .org

但是我找不到如何运行作曲家安装。

谢谢

i have an existing Yii1 project but without the assets folder. So only the folders: css, images, protected.

So I made just an empty composer.json file in the root directory. And I did a

composer install

But then I get this error:

 "./composer.json" does not contain valid JSON
  Parse error on line 1:

  ^
  Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['

And yes, of course I have read the offical documentation for composer:

https://getcomposer.org

But I can't find how I then can run composer install.

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等往事风中吹 2025-02-03 17:02:33

Oke,我从GitHub使用了现有的Composer.json文件,用于yii1,现在已安装了供应商文件夹

Oke, I used a existing composer.json file for Yii1 from github and now it has installed the vendor folder

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文