npm ERR! rofs EROFS: read-only file system, open 'npm-debug.log.2926915621’
npm ERR! rofs This is most likely not a problem with npm itself
npm ERR! rofs and is related to the file system being read-only.
npm ERR! rofs
npm ERR! rofs Often virtualized file systems, or other file systems
npm ERR! rofs that don’t support symlinks, give this error.

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log

I can’t remove the .npm directory because it’s not found. Where is it supposed to be?

sudo npm update executed without errors but the pimatic error remains the same.

When trying to delete the complete pimatic-app i get the following error: "cannot create temp file for here-document: Read-only file system"
So it seems like the whole filesystem is mounted as ‘read-only’.

I think i’ve found the problem.
Since the latest raspbian doesn’t have SSH enabled by default anymore I tried to create the ‘ssh’ file to enable it on startup.
I did this by creating the file in OSX, that probably caused the filesystem to corrupted/read-only.

I did another install and enabled SSH manually with raspi-config. Everything seems to be working again. Problem solved!