您的位置:首页 > 编程语言 > PHP开发

windows 安装laravel5.1常遇错误

2015-12-06 14:24 543 查看
先保证composer安装正确

如果出现could not open input file composer.phar

那么就配置环境变量,把C:\ProgramData\ComposerSetup\bin\composer.phar 加到path里

然后在运行cmd-》composer self-update,看看是否正确。

1.首先你要更新到最新版本:php composer.phar self-update

2.登录到Github https://github.com/settings/applications “generated a token”增加一个新的Token

3.运行cmd  php composer.phar config -g github-oauth.github.com token (token值为你新增的)


安装第一个项目前要运行

composer install prefer-dist


如果网页报错


No supported encrypter found. The cipher and / or key length are invalid.

先把 项目config文件夹下的app.php文件里
In config\app.php change:
'cipher' => 'whatever it is',
to
'cipher' => 'AES-256-CBC',
如果还不可以运行这个命令

php artisan  key:generate
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: