I cloned a site on github, and i had an error with the vendor folder because it wasn't be installed with composer install or update so i've copied the vendor folder from a fresh laravel project and i don't have anymore the followed error :
bootstrap/../vendor/autoload.php. Failed to open stream: No such file or directory. The "vendor" folder does not exist.
but when i'm going to the public folder of laravel, i've this error again:
Fatal error: Class 'Patchwork\Utf8\Bootup' not found in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\hguitare\laravel\bootstrap\autoload.php on line 46
I've tried to dump-autoload and composer update but nothing is working
I've also tried to add this line on the composer.json into required
"patchwork/utf8": "1.1.*"
Anyone can help me?
Try removing/commenting the 'Patchwork\Utf8\Utf8ServiceProvider' or the service provider related to this in config/app.php and then try installing by composer install
Related
So I've been following the official documentation to upgrade from Angular 5.2 to Angular 6.0 (I'm migrating an app to Angular 13).
When I run the command NG_DISABLE_VERSION_CHECK=1 npx #angular/cli#6 update #angular/cli#6 I've got no errors whatsoever:
$ NG_DISABLE_VERSION_CHECK=1 npx #angular/cli#6 update #angular/cli#6
npx : 336 installé(s) en 36.906s
Using package manager: 'npm'
Collecting installed dependencies...
Found 100 dependencies.
Fetching dependency metadata from registry...
UPDATE package.json (4717 bytes)
✔ Packages successfully installed.
This command is supposed to replace/migrate the angular-cli.json file to a new file called angular.json but when I look at my files I still have the old angular-cli.json file and not the new one.
I've tried a lot of suggestions found here and there on the internet and SO such as installing/reinstalling angular-cli, cleaning my cache, I tried to revert to a working commit, I tried the ng update #angular/cli --from={blah} --migrate-only command but nothing seems to work...
Any ideas?
Found a solution in the end by emptying my .npmrc file and running the command again
I am having a MERN website with 2 folders in the Github repo, client and backend. When I am turning on the react server the output page is showing an error as
Failed to compile
./src/components/Student/Student.jsx
Module not found: Can't resolve 'react-avatar' in '/MernCrudApp/client/src/components/Student'
This error occurred during the build time and cannot be dismissed.
To reproduce this error please follow the following steps.
Clone the repo
Go into the backend folder and write npm install in the terminal and then npm run start, and then enter the client folder and repeat the commands respectively.
There is no 'react-avatar' package in your client's package.json.
npm install react-package in this folder and you should be good.
I'm trying to install Ejabberd in the windows but getting the error that Error running post install script . I have tried version 20.04 and 20.02, in both the version I'm getting same error.
I have tried many options like
Install as an administrator
Uninstall then Goto C:\ProgramData\ejabberd\ and delete the ejabberd folder and reinstall.
Run postinstall.cmd file manually which is located in ejabberd\bin folder.
But none of them worked. Can anyone help me to solve this?
Error image: https://user-images.githubusercontent.com/46276226/84561409-b484e100-ad69-11ea-9c68-b5cc6b76c40b.PNG
I'm trying to install Laravel on my Windows 10, I have set composer in PATH.
The steps that I have executed were:
create a folder called laravel in htdocs folder of xampp C:\xampp\htdocs\Laravel, then I used
cd C:\xampp\htdocs\Laravel
to access this folder then I ran the command
composer create-project laravel/laravel Laravel
While installing, I got this error
[InvalidArgumentException] Composer could not find the config
file: C:\composer
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Try deleting the environment variable. Try Control Panel-->System-->Edit the system environment variables-->Environment variables-->composer-->delete
Then try to create the laravel project normally.
I have are project writed on php 7.1 https://github.com/triest/Yii-curse
When you run on the server PHP version 7.2, you get the error:
(W:\domains\Yii-curse\yii\basic\web/../vendor/autoload.php): failed to open stream: No such file or directory in W:\domains\Yii-curse\yii\basic\web\index.php on line 7
But these files are in place!
Your server pointing to right file but it is unable to find autoload.php in vendor, so make sure to double check.
As I can see you have composer.json on two places so probably you done composer install from wrong folder.