Coder Social home page Coder Social logo

Installation issue about node-geoip HOT 2 CLOSED

geoip-lite avatar geoip-lite commented on July 19, 2024
Installation issue

from node-geoip.

Comments (2)

sebthiriet avatar sebthiriet commented on July 19, 2024

Me too, on Ubuntu 14.04 / node 0.10.31

npm install geoip-lite
[email protected] postinstall /home/notifsrv/node_modules/geoip-lite
npm run-script updatedb
[email protected] updatedb /home/notifsrv/node_modules/geoip-lite
node scripts/updatedb.js

Retrieving GeoIPCountryCSV.zip ... DONE
Extracting GeoIPCountryCSV.zip ... DONE
Processing Data (may take a moment) ...Segmentation fault (core dumped)

npm ERR! [email protected] updatedb: node scripts/updatedb.js
npm ERR! Exit status 139
npm ERR!
npm ERR! Failed at the [email protected] updatedb script.
npm ERR! This is most likely a problem with the geoip-lite package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/updatedb.js
npm ERR! You can get their info via:
npm ERR! npm owner ls geoip-lite
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-32-generic
npm ERR! command "/home/notifsrv/.nvm/v0.10.31/bin/node" "/home/notifsrv/.nvm/v0.10.31/bin/npm" "run-script" "updatedb"
npm ERR! cwd /home/notifsrv/node_modules/geoip-lite
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/notifsrv/node_modules/geoip-lite/npm-debug.log
npm ERR! not ok code 0
npm ERR! [email protected] postinstall: npm run-script updatedb
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the geoip-lite package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run-script updatedb
npm ERR! You can get their info via:
npm ERR! npm owner ls geoip-lite
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.0-32-generic
npm ERR! command "/home/notifsrv/.nvm/v0.10.31/bin/node" "/home/notifsrv/.nvm/v0.10.31/bin/npm" "install" "geoip-lite"
npm ERR! cwd /home/notifsrv
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE
npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR! { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.13.0-32-generic
npm ERR! command "/home/notifsrv/.nvm/v0.10.31/bin/node" "/home/notifsrv/.nvm/v0.10.31/bin/npm" "install" "geoip-lite"
npm ERR! cwd /home/notifsrv
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/notifsrv/npm-debug.log
npm ERR! not ok code 0

from node-geoip.

Tarang avatar Tarang commented on July 19, 2024

This issue, earlier, was caused by insufficient memory. This script has quite a heavy memory requirement to get it installed.

Using a swap file solved it.

from node-geoip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.