Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

property 'statusCode' of undefined: in npm install #643

Closed
rogerlzp opened this issue Jun 4, 2018 · 2 comments
Closed

property 'statusCode' of undefined: in npm install #643

rogerlzp opened this issue Jun 4, 2018 · 2 comments

Comments

@rogerlzp
Copy link

rogerlzp commented Jun 4, 2018

Hey,

There is an error happened when install it in my Env.
Env details:
MAC High Sierra
npm: n6.1.0
node: v10.2.1

There error log:
Downloading https://dist.ipfs.io/go-ipfs/v0.4.15/go-ipfs_v0.4.15_darwin-amd64.tar.gz
/Users/zhengpingli/work/ipfs/ipfs-desktop/ipfs-desktop/node_modules/go-ipfs-dep/src/index.js:102
if (res.statusCode !== 200) {
^

TypeError: Cannot read property 'statusCode' of undefined
at Request.request.get [as _callback] (/Users/zhengpingli/work/ipfs/ipfs-desktop/ipfs-desktop/node_modules/go-ipfs-dep/src/index.js:102:15)
at self.callback (/Users/zhengpingli/work/ipfs/ipfs-desktop/ipfs-desktop/node_modules/request/request.js:185:22)
at Request.emit (events.js:182:13)
at Request.onRequestError (/Users/zhengpingli/work/ipfs/ipfs-desktop/ipfs-desktop/node_modules/request/request.js:877:8)
at ClientRequest.emit (events.js:182:13)
at TLSSocket.socketErrorListener (_http_client.js:382:9)
at TLSSocket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! go-ipfs-dep@0.4.15 install: node src/bin.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the go-ipfs-dep@0.4.15 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/zhengpingli/.npm/_logs/2018-06-04T05_26_10_250Z-debug.log

Looks like some error happened in the js file.
Anyone who met before can give a tip on how to resolve this?

@hacdias
Copy link
Member

hacdias commented Aug 4, 2018

Could you try the latest release and see if there is any error now?

@hacdias
Copy link
Member

hacdias commented Nov 14, 2018

Closing as unrelated to the newer version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants