'Could not find package laravel-laravel with stability stable
When trying to create a project on Ubuntu 16.04 with PHP 7, I am getting the following error:
Could not find package laravel-laravel with stability stable
Whats the solution for that?

Solution 1:[1]
you have a typo , use this
composer create-project --prefer-dist laravel/laravel test
Solution 2:[2]
It's not laravel-laravel, it's laravel/laravel.
You use vendor/package-name with composer.
# composer info -a laravel/laravel
name : laravel/laravel
descrip. : The Laravel Framework.
keywords : framework, laravel
versions : dev-master, v5.2.31, v5.2.29, v5.2.27, v5.2.24, v5.2.23, v5.2.15, v5.2.0, 5.1.x-dev, v5.1.33, v5.1.11, v5.1.4, v5.1.3, v5.1.1, v5.1.0, 5.0.x-dev, v5.0.22, v5.0.16, v5.0.1, v5.0.0, v4.2.11, v4.2.0, v4.1.27, v4.1.18, v4.1.0, v4.0.9, v4.0.8, v4.0.7, v4.0.6, v4.0.5, v4.0.4, v4.0.0, v4.0.0-BETA4, v4.0.0-BETA3, dev-develop
type : project
license : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
source : [git] https://github.com/laravel/laravel.git 47d7e2d490c969a91d8aaad735bf36b5dba53bfa
dist : [zip] https://api.github.com/repos/laravel/laravel/zipball/47d7e2d490c969a91d8aaad735bf36b5dba53bfa 47d7e2d490c969a91d8aaad735bf36b5dba53bfa
names : laravel/laravel
autoload
classmap
database
psr-4
App\ => app/
requires
php >=5.5.9
laravel/framework 5.2.*
requires (dev)
phpunit/phpunit ~4.0
fzaninotto/faker ~1.4
mockery/mockery 0.9.*
symfony/css-selector 2.8.*|3.0.*
symfony/dom-crawler 2.8.*|3.0.*
Solution 3:[3]
1- create folder larvel in xammp/htdocs
2 start command prompt window (CMD) or terminal from the the new path
3-type that command line / terminal :
composer create-project laravel/laravel --prefer-dist firstapp
4- type in CMD / terminal cd(name of your project[firstap])
5-run in localhost:8000 by typeing in CMD / terminal
php artisan serve
6-Hold 60 sec untill folders downloading in your machine
Solution 4:[4]
I was using composer to require lavarel/lumen, and I have met the same problem for I have wrong command spell, like this: wrong command
composer global require "laravel/lumen-installer"
the right command is this: correct command
composer global require "lavarel/lumen-installer"
Solution 5:[5]
Is in this way:
composer create-project --prefer-dist laravel/laravel [proyect_name]
Solution 6:[6]
I tried all answers here but none of them worked for me, I changed PHP version to 7.4 instead of 8.0 and it worked like a charm.
Solution 7:[7]
The version of your PHP is old, in order to increase the PHP version up to 7.0 try to install the new version of XAMPP.
Solution 8:[8]
Try this:
composer create-project laravel/laravel yourNameProject "5.5.*"
Solution 9:[9]
it's for composer, nothing else. If composer version is 2 then convert it to version 1.easy way to solve this problem is ,delete the composer folder from your system and re install it. download from here: https://getcomposer.org/
Solution 10:[10]
Hi friends I recently encountered this problem one of the causes of this error is the erasure of temporary files in the temporary folder by using computer cleaner software I suggest you install the project once again
Solution 11:[11]
composer create-project laravel/laravel test
You should try to change this slash
Solution 12:[12]
you got to upgrade your PHP version, the latest one,
Solution 13:[13]
Alright so I know It's been a while, but I was trying to figure out the same thing and I couldn't find a good, conclusive answer anywhere. I've finally gotten something to work with WinRT in Python 3.9 so I wanted there to be an answer somewhere that people could find!
So to start, I'm not intimately familiar with how the 'arguments' attribute works, but it doesn't seem to be important for at least simple use cases. Most of what I know came from the Windows Toast docs. Here's some code that should produce a notification and open your Documents folder when you click the button. I got a headstart from an answer in this thread but it was missing some very important steps.
import os,sys,time
import subprocess
import threading
import winrt.windows.ui.notifications as notifications
import winrt.windows.data.xml.dom as dom
# this is not called on the main thread!
def handle_activated(sender, _):
path = os.path.expanduser("~\Documents")
subprocess.Popen('explorer "{}"'.format(path))
def test_notification():
#define your notification as
tString = """
<toast duration="short">
<visual>
<binding template='ToastGeneric'>
<text>New notifications</text>
<text>Text</text>
<text>Second text</text>
</binding>
</visual>
<actions>
<action
content="Test Button!"
arguments=""
activationType="foreground"/>
</actions>
</toast>
"""
#convert notification to an XmlDocument
xDoc = dom.XmlDocument()
xDoc.load_xml(tString)
notification = notifications.ToastNotification(xDoc)
# add the activation token.
notification.add_activated(handle_activated)
#create notifier
nManager = notifications.ToastNotificationManager
#link it to your Python executable (or whatever you want I guess?)
notifier = nManager.create_toast_notifier(sys.executable)
#display notification
notifier.show(notification)
duration = 7 # "short" duration for Toast notifications
# We have to wait for the results from the notification
# If we don't, the program will just continue and maybe even end before a button is clicked
thread = threading.Thread(target=lambda: time.sleep(duration))
thread.start()
print("We can still do things while the notification is displayed")
if __name__=="__main__":
test_notification()
The key thing to note here is that you need to find a way to wait for the response to the notification, since the notification is handled by a different thread than the program that produces it. This is why your "www.google.com" example worked while others didn't, because it didn't have anything to do with the Python program.
There's likely a more elegant solution, but a quick and easy way is to just create a Python thread and wait there for a duration. This way it doesn't interfere with the rest of your program in case you need to be doing something else. If you want your program to wait for a response, use time.sleep(duration) without all the threading code to pause the whole program.
I'm not sure how it works exactly, but it seems like the add_activated function just assigns a callback handler to the next available block in the XML. So if you wanted to add another button, my guess is that you can just do add_activated with another callback handler in the same order as you've listed your buttons.
Edit: I played around with it some and it turns out this lets you click anywhere, not just on the button. Not sure where to go from there but it's worth a heads up.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
