node-jqueryを機能させようとしています。contextifyは依存関係の1つです(jsdomに必要です)。
contextifyは、Pythonを使用して何らかの方法で構築する必要があります。しかし、これはWindows7x64では機能しないようです。少なくとも1台の私のコンピューター:)
いくつかの読み取り(#10、#12、#17 )と、このフォークとこれによって提供されるいくつかのバイナリを試した後、私はそれを動作させることができます...
node-gyp configure
()からまたはnode-gyp rebuild
( )から同じエラーが発生しましたnpm install jquery
:
info it worked if it ends with ok
info downloading: http://nodejs.org/dist/v0.6.14/node-v0.6.14.tar.gz
info downloading: http://nodejs.org/dist/v0.6.14/x64/node.lib
info downloading: http://nodejs.org/dist/v0.6.14/node.lib
spawn python [ 'D:\\Users\\ngryman\\.node-gyp\\0.6.14\\tools\\gyp_addon',
'binding.gyp',
'-ID:\\Users\\ngryman\\build\\config.gypi',
'-f',
'msvs',
'-G',
'msvs_version=2010' ]
File "D:\Users\ngryman\.node-gyp\0.6.14\tools\gyp_addon", line 40
print 'Error running GYP'
^
SyntaxError: invalid syntax
ERR! Error: `gyp_addon` failed with exit code: 1
at ChildProcess.onCpExit (D:\Users\ngryman\AppData\Roaming\npm\node_modules
node-gyp\lib\configure.js:226:16)
at ChildProcess.emit (events.js:70:17)
at maybeExit (child_process.js:360:16)
at Process.onexit (child_process.js:396:5)
ERR! not ok
構文エラーがあるようです...私はPythonにあまり慣れていません。
これが私のバージョンです:
- Python:3.2.3
- NodeJS:0.6.14
誰かアイデアがありますか?
ありがとう!