{"action":"closed","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/551","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/551/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/551/events","html_url":"https://github.com/lovell/sharp/issues/551","id":173391050,"number":551,"title":"node-gpy install error","user":{"login":"natural-law","id":488169,"avatar_url":"https://avatars.githubusercontent.com/u/488169?v=3","gravatar_id":"","url":"https://api.github.com/users/natural-law","html_url":"https://github.com/natural-law","followers_url":"https://api.github.com/users/natural-law/followers","following_url":"https://api.github.com/users/natural-law/following{/other_user}","gists_url":"https://api.github.com/users/natural-law/gists{/gist_id}","starred_url":"https://api.github.com/users/natural-law/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natural-law/subscriptions","organizations_url":"https://api.github.com/users/natural-law/orgs","repos_url":"https://api.github.com/users/natural-law/repos","events_url":"https://api.github.com/users/natural-law/events{/privacy}","received_events_url":"https://api.github.com/users/natural-law/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lovell/sharp/labels/question","name":"question","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-26T07:49:47Z","updated_at":"2016-09-19T08:02:50Z","closed_at":"2016-09-19T08:02:50Z","body":"I have this issue when I try to install sharp package:\r\n```\r\n> npm install sharp --verbose\r\n...\r\ngyp verb get node dir target node version installed: 6.4.0\r\ngyp verb build dir attempting to create \"build\" dir: /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/sharp/build\r\ngyp verb build dir \"build\" dir needed to be created? /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/sharp/build\r\ngyp verb build/config.gypi creating config file\r\ngyp verb build/config.gypi writing out config file: /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/sharp/build/config.gypi\r\ngyp verb config.gypi checking for gypi file: /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/sharp/config.gypi\r\ngyp verb common.gypi checking for gypi file: /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/sharp/common.gypi\r\ngyp verb gyp gyp format was not specified; forcing \"make\"\r\ngyp info spawn /usr/local/bin/python2\r\ngyp info spawn args [ '/Users/cocos2d-x/.node/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',\r\ngyp info spawn args   'binding.gyp',\r\ngyp info spawn args   '-f',\r\ngyp info spawn args   'make',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/sharp/build/config.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/Users/cocos2d-x/.node/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/Users/cocos2d-x/.node-gyp/6.4.0/include/node/common.gypi',\r\ngyp info spawn args   '-Dlibrary=shared_library',\r\ngyp info spawn args   '-Dvisibility=default',\r\ngyp info spawn args   '-Dnode_root_dir=/Users/cocos2d-x/.node-gyp/6.4.0',\r\ngyp info spawn args   '-Dnode_gyp_dir=/Users/cocos2d-x/.node/lib/node_modules/npm/node_modules/node-gyp',\r\ngyp info spawn args   '-Dnode_lib_file=node.lib',\r\ngyp info spawn args   '-Dmodule_root_dir=/Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/sharp',\r\ngyp info spawn args   '--depth=.',\r\ngyp info spawn args   '--no-parallel',\r\ngyp info spawn args   '--generator-output',\r\ngyp info spawn args   'build',\r\ngyp info spawn args   '-Goutput_dir=.' ]\r\nWarning: Although Homebrew has added initial recognition of 10.11, it is unsupported.\r\nYou may encounter breakage or other failure and there is no guarantee\r\nHomebrew can resolve those issues until El Capitan is stable.\r\n\r\ngyp: Call to 'which brew >/dev/null 2>&1 && eval $(brew --env) && echo $PKG_CONFIG_LIBDIR || true' returned exit status 0 while in binding.gyp. while trying to load binding.gyp\r\ngyp ERR! configure error \r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onCpExit (/Users/cocos2d-x/.node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)\r\ngyp ERR! stack     at emitTwo (events.js:106:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:191:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)\r\ngyp ERR! System Darwin 15.5.0\r\ngyp ERR! command \"/usr/local/bin/node\" \"/Users/cocos2d-x/.node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/sharp\r\ngyp ERR! node -v v6.4.0\r\ngyp ERR! node-gyp -v v3.2.1\r\ngyp ERR! not ok \r\nnpm verb lifecycle sharp@0.16.0~install: unsafe-perm in lifecycle true\r\nnpm verb lifecycle sharp@0.16.0~install: PATH: /Users/cocos2d-x/.node/lib/node_modules/npm/bin/node-gyp-bin:/Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/sharp/node_modules/.bin:/Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/.bin:/Applications/Cocos/Cocos2d-x:/Users/cocos2d-x/.node/bin:/Users/cocos2d-x/MyWork/cocos2d-x/cocos2d-x/templates:/Applications/Cocos/frameworks:/usr/local/bin:/Users/cocos2d-x/MyWork/cocos2d-x/cocos2d-x/tools/cocos2d-console/bin:/Users/cocos2d-x/MyWork/android/sdk/tools:/Users/cocos2d-x/MyWork/android/sdk/platform-tools:/Users/cocos2d-x/MyWork/android/sdk:/Users/cocos2d-x/MyWork/android/android-ndk-r10c:/Users/cocos2d-x/MyWork/tools/repo-tools:/Users/cocos2d-x/MyWork/tools:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Library/TeX/texbin:/Users/cocos2d-x/MyWork/tizen-sdk/tools/ide/bin\r\nnpm verb lifecycle sharp@0.16.0~install: CWD: /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/sharp\r\nnpm info lifecycle sharp@0.16.0~install: Failed to exec install script\r\nnpm verb unlock done using /Users/cocos2d-x/.npm/_locks/staging-d3233f4567d35fae.lock for /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/.staging\r\ncustom-protocol@1.0.0 /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol\r\n└── bcrypt@0.8.7  extraneous\r\n\r\nnpm WARN custom-protocol@1.0.0 No description\r\nnpm WARN custom-protocol@1.0.0 No repository field.\r\nnpm WARN custom-protocol@1.0.0 No license field.\r\nnpm verb stack Error: sharp@0.16.0 install: `node-gyp rebuild`\r\nnpm verb stack Exit status 1\r\nnpm verb stack     at EventEmitter.<anonymous> (/Users/cocos2d-x/.node/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)\r\nnpm verb stack     at emitTwo (events.js:106:13)\r\nnpm verb stack     at EventEmitter.emit (events.js:191:7)\r\nnpm verb stack     at ChildProcess.<anonymous> (/Users/cocos2d-x/.node/lib/node_modules/npm/lib/utils/spawn.js:24:14)\r\nnpm verb stack     at emitTwo (events.js:106:13)\r\nnpm verb stack     at ChildProcess.emit (events.js:191:7)\r\nnpm verb stack     at maybeClose (internal/child_process.js:852:16)\r\nnpm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)\r\nnpm verb pkgid sharp@0.16.0\r\nnpm verb cwd /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol\r\nnpm ERR! Darwin 15.5.0\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/Users/cocos2d-x/.node/bin/npm\" \"install\" \"sharp\" \"--verbose\"\r\nnpm ERR! node v6.4.0\r\nnpm ERR! npm  v3.6.0\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! sharp@0.16.0 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the sharp@0.16.0 install script 'node-gyp rebuild'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the sharp package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs sharp\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls sharp\r\nnpm ERR! There is likely additional logging output above.\r\nnpm verb exit [ 1, true ]\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/npm-debug.log\r\n```\r\n\r\nAlso I found [this issue](https://github.com/lovell/sharp/issues/163). And I've test installing `bcrypt`. It's all right. The log is:\r\n```\r\n(node:83066) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.\r\n\r\n> bcrypt@0.8.7 install /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol/node_modules/bcrypt\r\n> node-gyp rebuild\r\n\r\n  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o\r\n  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o\r\n  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o\r\n  SOLINK_MODULE(target) Release/bcrypt_lib.node\r\ncustom-protocol@1.0.0 /Users/cocos2d-x/MyWork/cocos-creator-repos/cocos-creator-stable/editor-framework/example-apps/custom-protocol\r\n└── bcrypt@0.8.7  extraneous\r\n```\r\n\r\nCould you please give me some help? Thanks very much!"}}
{"actor":{"display_login":"lovell"}}