How to fix? You need to install sqlite3.
root@vmkric58fa5:~# node -v v6.0.0 root@vmkric58fa5:~# npm install sqlite3 npm WARN update-linked node_modules/express needs updating to 4.15.3 from 4.15.3 but we can't, as it's a symlink
sqlite3@3.1.8 install /root/node_modules/sqlite3
node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.8/node-v48-linux-ia32.tar.gz node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.8 and node@6.0.0 (node-v48 ABI) (falling back to source compile with node-gyp) gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at Object.failNoPython (/root/node_modules/node-gyp/lib/configure.js:483:19) gyp ERR! stack
at Object. (/root/node_modules/node-gyp/lib/configure.js:397:16) gyp ERR! stack
at F (/root/node_modules/which/which.js:68:16) gyp ERR! stack at E (/root/node_modules/which/which.js:80:29) gyp ERR! stack at /root/node_modules/which/which.js:89:16 gyp ERR! stack at /root/node_modules/isexe/index.js:42:5 gyp ERR! stack at /root/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:117:15) gyp ERR! System Linux 2.6.32-042stab123.3 gyp ERR! command "/root/.nvm/versions/node/v6.0.0/bin/node" "/root/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/root/node_modules/sqlite3/lib/binding/node-v48-linux-ia32/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/root/node_modules/sqlite3/lib/binding/node-v48-linux-ia32" gyp ERR! cwd /root/node_modules/sqlite3 gyp ERR! node -v v6.0.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/root/.nvm/versions/node/v6.0.0/bin/node /root/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/root/node_modules/sqlite3/lib/binding/node-v48-linux-ia32/node_sqlite3.node --module_name=node_sqlite3 --module_path=/root/node_modules/sqlite3/lib/binding/node-v48-linux-ia32' (1) node-pre-gyp ERR! stack at ChildProcess. (/root/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:106:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:850:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5) node-pre-gyp ERR! System Linux 2.6.32-042stab123.3 node-pre-gyp ERR! command "/root/.nvm/versions/node/v6.0.0/bin/node" "/root/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /root/node_modules/sqlite3 node-pre-gyp ERR! node -v v6.0.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.31 node-pre-gyp ERR! not ok Failed to execute '/root/.nvm/versions/node/v6.0.0/bin/node /root/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/root/node_modules/sqlite3/lib/binding/node-v48-linux-ia32/node_sqlite3.node --module_name=node_sqlite3 --module_path=/root/node_modules/sqlite3/lib/binding/node-v48-linux-ia32' (1) npm WARN chat2@1.0.0 No description npm WARN chat2@1.0.0 No repository field. npm ERR! Linux 2.6.32-042stab123.3 npm ERR! argv "/root/.nvm/versions/node/v6.0.0/bin/node" "/root/.nvm/versions/node/v6.0.0/bin/npm" "install" "sqlite3" npm ERR! node v6.0.0 npm ERR! npm v3.8.6 npm ERR! code ELIFECYCLEnpm ERR! sqlite3@3.1.8 install:
node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@3.1.8 install script 'node-pre-gyp install --fallback-to-build'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the sqlite3 package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR!
node-pre-gyp install --fallback-to-build npm ERR! You can get information on how to open an issue for this project with: npm ERR!
npm bugs sqlite3 npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls sqlite3 npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! /root/npm-debug.log
via VINET
No comments:
Post a Comment