Luck、Time

  • 主页
  • 小说鉴赏
  • 专业笔记
  • 个人简介
所有文章 友链 关于我

Luck、Time

  • 主页
  • 小说鉴赏
  • 专业笔记
  • 个人简介

composer-安装

2017-08-18

composer global require “fxp/composer-asset-plugin:~1.0.2”
composer install –ignore-platform-reqs
出现问题:
“yii2mod/yii2-braintree”: “^1.0”,
“yii2mod/yii2-enum”: “~1.4”,

强制合并

git fetch –all
git reset –hard origin/master

设置中国镜像

中国镜像
配合 composer的config设置。

1
2
3
4
5
6
7
8
9
10
11
step1.通过 composer config -l -g 命令可以列出 composer 的全局配置信息,在这些信息中查找 [home] 配置项就是 composer 的主目录。然后vim config.json 修改配置。
{
"config": {
},
"repositories": [
{"type": "composer", "url": "https://packagist.phpcomposer.com"},
{"packagist": false}
]
}

step2.修改yii项目或者 laravel 项目的composer.json 文件 。

1
2
3
4
5
6
7
8
9
10
11
12
13
(老式写法)
"repositories": [
{"type": "composer",
"url": "https://packagist.phpcomposer.com"},
{"packagist": false}
],
或者这样
"repositories": {
"packagist": {
"type": "composer",
"url": "https://packagist.phpcomposer.com"
}
}

{
“config”: {},
“repositories”: {
“packagist”: {
“type”: “composer”,
“url”: “https://packagist.phpcomposer.com“
}
}
}

1
2
3
4
file_put_contents(/Users/liujian/.composer/cache/repo/https---packagist.phpcomposer.com/provider-doctrine$lexer.json): failed to open stream: Permission denied
https://packagist.phpcomposer.com could not be fully loaded, package information was loaded from the local cache and may be out of date
file_put_contents(/Users/liujian/.composer/cache/repo/https---packagist.phpcomposer.com/provider-doctrine$lexer.json): failed to open stream: Permission denied
https://packagist.phpcomposer.com could not be fully loaded, package information was loaded from the local cache and may be out of date
赏

感谢对我的支持,让我们一起努力吧

谢谢你哦
  • PHP
  • 专业笔记

扫一扫,分享到微信

微信分享二维码
祭祀相关网站分析
网上祭扫的优势分析
Like Issue Page
Error: Comments Not Initialized
Login with GitHub
Styling with Markdown is supported
Powered by Gitment
© 2017 Luck、Time
Hexo Theme Yilia by Litten
  • 所有文章
  • 友链
  • 关于我

tag:

  • Html
  • jquery
  • Mysql
  • PHP
  • Weather
  • GTM
  • GA
  • Hexo
  • ionic
  • 推广
  • 接口集合
  • Wordpress
  • Map
  • 插件集合
  • 日记
  • fighting
  • 自学
  • 安卓
  • 小程序
  • wepy
  • 抓包
  • 祭祀
  • 知识总结
  • 小说鉴赏
  • 太宰治
  • 梭罗
  • 美句

    缺失模块。
    1、请确保node版本大于6.2
    2、在博客根目录(注意不是yilia根目录)执行以下命令:
    npm i hexo-generator-json-content --save

    3、在根目录_config.yml里添加配置:

      jsonContent:
        meta: false
        pages: false
        posts:
          title: true
          date: true
          path: true
          text: false
          raw: false
          content: false
          slug: false
          updated: false
          comments: false
          link: false
          permalink: false
          excerpt: false
          categories: false
          tags: true
    

  • 友情链接1
  • 友情链接2
  • 友情链接3
  • 友情链接4
  • 友情链接5
  • 友情链接6