The ‘brew link’ step did not complete successfully

There are a series of problems when updating node on Mac

After uninstalling node and re installing, prompt:

The ‘brew link’ step did not complete successfully

In fact, the method has been given here

There is usually no problem executing the first command. Just go straight back

When I execute the second command, I have some problems here:

Say I don’t have/usr/local/share/Doc /… A lot of permissions

This permission is not our permission to join sudo

Then I check on the stack overflow. If you are interested, you can have a look: the space-time vehicle starts

Enter the command line:

Sudo chown – R ‘whoamI’: admin/usr/local/share/Doc/node note that we may not be the same in the red color. We need to replace your own files without permission

At this time, we can link successfully

However, when I enter NPM – V, I am prompted that there is no NPM command

All you need to do is to rewrewire and install the node again

Perfect solution

Similar Posts: