-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI fails because of Nodejs version change in GH Action's ubuntu image #142
Comments
The grpc binary in CI environment. has problem, since Nov, 2020. The CI environment change the default Nodejs version from v12 to v14
This change breaks the CI. Even we use "setup-node@v2-beta" with nodejs 12; during the Jest unit test, it attempts to use napi = 6 (i.e. Nodejs 14). The grpc binary will translate the {node_api} into "node-v83". I GUESS that there is some configuration in the Github Action docker image, which defines the used of Node 14 (maybe .npmrc, or something else; I did not check). The error: cannot grpc C++ addon is located at. And, its installation location depends on n_api version In order to workaround it, we use nvm to install nodejs v12, and do the monorepo installation. And, then switch to nodejs v14, to rebuild grpc library. After "./lib/binding/node-v83-darwin-x64/grpc_node.node" is create, resume Nodejs v12. Because Hyperledger Fabric v2.2 client has a strict engine requirement for Nodejs v12.16.1; cannot use Nodejs V14. Don't attempt to upgrade it.
For debugging purpose, can use below command to find out napi version:
|
"Default Node.JS will be switched to 14.x on all platforms", on Oct 29, 2020. => break CI
Even using nvm does not work.
The grpc binary fail to find.
The text was updated successfully, but these errors were encountered: