简体   繁体   English

我无法安装laravel 5.2版本

[英]I can not install laravel 5.2 version

I want to install new project with 5.2 version but I am getting this error continuously. 我想安装5.2版的新项目,但我不断收到此错误。

Warning: require(C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap\\autoload.php on line 17 警告:require(C:\\ Users \\ user \\ Desktop \\ laravelPractice \\ bootstrap /../ vendor / autoload.php):无法打开流:C:\\ Users \\ user \\ Desktop \\ laravelPractice \\ bootstrap中没有此类文件或目录\\ autoload.php在第17行

Fatal error: require(): Failed opening required 'C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap/../vendor/autoload.php' (include_path='C:\\xampp\\php\\PEAR') in C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap\\autoload.php on line 17 PHP Warning: require(C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap\\autoload.php on line 17 PHP Fatal error: require(): Failed opening required 'C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap/../vendor/autoload.php' (include_path='C:\\xampp\\php\\PEAR') in C:\\Users\\user\\Desktop\\laravelPractice\\bootstrap\\autoload.php on line 17 Script php artisan clear-compiled handling the pre-update-cmd event returned with error code 255 致命错误:require():无法在C中打开必需的'C:\\ Users \\ user \\ Desktop \\ laravelPractice \\ bootstrap /../ vendor / autoload.php'(include_path ='C:\\ xampp \\ php \\ PEAR'):第17行PHP上的\\ Users \\ user \\ Desktop \\ laravelPractice \\ bootstrap \\ autoload.php警告:require(C:\\ Users \\ user \\ Desktop \\ laravelPractice \\ bootstrap /../ vendor / autoload.php):无法打开流:第17行PHP的C:\\ Users \\ user \\ Desktop \\ laravelPractice \\ bootstrap \\ autoload.php中没有此类文件或目录,致命错误:require():无法打开所需的'C:\\ Users \\ user \\ Desktop \\ laravelPractice \\ bootstrap / ../vendor/autoload.php'(include_path ='C:\\ xampp \\ php \\ PEAR')在第17行的C:\\ Users \\ user \\ Desktop \\ laravelPractice \\ bootstrap \\ autoload.php中返回pre-update-cmd事件,错误代码为255

It's Look like storage permission problem. 看起来是存储许可问题。

Permissions for storage 存储权限

We also need to set correct permissions for storage files in the server. 我们还需要为服务器中的存储文件设置正确的权限。 So, we need to give a write permission in the storage directory as follows: 因此,我们需要在存储目录中授予写权限,如下所示:

$ chmod -R 777 ./storage ./bootstrap

or you may use 或者你可以使用

$ sudo chmod -R 777 ./storage ./bootstrap

For windows 对于窗户

Make sure you are an admin user on that computer with writeable access 确保您是该计算机上具有可写访问权限的管理员用户

xampp\htdocs\laravel\app\storage needs to be writable

Hope it helped you!. 希望它对您有所帮助!

You need to use composer to install the vendor components. 您需要使用作曲家来安装供应商组件。 Ie run the following command from the Laravel directory, providing you have composer already installed: 即从Laravel目录运行以下命令,前提是您已经安装了作曲家:

composer install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM