如何在yii1项目中安装Composer.json?
我有一个现有的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', '{', '['
是的,当然,我已经阅读了作曲家的官方文档:
但是我找不到如何运行作曲家安装。
谢谢
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:
But I can't find how I then can run composer install.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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