0
노드 모듈로 windows7에 node-opencv 또는 opencv-node를 설치하려고합니다. node와 node-gyp는 명령 프롬프트에서 액세스 할 수 있습니다. Python 및 env 변수가 설정됩니다. openCV는 적어도 미리 빌드 된 라이브러리가있는 지점에 설치해야합니다. 그러나 node-opencv와 opencv-node 모두 동일한 오류가 발생합니다.Windows 용 node-opencv
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | ia32
gyp ERR! configure error
gyp ERR! stack Error: Command failed: File "<string>", line 1
gyp ERR! stack import platform; print platform.python_version();
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:540:15)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack at maybeClose (child_process.js:638:16)
gyp ERR! stack at Process._handle.onexit (child_process.js:680:5)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "node" "C:\\Users\\Chris\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure"
"build"
gyp ERR! cwd C:\wamp\www\serv\opencv-node
gyp ERR! node -v v0.8.9
gyp ERR! node-gyp -v v0.7.3
gyp ERR! not ok
로그 파일에는 거의 동일한 내용이 표시됩니다.
- UPDATE, 지금이 오류를 얻을 파이썬 2.7.3을 설치 한 후 : 나는 비슷한 문제를 가지고C:\Users\Chris\AppData\Roaming\npm\node_modules\opencv-node>node "C:\Program Fil
es (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\b
in\node-gyp.js" configure build
gyp ERR! configure error
gyp ERR! stack Error: Command failed: CreateProcessW: The system cannot find the
file specified.
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:540:15)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack at maybeClose (child_process.js:638:16)
gyp ERR! stack at Socket.ChildProcess.spawn.stdin (child_process.js:815:11)
gyp ERR! stack at Socket.EventEmitter.emit (events.js:88:17)
gyp ERR! stack at Socket._destroy.destroyed (net.js:357:10)
gyp ERR! stack at process.startup.processNextTick.process._tickCallback (nod
e.js:244:9)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\nod
e_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\Chris\AppData\Roaming\npm\node_modules\opencv-node
gyp ERR! node -v v0.8.9
gyp ERR! node-gyp -v v0.6.8
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp configure build`
npm ERR! `cmd "/c" "node-gyp configure build"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the opencv-node package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls opencv-node
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "opencv-node
"
npm ERR! cwd C:\wamp\www\serv\opencv-node
npm ERR! node -v v0.8.9
npm ERR! npm -v 1.1.61
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\wamp\www\serv\opencv-node\npm-debug.log
npm ERR! not ok code 0
답변에 동의하면 답변을 수락하십시오. 이런 질문을 떠나지 마십시오. –
위의 오류가 발생했습니다. 도와 드릴까요? – ChrisAdmin
저자에게 연락하거나 github에 문제를 제기 해보세요. –