Giter VIP home page Giter VIP logo

Comments (21)

billyriantono avatar billyriantono commented on June 19, 2024 2

Sorry for the nan problem ... i have removed from package.json but i am miss in one file have been updated in [email protected]

from pokemon-go-node-api.

SzymonLisowiec avatar SzymonLisowiec commented on June 19, 2024
sudo apt-get install build-essential
npm install -g pokemon-go-node-api

This working for me.

from pokemon-go-node-api.

LASkuma avatar LASkuma commented on June 19, 2024

The build-essential doesn't work for me. It's already installed and still cannot pass s2geometry-node build.

from pokemon-go-node-api.

kfernandes29 avatar kfernandes29 commented on June 19, 2024

I still can't figure this out either. In the mean time, what I did was

npm install --save [email protected]

from pokemon-go-node-api.

cypherix93 avatar cypherix93 commented on June 19, 2024

It's an issue on Windows machines. @billyriantono said he would look for a fix. Right now we are kinda stumped on Windows.

Meanwhile, try booting up a linux VM and see if it npm installs.

from pokemon-go-node-api.

vekexasia avatar vekexasia commented on June 19, 2024

I've some issues with "isnan has not been declared"

from pokemon-go-node-api.

FabioAntunes avatar FabioAntunes commented on June 19, 2024

I'm on linux and I'm getting this:

module.js:327
    throw err;
    ^

Error: Cannot find module 'nan'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at [eval]:1:1
    at Object.exports.runInThisContext (vm.js:54:17)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:409:26)
    at node.js:579:27
    at nextTickCallbackWith0Args (node.js:420:9)
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/home/fabio/.nvm/versions/node/v4.4.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.19.0-65-generic
gyp ERR! command "/home/fabio/.nvm/versions/node/v4.4.0/bin/node" "/home/fabio/.nvm/versions/node/v4.4.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/fabio/playground/gomap/node_modules/s2geometry-node
gyp ERR! node -v v4.4.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok 

I have also tested with node 5.9.1 and 6.3.1

from pokemon-go-node-api.

vekexasia avatar vekexasia commented on June 19, 2024

@FabioAntunes try with

sudo npm install -g nan

Youi'll have nan but it won't compile either way

from pokemon-go-node-api.

FabioAntunes avatar FabioAntunes commented on June 19, 2024

@vekexasia thanks for the tip, that doesn't work but I tried npm install nan to install it locally and it did compile

from pokemon-go-node-api.

vekexasia avatar vekexasia commented on June 19, 2024

shit. which linux are you on?

from pokemon-go-node-api.

FabioAntunes avatar FabioAntunes commented on June 19, 2024

Elementary OS, basically it's ubuntu 14.04 the weird thing is yesterday I tried this repo on this machine and everything worked fine. Then I created a new folder for a fresh project and suddenly it didn't compile anymore

from pokemon-go-node-api.

vekexasia avatar vekexasia commented on June 19, 2024

i'm on 16.04 and it just don't work :(

from pokemon-go-node-api.

FabioAntunes avatar FabioAntunes commented on June 19, 2024

@vekexasia you are not the only one, @LASkuma had the same problem d-pollard/Pokemon-GO-node-api@526d671#commitcomment-18350298

from pokemon-go-node-api.

kfernandes29 avatar kfernandes29 commented on June 19, 2024

Can I build it on my Mac for a windows machine?

from pokemon-go-node-api.

Luzifix avatar Luzifix commented on June 19, 2024

i have to problems with s2geometery.

console: http://pastebin.com/Xvu53Ts1
npm-log: http://pastebin.com/MShX1K4T
System: Ubuntu 14.04
Node: 6.3.0
NPM: 3.8.8

from pokemon-go-node-api.

FunkeDope avatar FunkeDope commented on June 19, 2024

I couldn't get it to build on Ubuntu 16.04 on my Chromebook, but it did build okay on a 15.04 VM I have on my desktop...

from pokemon-go-node-api.

billyriantono avatar billyriantono commented on June 19, 2024

@Luzifix have you try npm install s2geometry-node ?

from pokemon-go-node-api.

Luzifix avatar Luzifix commented on June 19, 2024

@billyriantono Same error :(
i install build-essential but this not really help.

from pokemon-go-node-api.

Luzifix avatar Luzifix commented on June 19, 2024

After reinstall node & npm on linux it works fine :)

from pokemon-go-node-api.

IHFF12 avatar IHFF12 commented on June 19, 2024

In my case, the problem was Windows. I have Visual Studio 2016, so that could be part of the issue.

I made a Virtual Box for Ubuntu and I got the API running in under 10 minutes. I highly recommend using Virtual Box for developing anyway. Linux is the best!

Edit: I run Ubuntu 16.0. I didn't have to install build-essential.

from pokemon-go-node-api.

coolaj86 avatar coolaj86 commented on June 19, 2024

Fixed in #165 by using pure JavaScript - no C++ or compiler necessary.

from pokemon-go-node-api.

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.