Comments (21)
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.
sudo apt-get install build-essential
npm install -g pokemon-go-node-api
This working for me.
from pokemon-go-node-api.
The build-essential doesn't work for me. It's already installed and still cannot pass s2geometry-node build.
from pokemon-go-node-api.
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.
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.
I've some issues with "isnan has not been declared"
from pokemon-go-node-api.
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.
@FabioAntunes try with
sudo npm install -g nan
Youi'll have nan but it won't compile either way
from pokemon-go-node-api.
@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.
shit. which linux are you on?
from pokemon-go-node-api.
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.
i'm on 16.04 and it just don't work :(
from pokemon-go-node-api.
@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.
Can I build it on my Mac for a windows machine?
from pokemon-go-node-api.
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.
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.
@Luzifix have you try npm install s2geometry-node ?
from pokemon-go-node-api.
@billyriantono Same error :(
i install build-essential but this not really help.
from pokemon-go-node-api.
After reinstall node & npm on linux it works fine :)
from pokemon-go-node-api.
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.
Fixed in #165 by using pure JavaScript - no C++ or compiler necessary.
from pokemon-go-node-api.
Related Issues (20)
- Cannot get coordinates of nearby/map pokemon
- [Question] How to get pokemon attacks ? HOT 3
- Cannot find module 'request' HOT 1
- Inventory parameter of GetInventory is null HOT 1
- EvolvePokemon : error regarding cp_multiplier HOT 2
- Refresh Token when user log in with Google HOT 2
- Launch Berry? HOT 2
- self.GetApiEndpoint doesn't work HOT 3
- Capture pokemon
- Unable to host project
- CatchPokemon return null!! HOT 1
- Error when building with webpack
- Get Pokemon Coords
- Wrong values in MapPokemon.ExpirationTimeMs
- api 0.39
- pogo.GetProfile throws exception after successful login HOT 2
- Cannot authenitcate with Google, even with App Password HOT 2
- Getting null/rpc
- maybe beginner's mistake HOT 1
- Translate Documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pokemon-go-node-api.