Skip to content

Commit db9d616

Browse files
authored
Clarified Explanation
Made changes to note as discussed in comments
1 parent 74fa5ef commit db9d616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Or simply pull from [justadudewhohacks/opencv-nodejs](https://hub.docker.com/r/j
141141
FROM justadudewhohacks/opencv-nodejs
142142
```
143143

144-
**Note**: The aforementioned Docker image does not have build tools installed. In order to prevent errors during an ```npm install```, you can either install opencv4nodejs globally and link to it in your project or install production packages only in your Dockerfile.
144+
**Note**: The aforementioned Docker image already has ```opencv4nodejs``` installed globally. In order to prevent build errors during an ```npm install```, your ```package.json``` should not include ```opencv4nodejs```, and instead should include/require the global package either by requiring it by absolute path or setting the ```NODE_PATH``` environment variable to ```/usr/lib/node_modules``` in your Dockerfile and requiring the package as you normally would.
145145

146146
Different OpenCV 3.x base images can be found here: https://hub.docker.com/r/justadudewhohacks/.
147147

0 commit comments

Comments
 (0)