You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.
I'm not able to install setprotocol.js due to a gyp error. I have Xcode Command Line Tools installed and working fine.
Command run: yarn add setprotocol.js
OS: macOS Catalina 10.15.4 (19E287)
node -v: v13.13.0 yarn -v: 1.22.4
2 warnings and 10 errors generated.
make: *** [Release/obj.target/scrypt/src/node-boilerplate/scrypt_params_async.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/jordan/.nvm/versions/node/v13.13.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/Users/jordan/.nvm/versions/node/v13.13.0/bin/node" "/Users/jordan/.nvm/versions/node/v13.13.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/jordan/Development/set-tester/node_modules/scrypt
Apologies if the error is on my end. But the only solutions I can find is to installing/re-installing xcode-select which I've already done.
Edit: I see the troubleshooting note to use node 9.11.1. If I do that then yarn add setprotocol.js I get:
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=10". Got "9.11.1"
error Found incompatible module.
If I try yarn add setprotocol.js@^1.2.7 I get:
zsh: no matches found: setprotocol.js@^1.2.7
Finally got it to install using node 10.20.1
another edit:
I can install the library, but when I import it, it fails at run-time:
constants.js?b8a0:25 Uncaught TypeError: exports.ONE_DAY_IN_SECONDS.mul is not a function
at eval (constants.js?b8a0:25)
at Object../node_modules/set-protocol-contracts/dist/utils/constants.js (bundle.js:14207)
at __webpack_require__ (bundle.js:20)
at eval (web3Helper.js?c30e:42)
at Object../node_modules/set-protocol-contracts/dist/utils/web3Helper.js (bundle.js:14423)
at __webpack_require__ (bundle.js:20)
at eval (compoundHelper.js?8134:39)
at Object../node_modules/set-protocol-contracts/dist/utils/helpers/compoundHelper.js (bundle.js:14279)
at __webpack_require__ (bundle.js:20)
at eval (index.js?5607:3)
tried with node 9, 10, and 11.
The text was updated successfully, but these errors were encountered:
I'm getting the same when attempting to install this package, set-protocol-contracts, or set-protocol-viewers. This looks to be caused by the ancient version of web3 being used (v1.0.0-beta.36).
Possible to prioritize a web3 update?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm not able to install setprotocol.js due to a gyp error. I have Xcode Command Line Tools installed and working fine.
Command run:
yarn add setprotocol.js
OS: macOS Catalina 10.15.4 (19E287)
node -v
: v13.13.0yarn -v
: 1.22.4Apologies if the error is on my end. But the only solutions I can find is to installing/re-installing
xcode-select
which I've already done.Edit: I see the troubleshooting note to use node 9.11.1. If I do that then
yarn add setprotocol.js
I get:If I try
yarn add setprotocol.js@^1.2.7
I get:Finally got it to install using node 10.20.1
another edit:
I can install the library, but when I import it, it fails at run-time:
tried with node 9, 10, and 11.
The text was updated successfully, but these errors were encountered: