bcrypt error while running zest

 

"../bcrypt_lib.node' (mach-o file, but is an incompatible architecture (have (arm64), need (x86_64)))" while running tests


This is probable you are using an old version of node. check by 
nvm list
nvm use v16.17.0

To check the current version of node running, in the terminal use the command

node --version

Output in the Terminal :

enter image description here

The following command will list the different node versions already installed in your system.

nvm ls

Output in the Terminal :

enter image description here

To switch to more recent version of the node ie, v16.17.0, use the following command in the terminal

nvm use v16.17.0

Output in the Terminal :

enter image description here

Now confirm the current version of the node by

node --version

Output in Terminal:

enter image description here

No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days