Code Monkey home page Code Monkey logo

Comments (6)

LightAMV avatar LightAMV commented on September 3, 2024

I need help too man

from pokemon-go-iv.

aisbergde avatar aisbergde commented on September 3, 2024

I get the same errors, only my node and npm versions are higher:
gyp ERR! node -v v6.3.1
gyp ERR! node-gyp -v v3.3.1
npm ERR! npm v3.10.3

from pokemon-go-iv.

aisbergde avatar aisbergde commented on September 3, 2024

to solve my issue i tryed as described here:
https://github.com/nodejs/node-gyp#installation
...
On Windows:
Option 1: Install all the required tools and configurations using Microsoft's windows-build-tools using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator).

what I did:
npm install --global --production windows-build-tools

npm install -g node-gyp
npm install node-gyp@latest

but the issue is still not solved on windows
after windows-build-tools there was some progress, a lot of yellow warnings, but finally a red error:

win_delay_load_hook.c
C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c(34): error C2373: '__pfnDliNot
ifyHook2': redefinition; different type modifiers [C:\Users\Germo\AppData\Roaming\npm\node_modules\pokemon-go-iv\node_m
odules\s2geometry-node\build\NativeExtension.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\delayimp.h(134): note: see declaration of '__pfnDliNot
ifyHook2'
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Germo\AppData\Roaming\npm\node_modules\pokemon-go-iv\node_modules\s2geometry-node
gyp ERR! node -v v6.3.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
C:\Users\Germo\AppData\Roaming\npm
`-- (empty)

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "pokemon-go-iv"
npm ERR! node v6.3.1
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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 s2geometry-node package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs s2geometry-node
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls s2geometry-node
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\Git_Repositories\pokemon-journal\npm-debug.log
npm ERR! code 1

D:\Git_Repositories\pokemon-journal>

from pokemon-go-iv.

aisbergde avatar aisbergde commented on September 3, 2024

The idea was also to update node-gyp, I tried

npm uninstall node-gyp
npm install -g node-gyp@latest

after installing it is showing
`-- [email protected]

but when I run

npm uninstall pokemon-go-iv
npm install -g pokemon-go-iv

the error is showing that an older version of node-gyp is used:

gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Germo\AppData\Roaming\npm\node_modules\pokemon-go-iv\node_modules\s2geometry-node
gyp ERR! node -v v6.3.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok

How can I force to use the node-gyp 3.4.0?

from pokemon-go-iv.

aisbergde avatar aisbergde commented on September 3, 2024

After installing the latest node-gyp
npm install -g node-gyp@latest

I replaced the content of
C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp
containing node-gyp -v v3.3.1
by
C:\Users\Germo\AppData\Roaming\npm\node_modules\node-gyp
containing node-gyp -v v3.4.0

Why there are different npm\node_modules on my system? Isn't there a different way? I don't know, but after this replacement I was able to install
npm install -g pokemon-go-iv
I got a lot of yellow warnings, but finaly it is here:
C:\Users\Germo\AppData\Roaming\npm\node_modules\pokemon-go-iv

Now I can run the pokemon-go-iv
It dosn't work, but this is another issue

from pokemon-go-iv.

billyvg avatar billyvg commented on September 3, 2024

Not sure of windows directories, but -g means to install globally, so one of those directories is the global one. It looks like you have it working, but you could just wipe all node_modules directories, go to a new directory somewhere, npm install pokemon-go-iv and it'll install the package in<current dir>\node_modules\pokemon-go-iv and you can run it via `node .\node_modules\pokemon-go-iv\bin\app'

from pokemon-go-iv.

Related Issues (16)

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.