RamachandraSahG
RamachandraSahG
Find the location of nodejs via where is nodejs then do, ln -s /usr/bin/nodejs ~/bin/node (yes, no sudo there); replace /usr/bin/nodejs with the path your nodejs is at.

This looks like you are having some other locking problem with your Mac Os. Please check below link for your problem. http://apple.stackexchange.com/questions/101328/file-cant-be-moved-by-root-on-os-x