npm install fails with error code EPERM
If you are trying to do “npm install” and get some weird permission error with code EPERM about “operation not permitted”, there could be a variety of reasons (as mentioned here).
First make sure that if you are on Windows that you are running the shell as “Administrator” by right clicking on the “command prompt” icon and selecting “Run as Administrator” when launching.
However, another possibility may be that the module was previously installed with yarn. If you then try using npm with it, the error may appear. In that case, you should uninstall the module with yarn with “yarn remove”.
Hope that helps.