info it worked if it ends with ok
spawn python [ '/root/.node-gyp/0.6.18/tools/gyp_addon',
'binding.gyp',
'-I/home/domains/website.com/public/node_modules/mysql-libmysqlclient/build/config.gypi',
'-f',
'make' ]
Traceback (most recent call last):
File "/root/.node-gyp/0.6.18/tools/gyp_addon", line 14, in ?
import gyp
File "/usr/lib/nodejs/node-gyp/legacy/tools/gyp/pylib/gyp/init.py", line 8, in ?
import gyp.input
File "/usr/lib/nodejs/node-gyp/legacy/tools/gyp/pylib/gyp/input.py", line 14, in ?
import gyp.common
File "/root/.node-gyp/0.6.18/tools/gyp/pylib/gyp/common.py", line 373
with open(source_path) as source_file:
^
SyntaxError: invalid syntax
ERR! Error: gyp_addon failed with exit code: 1
at ChildProcess.onCpExit (/usr/lib/nodejs/node-gyp/lib/configure.js:226:16)
at ChildProcess.emit (events.js:70:17)
at maybeExit (child_process.js:362:16)
at Process.onexit (child_process.js:398:5)
ERR! not ok
npm ERR! mysql-libmysqlclient@1.5.1 install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the mysql-libmysqlclient@1.5.1 install script.
npm ERR! This is most likely a problem with the mysql-libmysqlclient package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls mysql-libmysqlclient
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.18-308.8.2.el5xen
npm ERR! command "nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/domains/website.com/public
npm ERR! node -v v0.6.18
npm ERR! npm -v 1.1.19
npm ERR! code ELIFECYCLE
npm ERR! message mysql-libmysqlclient@1.5.1 install: node-gyp rebuild
npm ERR! message sh "-c" "node-gyp rebuild" failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/domains/website.com/public/npm-debug.log
npm not ok
Hi,
I'm trying to install it on another server:
But i'm having below error, can you tell me what did I do wrong?
npm http GET https://registry.npmjs.org/mysql-libmysqlclient/1.5.1 npm http 304 https://registry.npmjs.org/mysql-libmysqlclient/1.5.1
info it worked if it ends with ok spawn python [ '/root/.node-gyp/0.6.18/tools/gyp_addon', 'binding.gyp', '-I/home/domains/website.com/public/node_modules/mysql-libmysqlclient/build/config.gypi', '-f', 'make' ] Traceback (most recent call last): File "/root/.node-gyp/0.6.18/tools/gyp_addon", line 14, in ? import gyp File "/usr/lib/nodejs/node-gyp/legacy/tools/gyp/pylib/gyp/init.py", line 8, in ? import gyp.input File "/usr/lib/nodejs/node-gyp/legacy/tools/gyp/pylib/gyp/input.py", line 14, in ? import gyp.common File "/root/.node-gyp/0.6.18/tools/gyp/pylib/gyp/common.py", line 373 with open(source_path) as source_file: ^ SyntaxError: invalid syntax ERR! Error:
gyp_addon
failed with exit code: 1 at ChildProcess.onCpExit (/usr/lib/nodejs/node-gyp/lib/configure.js:226:16) at ChildProcess.emit (events.js:70:17) at maybeExit (child_process.js:362:16) at Process.onexit (child_process.js:398:5) ERR! not oknpm ERR! mysql-libmysqlclient@1.5.1 install:
node-gyp rebuild
npm ERR!sh "-c" "node-gyp rebuild"
failed with 1 npm ERR! npm ERR! Failed at the mysql-libmysqlclient@1.5.1 install script. npm ERR! This is most likely a problem with the mysql-libmysqlclient package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls mysql-libmysqlclient npm ERR! There is likely additional logging output above. npm ERR! npm ERR! System Linux 2.6.18-308.8.2.el5xen npm ERR! command "nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/domains/website.com/public npm ERR! node -v v0.6.18 npm ERR! npm -v 1.1.19 npm ERR! code ELIFECYCLE npm ERR! message mysql-libmysqlclient@1.5.1 install:node-gyp rebuild
npm ERR! messagesh "-c" "node-gyp rebuild"
failed with 1 npm ERR! errno {} npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/domains/website.com/public/npm-debug.log npm not ok