I downloaded the nodeJs package installer for OSX http://nodejs.org/dist/v0.6.5/node-v0.6.5.pkg
But when I run node
, i receive the following error in the terminal:
dyld: Library not loaded: /opt/local/lib/libssl.0.9.8.dylib Referenced from: /usr/local/bin/node Reason: image not found Trace/BPT trap: 5
What could be the reason for this error?
Install node using the windows installer. Make sure the files were extracted to C:\Program Files (x86)\nodejs\ Make sure that my Path enviorment variable contains C:\Program Files (x86)\nodejs\ open up a command prompt and run node -v.
If your npm is broken: On Mac or Linux, reinstall npm. Windows: If you're on Windows and you have a broken installation, the easiest thing to do is to reinstall node from the official installer (see this note about installing the latest stable version).
Run npm update -g npm. Execute this command by running the command prompt as Administrator npm install -g windows-build-tools. Run npm install inside the project folder where the package. json file is located, if it doesn't work run: npm install --force.
It can be installed manually, if you prefer. Open the terminal and run the nvm list available command to see a list of Node versions that are available to download and install. Run the nvm use command, followed by the version number of Node you want to use (e.g. nvm use 16.9. 1 ) to use a specific version.
That error indicates that you are missing libssl.
I have always installed Node using Homebrew:
brew install node
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With