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

node-gyp.js windows error #4

Open
dhenriet opened this issue Feb 8, 2016 · 2 comments
Open

node-gyp.js windows error #4

dhenriet opened this issue Feb 8, 2016 · 2 comments

Comments

@dhenriet
Copy link

dhenriet commented Feb 8, 2016

Hi,
I am on windows 8.1, node 5.1.0,
when I launch the installation I have an error with "node-gyp.js". I think I need to install "Visual C++ "VCBuild.exe"" ? (I had same problem with Browser-sync, but I decide to use the comand line instead of gulp)

screenshot_1

@auchenberg
Copy link
Member

I don't know much about Windows, but this seems to be the solution:
nodejs/node-gyp#629 (comment)

OR

https://www.robertkehoe.com/2015/03/fix-node-gyp-rebuild-error-on-windows/

@mamged
Copy link

mamged commented Mar 24, 2018

@auchenberg also in macOs
fatal error: too many errors emitted, stopping now [-ferror-limit=] 12 warnings and 20 errors generated. make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/m/.nvm/versions/node/v9.3.0/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:159:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Darwin 17.4.0
gyp ERR! command "/Users/m/.nvm/versions/node/v9.3.0/bin/node" "/Users/m/.nvm/versions/node/v9.3.0/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/m/.nvm/versions/node/v9.3.0/lib/node_modules/remotedebug-gateway/node_modules/bufferutil
gyp ERR! node -v v9.3.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok

[email protected] install /Users/m/.nvm/versions/node/v9.3.0/lib/node_modules/remotedebug-gateway/node_modules/canvas
node-gyp rebuild

Package zlib was not found in the pkg-config search path.
Perhaps you should add the directory containing zlib.pc' to the PKG_CONFIG_PATH environment variable Package 'zlib', required by 'libpng', not found gyp: Call to './util/has_lib.sh freetype' returned exit status 0 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gypfailed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/Users/m/.nvm/versions/node/v9.3.0/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at ChildProcess.emit (events.js:159:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12) gyp ERR! System Darwin 17.4.0 gyp ERR! command "/Users/m/.nvm/versions/node/v9.3.0/bin/node" "/Users/m/.nvm/versions/node/v9.3.0/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/m/.nvm/versions/node/v9.3.0/lib/node_modules/remotedebug-gateway/node_modules/canvas gyp ERR! node -v v9.3.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/remotedebug-gateway/node_modules/bufferutil): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install:node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/m/.npm/_logs/2018-03-24T10_38_52_599Z-debug.log`

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

3 participants