Scripts won't compile , Sharing path violation error

I am working on a project on an external hard drive , when I create a script it won’t compile .
It says Writing error — Sharing path violation

Close file