я пытаюсь установить OpenCV для nodeJs на окнах 8пытается установить OpenCV из НПХ на окнах
Я скачал NodeJs, установил его установлен питон для окон 32 бита OpenCV 2.3.1
SET PYTHON=C:\Python33
SET %PATH%;C:\PYTHON33
скачанного OpenCV 3.4.1 от побежал НПМ установить OpenCV это результат:
C:\projects>npm install opencv
npm http GET https://registry.npmjs.org/opencv
>npm http 304 https://registry.npmjs.org/opencv
>[email protected] preinstall C:\copter\node_modules\opencv
node-gyp clean rebuild
C:\projects\node_modules\opencv>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" clean rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:980:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:771:34)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "clean" "rebuild"
gyp ERR! cwd C:\copter\node_modules\opencv
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
обновление:
также попытался
C:\projects\node_modules>npm install opencv-node
npm http GET https://registry.npmjs.org/opencv-node
npm http 200 https://registry.npmjs.org/opencv-node
npm http GET https://registry.npmjs.org/opencv-node/-/opencv-node-0.2.6.tgz
npm http 200 https://registry.npmjs.org/opencv-node/-/opencv-node-0.2.6.tgz
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/keypress
npm http 200 https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/keypress/-/keypress-0.2.1.tgz
npm http 200 https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/coffee-script/-/coffee-script-1.6.3.tgz
npm http 200 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz
npm http 200 https://registry.npmjs.org/keypress/-/keypress-0.2.1.tgz
npm http 200 https://registry.npmjs.org/coffee-script/-/coffee-script-1.6.3.tgz
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz
> [email protected] install C:\copter\node_modules\opencv-node
> node-gyp configure build
C:\projects\node_modules\opencv-node>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\nod
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:980:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:771:34)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.
gyp ERR! cwd C:\copter\node_modules\opencv-node
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0