Why "npm get global" always return true even I have set "npm set global=false" in MAC Lion

Problem

I have set "npm set global=false", but I still get true after "npm get global" (It should be returned with false). I rebooted my MAC, but got the same result.

I'm troubled for several days and can not get it resolved.

Thanks so much

Problem courtesy of: Jacky

Solution

Run this with the --local switch:

npm set global=false --local
Solution courtesy of: Nitin...

Discussion

There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.