mysql - Error when trying to run Node.js Ubuntu project in Mac: -


i working node.js, express.js , sqlite3 create small website. have developed project in ubuntu , have been trying work in mac also.

but after svn checkout repository folder of project, , try run app.js file following error:

module.js:356   module._extensions[extension](this, filename);                            ^  error: dlopen(/users/cs205g1s13/bs/baby_skype_less/node_modules/sqlite3/build/release/node_sqlite3.node, 1): no suitable image found.  did find: /users/cs205g1s13/bs/baby_skype_less/node_modules/sqlite3/build/release/node_sqlite3.node: unknown file type, first 8 bytes: 0x7f 0x45 0x4c 0x46 0x02 0x01 0x01 0x00 @ module.load (module.js:356:32) @ function.module._load (module.js:312:12) @ module.require (module.js:364:17) @ require (module.js:380:17) @ object.<anonymous> (/users/cs205g1s13/bs/baby_skype_less/node_modules/sqlite3/lib/sqlite3.js:1:104) @ module._compile (module.js:456:26) @ object.module._extensions..js (module.js:474:10) @ module.load (module.js:356:32) @ function.module._load (module.js:312:12) @ module.require (module.js:364:17) 

the website works fine on ubuntu. , also, mac computer has node.js, sqlite3. of why happening appreciated.


i removed node_modules svn repository, , svn checkout project folder mac computer. when npm install sqlite3 following errors:

$ npm install sqlite3  npm warn package.json application-name@0.0.1 no readme.md file found! npm http https://registry.npmjs.org/sqlite3 npm http 304 https://registry.npmjs.org/sqlite3 

sqlite3@2.1.7 install /users/cs205g1s13/bs/playing/node_modules/sqlite3 node-gyp rebuild

traceback (most recent call last): file "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp", line 15, in <module> import gyp file "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module> import gyp.input file "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 15, in <module> import multiprocessing importerror: no module named multiprocessing gyp err! configure error  gyp err! stack error: `gyp` failed exit code: 1 gyp err! stack     @ childprocess.oncpexit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:415:16) gyp err! stack     @ childprocess.eventemitter.emit (events.js:98:17) gyp err! stack     @ process.childprocess._handle.onexit (child_process.js:784:12) gyp err! system darwin 11.4.2 gyp err! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-          gyp.js" "rebuild" gyp err! cwd /users/cs205g1s13/bs/playing/node_modules/sqlite3 gyp err! node -v v0.10.4 gyp err! node-gyp -v v0.9.5 gyp err! not ok  npm err! sqlite3@2.1.7 install: `node-gyp rebuild` npm err! `sh "-c" "node-gyp rebuild"` failed 1 npm err!  npm err! failed @ sqlite3@2.1.7 install script. npm err! problem sqlite3 package, npm err! not npm itself. npm err! tell author fails on system: npm err!     node-gyp rebuild npm err! can info via: npm err!     npm owner ls sqlite3 npm err! there additional logging output above.  npm err! system darwin 11.4.2 npm err! command "node" "/usr/local/bin/npm" "install" "sqlite3" npm err! cwd /users/cs205g1s13/bs/playing npm err! node -v v0.10.4 npm err! npm -v 1.2.18 npm err! code elifecycle npm err!  npm err! additional logging details can found in: npm err!     /users/cs205g1s13/bs/playing/npm-debug.log npm err! not ok code 0 

did check in node_modules folder svn? don't that. fix it, run npm rebuild on ubuntu box. sqlite uses extensions must compiled on host platform.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -