Comments (16)
Try adding version constant when requiring package
(e. g. run composer require denpa/php-bitcoinrpc "^2.0"
)
If this doesn't help, try running composer clear-cache && composer update
.
from php-bitcoinrpc.
After I run the command ,It still shows the same error。
What should I do with it?
from php-bitcoinrpc.
when i try running composer update,it shows the error.like running composer resquire.
"Installation failed, reverting ./composer.json to its original content."
from php-bitcoinrpc.
OK. Can you please run composer --version
and post it's output here. I'll try to replicate your error.
from php-bitcoinrpc.
Composer version 1.6.5
我又遇到了一个麻烦,天呐
上午的时候我重新从git上下载了一份代码,然后重新composer,结果
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: denpa/php-bitcoinrpc[v2.0.0, dev-master].
- Can only install one of: denpa/php-bitcoinrpc[v2.0.1, dev-master].
- Can only install one of: denpa/php-bitcoinrpc[v2.0.2, dev-master].
- Can only install one of: denpa/php-bitcoinrpc[v2.0.3, dev-master].
- Installation request for denpa/php-bitcoinrpc dev-master -> satisfiable by denpa/php-bitcoinrpc[dev-master].
- Installation request for denpa/php-bitcoinrpc ^2.0 -> satisfiable by denpa/php-bitcoinrpc[v2.0.0, v2.0.1, v2.0.2, v2.0.3].
Installation failed, reverting ./composer.json to its original content.
虽然我根本没有装成功但是我尝试去删除这个依赖
但是它提示我
Package "denpa/php-bitcoinrpc" listed for update is not installed. Ignoring.
然后重新装勒composer但是还是没有用
我被困在这儿了
from php-bitcoinrpc.
I'm sorry, I'll say it again in English.
I have a trouble again, oh my god.
In the morning, I downloaded the code from GIT and restarted composer.the result is:
Your requirements could not be resolved to an installable set of packages.Problem 1
- Can only install one of: denpa/php-bitcoinrpc[v2.0.0, dev-master].
- Can only install one of: denpa/php-bitcoinrpc[v2.0.1, dev-master].
- Can only install one of: denpa/php-bitcoinrpc[v2.0.2, dev-master].
- Can only install one of: denpa/php-bitcoinrpc[v2.0.3, dev-master].
- Installation request for denpa/php-bitcoinrpc dev-master -> satisfiable by denpa/php-bitcoinrpc[dev-master].
- Installation request for denpa/php-bitcoinrpc ^2.0 -> satisfiable by denpa/php-bitcoinrpc[v2.0.0, v2.0.1, v2.0.2, v2.0.3].
Installation failed, reverting ./composer.json to its original content.
Although I didn't succeess, I tried to delete this dependency.
But it hints me:
Package "denpa/php-bitcoinrpc" listed for update is not installed. Ignoring.
So,i have to uninstall composer and Reinstall it ,but there is no use
what should i do?
I'm very confused
from php-bitcoinrpc.
To delete dependency, open composer.json
find 'require' section, that looks like this
"require": {
...
"denpa/php-bitcoinrpc": "...",
...
},
delete string that starts with "denpa/php-bitcoinrpc".
Finally delete composer.lock
file and run composer update
.
from php-bitcoinrpc.
If possible it's will also be great if you can post your composer.json
file here(at least "require" and "require-dev" section of it). If it contains any private information you can of course delete it.
from php-bitcoinrpc.
my composer.json file is the same as yours
from php-bitcoinrpc.
first,i delete string that starts with "denpa/php-bitcoinrpc". and delete composer.lock file
second,i composer update,It's normal.
third,i coomposer require denpa/php-bitcoinrpc,
the question continued;
composer.json file:
{
"name": "denpa/php-bitcoinrpc",
"type": "library",
"description": "Bitcoin JSON-RPC client based on GuzzleHttp",
"keywords": ["bitcoin","api","jsonrpc","guzzle"],
"homepage": "https://github.com/denpamusic/php-bitcoinrpc",
"license": "MIT",
"authors": [
{
"name": "Denis Paavilainen",
"email": "[email protected]",
"role": "Developer"
}
],
"require": {
},
"require-dev": {
"phpunit/phpunit": "^5.7 || ^6.4 || ^7.0"
},
"autoload": {
"psr-4" : {
"Denpa\\Bitcoin\\": "src"
},
"classmap" : [
"tests"
]
}
}
from php-bitcoinrpc.
I think this problem misleads me.
I'm stuck in it
from php-bitcoinrpc.
I want to help you, but I think you're using composer wrong as you're not supposed to download php-bitcoinrpc from github and then run composer on it. What you supposed to do, is to create your own project and then install php-bitcoinrpc via composer.
As this is probably your first time dealing with composer package I'll try to explain in detail. For this example I'm going to assume you work in linux environment.
- First create directory in which your project will reside, lets call it
myproject
:
mkdir myproject
- Then enter your newly created directory:
cd myproject
- Run
composer require denpa/php-bitcoinrpc "^2.0"
. You should get message "./composer.json has been created" and package will install with it's dependencies: - Then you can create first file(let's call it index.php) of your project and include composer-generated autoloader in it:
echo "<?php" > index.php && echo "require 'vendor/autoload.php';" >> index.php
- Now you can write your own code in index.php as described in examples in README file.
from php-bitcoinrpc.
It's very kind of you.I use it for the first time.I will do as you say.hope I am allowed to consult you in the future if I have any problem.
from php-bitcoinrpc.
Of course you can consult me anytime. I'll try to respond as fast as I can.
Although you'd probably want to use gitter for general support: https://gitter.im/php-bitcoinrpc/Lobby since it's not a issue with php-bitcoinrpc package itself.
from php-bitcoinrpc.
Thank you very much. Everything went well.
Let's get in touch later.
from php-bitcoinrpc.
Glad to help you! I'll close this issue as resolved then.
from php-bitcoinrpc.
Related Issues (20)
- Different requirements in README.md and in composer.json HOT 3
- Support multi-wallet RPC calls
- Linux 500 Internal Server Error when attempting to make request HOT 5
- Danger! Re-sends RPC call on failure HOT 4
- withdrawal Requests
- bitcoin.conf options HOT 6
- Batch support HOT 2
- ListTransactions HOT 4
- Supporting wallet passphrase in configs HOT 4
- How to create createrawtransaction i meet something wrong
- Command orders are important, whereas it shouldn't be on non-static usages.
- composer fails due to new Guzzle 7.0.1 with Laravel 7 HOT 2
- sendmany fails when passing valid json string HOT 4
- How library works HOT 1
- Method adrressbylabel response answer all directions HOT 1
- In simple HOT 3
- setaccount can only be used with own address
- Should not use set_exception_handler HOT 3
- How connect to third party RPC
- $bitcoind->sendToAddress and next steps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-bitcoinrpc.