justadudewhohacks / justadudewhohacks/opencv4nodejs
Installing issue 'node ./install/parseEnv.js OPENCV4NODEJS_INCLUDES' returned exit status 1
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Description
# Error Message
```
ERR! Error: Command failed: node-gyp rebuild --jobs max
The system cannot find the path specified.
gyp: Call to 'node ./install/parseEnv.js OPENCV4NODEJS_INCLUDES' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:257:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\me\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--jobs" "max"
gyp ERR! cwd C:\Users\me\Desktop\study\opencv\node_modules\opencv4nodejs
gyp ERR! node -v v12.2.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
```
*OpenCV version* (example 3.4.1): 4.0.1
*With OpenCV-contrib?* (extra modules): yes
*OS*: Windows 10
# Comment
While i'm installing this error occurred.
I installed opencv and i think i have set all of environment variables.
I don't know why it doesn't recognize OPENCV4NODEJS_INCLUDES variable.
I added that variable too.
please help me..
Contributor guide
Research direction
Start with install/parseEnv.js and binding.gyp, then inspect the node-gyp rebuild command in the reported Windows environment. Reproduce the installation failure and determine why OPENCV4NODEJS_INCLUDES is not being resolved; done means the native binding builds successfully with the documented OpenCV configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, nodejs
- Domain
- build-system, computer-vision
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100