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

v0.4.2: Error: gyp_addon failed with exit code: 1 #62

Closed
aozora opened this issue May 14, 2012 · 2 comments
Closed

v0.4.2: Error: gyp_addon failed with exit code: 1 #62

aozora opened this issue May 14, 2012 · 2 comments

Comments

@aozora
Copy link

aozora commented May 14, 2012

using it with appjs, I got this error:

C:\Users\xxx\Downloads\milani-appjs-8660a8a>node-gyp rebuild
info it worked if it ends with ok
spawn python [ 'C:\Users\xxx.node-gyp\0.6.16\tools\gyp_addon',
'binding.gyp',
'-IC:\Users\xxx\Downloads\milani-appjs-8660a8a\build\config.gypi
',
'-f',
'msvs',
'-G',
'msvs_version=2010' ]
File "C:\Users\xxx.node-gyp\0.6.16\tools\gyp_addon", line 40
print 'Error running GYP'
^
SyntaxError: invalid syntax
ERR! Error: gyp_addon failed with exit code: 1
at ChildProcess.onCpExit (C:\Users\xxx\AppData\Roaming\npm\node_modu
les\node-gyp\lib\configure.js:228:16)
at ChildProcess.emit (events.js:70:17)
at maybeExit (child_process.js:362:16)
at Process.onexit (child_process.js:398:5)
ERR! not ok

@TooTallNate
Copy link
Contributor

Are you using Python 3? That version is unsupported. You need Python 2.7.

@jmanero
Copy link

jmanero commented May 14, 2012

Just got the following with Python 2.7.3:

C:\Users\John\projects\node-sync\node_modules\hook.io\node_modules\weak\build\w
eakref.vcxproj(1,682): error MSB4019: The imported project "C:\Microsoft.Cpp.De
fault.props" was not found. Confirm that the path in the <Import> declaration i
s correct, and that the file exists on disk.
ERR! Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed w
ith exit code: 1
    at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_
modules\node-gyp\lib\build.js:209:23)
    at ChildProcess.emit (events.js:70:17)
    at maybeExit (child_process.js:362:16)
    at Process.onexit (child_process.js:398:5)
ERR! not ok

As far as I can tell, this is originating from node-gyp as a result of an attempted install of node-weak on Windows 7.

@aozora aozora closed this as completed May 14, 2012
@Rohithzr Rohithzr mentioned this issue Jul 20, 2018
2 tasks
targos added a commit to targos/node-gyp that referenced this issue Aug 22, 2021
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

3 participants