Install NOde JS - Could not find the Appium file in npm folders

Hi , I installed Node JS . after that i tried to install appium.
command : npm install -g appium…

i get the below error "there is an error with NPM itself " . How to install appium throughg npm?

I think there is something wrong with your npm installation. Please try to uninstall it and install it again