Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows install issues #163

Closed
onecrane opened this issue Jan 4, 2017 · 5 comments
Closed

Windows install issues #163

onecrane opened this issue Jan 4, 2017 · 5 comments

Comments

@onecrane
Copy link

onecrane commented Jan 4, 2017

This may be a question more than an issue, but I'm having a devil of a time with getting iconv to install, and I'm not finding any list of its install dependencies to determine if I'm missing anything. I'm on Windows 10, node 4.4.7, npm 3.8.6, node-gyp 3.4.0. Not sure if any of those are going to be the culprit. It doesn't have to be iconv 2.2.1, as long as there's some version that works with pdffiller - haven't been able to determine version dependencies from their package either.

I have a lot of information around the issue, and no clue what's relevant. Would be very grateful for assistance in getting this resolved. Thanks!

@bnoordhuis
Copy link
Owner

The only dependency is a working C++ compiler. If you have VS 2013/2015 or MS Build Tools installed, you should be good to go. VS 2012 and older won't cut it, they don't support C++11.

@onecrane
Copy link
Author

onecrane commented Jan 9, 2017

I wish I was more knowledgeable to help narrow the problem down, but I'm pretty new to Node and npm, and don't want to uselessly speculate. I've got VS 2015, but I still see issues when I try to install it. The important-looking lines are:

"C:\Users\steve\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c(34): error C2373: '
__pfnDliNotifyHook2': redefinition; different type modifiers [C:\d\ShipmentWizard\api\node_modules\iconv\build\iconv.vc
xproj]"

"npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'."

Have attached the debug log per this instruction:

"npm ERR! Please include the following file with any support request:
npm ERR! C:\d\ShipmentWizard\api\npm-debug.log"

npm-debug.txt

@bnoordhuis
Copy link
Owner

You seem to be using an old version of node-gyp, try upgrading it to v3.4.0. That error was fixed in nodejs/node-gyp#952.

@onecrane
Copy link
Author

onecrane commented Jan 9, 2017

Looks like npm 3.8.6 is clobbering node-gyp 3.4.0 with 3.3.1, which may be the issue. Now to find what version of npm has node-gyp 3.4.0 - don't suppose there's an easy way to discover that?

@onecrane
Copy link
Author

onecrane commented Jan 9, 2017

I think I got it working with some install hacking. Looks like npm doesn't really live with nodejs in Windows, so installing node-gyp 3.4.0 globally didn't affect npm's bundled version in AppData/Roaming. Installed node-gyp globally, copied it and all its dependencies from node_modules in Program Files/nodejs to npm's node_modules folder over in AppData, looks to be working now.

I'm guessing that npm plays nicer with Windows in more recent versions... ;)

Thanks for your help!

@onecrane onecrane closed this as completed Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants