I installed nvm n and now I keep getting “dyld: bad external relocation length”

a 夏天 提交于 2019-12-04 11:26:27

I had the same thing happen.

I was using a mac, so I downloaded the .pkg for the version of node I was interested in and re-installed it (which reinstalls npm at the same time).

Everything was back up and running after that.

I had the same this morning because of n package via npm,

Node was installed via brew (without npm), so i removed it this way;

brew uninstall node

then reinstalled the newer version via n package

n lts

if this is not enough because of policy rules of your mac, try

sudo npm lts

this solved my problem and saved a big time from reinstalling all global node modules.

Just use n reinstall node that you break in.

i solved my problem wihout uninstalling the nodejs,just update the node version by n, and it works.

sudo n latest
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!