网站首页技术博客
Yii安装提示
摘要Could not fetch https://api.github.com/repos/jquery/jquery-dist, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+PC-Dtshy+2016-06-27+1812
to retrieve a token. It will be stored in "C:/Users/Administ
yii官网的安装指令
php composer.phar global require "fxp/composer-asset-plugin:~1.1.1"
现在选择的应用程序模板之一,开始安装 Yii 2.0。应用程序模板是一个包含Yii写的骨架Web应用程序包。
-
安装基本的应用程序模板,运行下面的命令:
php composer.phar create-project yiisoft/yii2-app-basic basic 2.0.8
-
安装高级的应用程序模板,运行下面的命令:
php composer.phar create-project yiisoft/yii2-app-advanced advanced 2.0.8
这是针对没有composer客户端的情况,需要下载composer.phar文件,下载地址https://getcomposer.org/composer.phar
如果已经安装过composer客户端用下面命令即可
composer global require "fxp/composer-asset-plugin:~1.1.1"
composer create-project yiisoft/yii2-app-basic basic 2.0.8
或者
composer create-project yiisoft/yii2-app-advanced advanced 2.0.8
Yii安装报错出现:
Could not fetch https://api.github.com/repos/jquery/jquery-dist, please create a GitHub OAuth token to go over the API rate limit Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+PC-Dtshy+2016-06-27+1812 to retrieve a token. It will be stored in "C:/Users/Administrator/AppData/Roaming/Composer/auth.json" for future use by Composer. Token (hidden):
安装需要access_token
解决办法:注册github账号,个人中心->setting中添加access_token,添加后会显示access_token复制填入即可,这个access_token只可看到一次
相关文章
- Access denied; you need (at least one of) the SUPER privilege(s) for this operatio
- rm: cannot remove `file': Operation not permitted解决方法 chattr命令详解
- easywechat报错:Failed to cache access token
- chrome模拟微信浏览器的user agent
- jQuery打印插件jqprint
- 实现页面图片的延时异步加载
- 微信小程序登录流程
- mysql General error: 1267 Illegal mix of collations错误
- 基于general_log的mysql日志追踪
- linux nvm 安装及使用
- linux安装之后,环境变量不生效
- Linux 下文件的解压
- nginx 负载均衡服务器的简单配置
- Mysql子查询不支持limit解决办法
- 3 个PHP 知识总结:Memcache、缓存和正则
- nginx安装
- 另一个程序已锁定文件的一部分,进程无法访问 打不开磁盘“.vmdk”或它所依赖的某个快照磁盘的解决方案
- GII生成代码进行分页
- Validate 表单验证
- Linux切换用户