最近,我从github下载了代码并尝试安装。
然而,我在下面的过程中发现了错误:
terrylai@Terrys-MacBook-Pro:~/copay$ npm install
npm ERR! git rev-list -n1 f18e4d058698a689943db9cb41f767efbc2c85ed: fatal: bad object f18e4d058698a689943db9cb41f767efbc2c85ed
npm ERR! git rev-list -n1 f18e4d058698a689943db9cb41f767efbc2c85ed:
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.4.0
npm ERR! npm v3.10.3
npm ERR! code 128以下是package.json的一部分。谁能告诉我怎么解决这个问题?
"dependencies": {
"bitcore-wallet-client": "git://github.com/digibyte/bitcore-wallet-client.git#32b2f6434d1d4a77d4878d7dee9cf374086c3966",
"express": "^4.11.2",
"fs": "0.0.2",
"grunt": "^0.4.5",
"grunt-angular-gettext": "^0.2.15",
"grunt-browserify": "^4.0.1",
"grunt-cli": "^0.1.13",
"grunt-contrib-compress": "^0.13.0",
"grunt-contrib-concat": "^0.5.1",
"grunt-contrib-copy": "^0.8.1",
"grunt-contrib-uglify": "^0.9.2",
"grunt-contrib-watch": "^0.6.1",
"grunt-exec": "^0.4.6",
"shelljs": "^0.3.0"
},BR
泰瑞
发布于 2016-09-10 12:40:47
这个问题看起来像是git链接错误或者指向了不存在的东西。如果您将其替换为所需的bitcore-wallet-client版本,则应该可以解决此问题。
例如,我在package.json文件中使用以下代码尝试npm install:
{
"name": "best bitcoin service",
"version": "1.0.0",
"description": "please no npm errs",
"dependencies": {
"bitcore-wallet-client": "1.3.0",
"express": "^4.11.2",
"fs": "0.0.2",
"grunt": "^0.4.5",
"grunt-angular-gettext": "^0.2.15",
"grunt-browserify": "^4.0.1",
"grunt-cli": "^0.1.13",
"grunt-contrib-compress": "^0.13.0",
"grunt-contrib-concat": "^0.5.1",
"grunt-contrib-copy": "^0.8.1",
"grunt-contrib-uglify": "^0.9.2",
"grunt-contrib-watch": "^0.6.1",
"grunt-exec": "^0.4.6",
"shelljs": "^0.3.0"
},
}安装成功,但出现以下警告:
npm install
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
> fsevents@1.0.14 install /Users/phillipsc/code/temp/stackOverflow/node_modules/fsevents
> node-pre-gyp install --fallback-to-build
[fsevents] Success: "/Users/phillipsc/code/temp/stackOverflow/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node" is installed via remote
brocoin@1.0.0 /Users/phillipsc/code/temp/stackOverflow
├─┬ bitcore-wallet-client@1.3.0
│ ├── async@0.9.2
│ ├─┬ bip38@1.4.0
│ │ ├── bigi@1.4.2话虽如此,如果不知道package.json发布的repo小节来自于什么,就很难确切地说出您需要什么。
https://stackoverflow.com/questions/39114856
复制相似问题