网站首页技术博客
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 安装及使用
- Centos7/8 关闭图形界面
- Mysql5.7先排序order by 后 group by,但是排序不生效
- 小程序 偶发 Illegal Buffer报错,encryptedData解密失败
- 正则表达式?元字符详解及使用案例
- laydate组件增加自定义按钮
- ajax跨域Access-Control-Allow-Origin
- apidoc自动化文档生成
- $GLOBALS["HTTP_RAW_POST_DATA"]含义及取不到值如何处理
- PHP两个traits中方法重名
- 修复苹果设备上button圆角问题