system: ubuntu 18
install celocli info:
apt-get install -y npm
npm config set user 0
npm config set unsafe-perm true
npm install -g npm
npm -g install n
n stable
npm install -g @celo/celocli
use cmd:
celocli account:unlock --account $CELO_VALIDATOR_GROUP_ADDRESS --password ****
error info :
Error: The module ‘/usr/local/lib/node_modules/@celo/celocli/node_modules/scrypt/build/Release/scrypt.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 46. This version of Node.js requires
NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
the module (for instance, using npm rebuild
or npm install
).
at Object. (/usr/local/lib/node_modules/@celo/celocli/node_modules/scrypt/index.js:3:20)
I have used the npm rebuild
or npm install