2016-08-24 75 views
0

最近我從github下載了代碼並嘗試安裝它。npm安裝錯誤(致命:壞對象f18e4d058698a689943db9cb41f767efbc2c85ed)

不過,我發現的過程中屁股錯誤如下:

[email protected]:~/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,

特里

回答

0

問題看起來像git的鏈接是錯誤的或指向的東西並不存在。如果您用您需要的bitcore-wallet-client版本替換它,應該可以解決問題。

舉例來說,我試圖NPM與此在的package.json文件安裝:

{ 
    "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 [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue 
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue 
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to [email protected]^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. 
npm WARN deprecated [email protected]: the module is now available as 'css-select' 
npm WARN deprecated [email protected]: the module is now available as 'css-what' 
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue 
npm WARN deprecated [email protected]: [email protected]<3.0.0 is no longer maintained. Upgrade to [email protected]^4.0.0. 

> [email protected] 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 
[email protected] /Users/phillipsc/code/temp/stackOverflow 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 

隨着中說,這是很難說在不知道package.json的發佈子部分來自何種回購的情況下,您將需要什麼。