Sunday 15 July 2012

node.js - iOS Yosemite sudo npm install -g DYLD_ environment -


As long as I run sudo npm install -g, I have a problem after upgrading my machine to Yosemite I get an error

/ usr / bin / dyld: The environment variable is being ignored because the main executable (/ usr / bin / sudo) Setuid or setgid is

for instance using

  sudo npm install -g gulp  

Trying to install and received the same error! The reason behind this problem is not able to find

Usually this means that the existing, world The package installed on the level is bad size Potential permissions are related, but it is difficult to say definitely without much information about the environment.

The solution is to fix a broken package. Delete a way to do this and re-install it sudo npm uninstall -g & lt; Pkg & gt; Try where & lt; Pkg & gt; There is something that you may suspect.

If you are unsure of where to begin, please:

  npm list -g --depth = 0  
< P> This will show you all the packages installed globally. Remove them one by one and install them again.

During the removal process, leave any of those errors, you will need to do it yourself manually.

First of all, find out where global packages are installed normally, it will be / usr / local on OS X, for example. To make sure:

  NPM config prefix  

then locate that directory, especially / usr / local / bin (For example) and if you are certain that a file is related to the global NPM package, then it is usually safe to remove it.

  `sudo rm -rf & lt; File & gt; ` 

... where & lt; File & gt; is the actual filename you want to delete.

Due to the overuse of this, this error may occur in pseudo .

See my answer why sudo is bad and how to fix instructions.


No comments:

Post a Comment