drupal8安装第三方模块 Address的辛酸历程

初学drupal有很多的迷茫,Git为何物 brush为何物,no

电商购物网站初建采用

 Drupal Commerce

Drupal Commerce currently depends on Drupal 7 (>= 7.15) with the latest releases of a few modules: Ctools 1.9Views 3.13Entity API 1.7Rules 2.9, and Address field 1.2.

在安装Address时可是费了不少劲:

首先:安装Address要先用composer安装资源库

        1. Add the Drupal.org repository

     composer config repositories.drupal composer https://packages.drupal.org/8

        This allows Composer to find Address and the other Drupal modules.

       2. Download Address

     composer require "drupal/address ~1.0"

        This will download the latest release of Address.
        Use 1.x-dev instead of ~1.0 to get the -dev release instead.
        Use composer update drupal/address --with-dependencies to update Address to a new release.

1、在安装资源库前要先安装composer,windows下的安装很简单,下载Composer-Setup.exe文件双击安装即可

2、安装git,大家可以通过两种方式获取Git的软件,一个是在官网(link is external)上获取,另一个可以点击这里(link is external)下载。

3、安装好git和composer后切忌一定要cd 定位到composer.json所在的目录下运行Address的安装命令

安装好资源库后,Address模块就可以顺利安装了

盲目 摸索中浪费了我两天的时间,欠缺高人指点呀。

 

posted on 2017-05-04 11:36  李玎  阅读(321)  评论(0编辑  收藏  举报