I'm facing this issue since very long tried almost all solutions available on Stackoverflow but not able to resolve. Tried changing permissions, reinstalling node, changing directory of npm modules but nothing seems to workout .
pajoshi2@PAJOSHI2-M-R5TQ .npm-global % npm install -g jshint
npm ERR! code EROFS
npm ERR! syscall mkdir
npm ERR! path /npm
npm ERR! errno -30
npm ERR! rofs EROFS: read-only file system, mkdir '/npm'
npm ERR! rofs Often virtualized file systems, or other file systems
npm ERR! rofs that don't support symlinks, give this error.