Runtime Exception - Repository not found - laravel-5

With and old laravel 5.5 project i am having this problem.
A package I was using has been removed from github and when i try composer install I get:
[RuntimeException]
Failed to execute git clone --mirror 'https://***:***#github.com/dangeroustry/FattureCloud.git' '/home/mir
co/.cache/composer/vcs/https---github.com-dangeroustry-FattureCloud.git/'
Cloning into bare repository '/home/username/.cache/composer/vcs/https---github.com-dangeroustry-FattureCloud
.git'...
remote: Repository not found.
fatal: repository 'https://github.com/dangeroustry/FattureCloud.git/' not found
So I tried to remove this package with composer remove vendor/package but I can't remove it.
When i run the command
composer remove vendor/kiboko/fatture-cloud-laravel/
I get this error
[Composer\Downloader\TransportException]
The "https://api.github.com/repos/dangeroustry/FattureCloud/zipball/4c4133a965985c1b8c6e41bbfb47ec912a167681" file could not be downlo
aded (HTTP/2 404 )
How to solve this loop?

Related

Go install command show 404 error when trying to install module from github

I developed a go module and pushed it to github, when I am trying to install it with the go install command its showing
go: downloading github.com/hvuhsg/lokidbServer v0.0.0-20220825205442-250079f3d6e9
go: github.com/hvuhsg/lokidbServer/cmd/lokidb.go#latest: github.com/hvuhsg/lokidbServer#v0.0.0-20220825205442-250079f3d6e9: verifying module: github.com/hvuhsg/lokidbServer#v0.0.0-20220825205442-250079f3d6e9: reading https://sum.golang.org/lookup/github.com/hvuhsg/lokidb!server#v0.0.0-20220825205442-250079f3d6e9: 404 Not Found
server response:
not found: github.com/hvuhsg/lokidbServer#v0.0.0-20220825205442-250079f3d6e9: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/023bef7fbf7701c1dd80019746ac35a6d71aa94fa9b3961e0dadef371238a56e: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
P.S: the repo is public
The full command is
go install github.com/hvuhsg/lokidbServer/cmd/lokidb.go#latest
You can install it like this:
go install github.com/hvuhsg/lokidbServer/cmd#latest
If the repo is yours, I would recommend adding a folder lokidb to the cmd folder, and put the main package inside of it.
Check this repo as an example:
go install github.com/fraugster/parquet-go/cmd/csv2parquet#latest
Another option is to add a file to the root of the directory, like its done here (in this case, the package inside go.mod is defined as github.com/vektra/mockery/v2):
go install github.com/vektra/mockery/v2#latest

Error while cloning GitHub COSMOS Repository. (GO)

i want to clone and install a GitHub repository but get an error.
git clone https://github.com/bandprotocol/chain
cd chain && git checkout v2.3.0
make install
Result:
..\go\pkg\mod\github.com\rcrowley\go-metrics#v0.0.0-20200313005456-10cdbea86bc0\runtime.go:5:2: found packages pprof (elf.go) and proto (proto.go) in C:\Users\user\go\GO Language\src\runtime\pprof
make: *** [Makefile:24: install] Error 1
If i delete for example one file he takes the next two out of this folder.
Thanks for help and answers

Failing to install Spark in an existing laravel project

I have an existing laravel project where I want to install spark.
I have a spark licence.
When I add the following in composer.json
"repositories": [
{
"type": "composer",
"url": "https://spark-satis.laravel.com"
}
],
And add the following dependency in composer.json's require section
"laravel/spark-aurelius": "~7.0",
The next step is to run composer update : During this process I provide token generated from github and it is where the installation fails with the following message:
Downloading (failed) Failed to download laravel/spark-aurelius from dist: The "https://api.github.com/repos/laravel/spark-aurelius/zipball/15585c1e0407623cb218f556144928a380949e9c" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
And composer fails to clone the github repo (laravel-/spark-aurelius)
This exception is thrown
[RuntimeException]
Failed to execute git clone --no-checkout "https://***:***#github.com/laravel/spark-aurelius.git" "C:\laragon\www\test\vendor\laravel\spark-aurelius" && cd
/D "C:\laragon\www\test\vendor\laravel\spark-aurelius" && git remote add composer "https://***:***#github.com/laravel/spark-aurelius.git" && git fetch com
poser
How can I fix this issue

Error while trying to create a Laravel project - OpenSSL Error messages:Failed to enable crypto

I've been struggling to create a Laravel project for hours, I've searched a lot and I couldn't figure out a solution for this problem. I hope someone had the same problem before or know how can I solve this.
Here we go:
I'm trying to create a simple project in composer through this command:
laravel new blog
And also tried this one:
composer create-project --prefer-dist laravel/laravel blog
And I'm getting this error:
$ laravel new blog --force
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 67 installs, 0 updates, 0 removals
- Installing erusev/parsedown (1.7.1): Downloading (failed)
Downloading (failed)
Downloading (failed)
Failed to download erusev/parsedown from dist: The
"https://api.github.com/repos/erusev/parsedown/zipball/92e9c27ba0e74b8b028b111d1b6f956a15c01fc1"
file could not be downloaded: SSL operation failed with code 1.
OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
Does anyone know how to solve this?
Thanks a lot in advance.

How to configure the Laravel built-in web server?

I am running this command:
C:\xampp\htdocs\notebook>php artisan serve
However I get this error:
Warning: require(C:\xampp\htdocs\notebook\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\notebook\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\notebook\bootstrap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\notebook\bootstrap\autoload.php on line 17
After creating a project or cloning existing one you should run composer install command which will install all dependecies and will create autoload.php file.
That is an import error.
Everytime you have one of these, you should try to run composer dump-autoload.
Most of the time, this command will fix your imports.
It looks like you might not have installed the required dependencies yet. You should do so using the composer package manager, like so:
C:\ProgramData\ComposerSetup\bin\composer install

Resources