when using npm install, the error like title happens.
Just add sudo before npm install to resolve the issue.