Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

fix: resolve opencv version when running under npm 7 #10

Merged
merged 1 commit into from
Apr 5, 2021

Conversation

ewanharris
Copy link

npm 7 removes the npm_package_* environment variables, so the version needs to be obtained by
requiring the package.json and pulling from that

This also add --no-save to the npm install command so that the package isn't added to the top level
package.json

Closes #9

npm 7 removes the npm_package_* environment variables, so the version needs to be obtained by
requiring the package.json and pulling from that

This also add --no-save to the npm install command so that the package isn't added to the top level
package.json

Closes #9
@s1hofmann
Copy link
Member

Hi @ewanharris 👋

Thanks for your contributions!
I haven't given npm@7 a try yet, so I wasn't aware of this.
I'll check it out and get back to you.

Best regards

Simon

goretkin added a commit to goretkin/LoggingPlayground that referenced this pull request Mar 6, 2021
`vscode-extension-tester` has an indirect dependency on

https://www.npmjs.com/package/opencv4nodejs-prebuilt

(via https://github.com/nut-tree)

which has an issue on npm@7
https://github.com/nut-tree/opencv4nodejs/issues/9

That issue might be resolved here:
nut-tree/opencv4nodejs#10

which hasn't been released.
goretkin added a commit to goretkin/LoggingPlayground that referenced this pull request Mar 6, 2021
@s1hofmann s1hofmann merged commit 5c91467 into nut-tree:master Apr 5, 2021
@ewanharris ewanharris deleted the fix_npm7_compat branch April 16, 2021 13:54
@ewanharris ewanharris restored the fix_npm7_compat branch April 16, 2021 13:54
@ewanharris ewanharris deleted the fix_npm7_compat branch April 16, 2021 13:54
@ewanharris ewanharris restored the fix_npm7_compat branch April 16, 2021 13:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incompatible with npm7
2 participants