Error on running npm install after following steps to upgrade SPFx to 1.6.0
Is upgrade form the original one or a new project? According to the description, you have no permission to create the node_modules/.staging folder.Could you please provide more information once you’ve modified the permission.
@licypal what are the exact steps you followed between o365 spfx project upgrade --output md > report.md and npm install? From which version of the SharePoint Framework were you upgrading?
All of that seems fine. The error you're seeing is nothing I've seen before. The only thing I could suggest right now is that you try to delete node_modules and your package-lock.json file and try to restore dependencies again using npm install.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues