Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing node.js with package installer - dyld:Library not loaded error

Tags:

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?

like image 581
Soroush Hakami Avatar asked Dec 10 '11 08:12

Soroush Hakami


People also ask

Why node JS is not installing?

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.

How do I fix npm installation errors?

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).

How do I force an npm package to install?

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.

How do I install npm with NVM?

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.


1 Answers

That error indicates that you are missing libssl.

I have always installed Node using Homebrew:

brew install node 
like image 120
James Emerton Avatar answered Oct 07 '22 14:10

James Emerton