npm ERR! Error: EPERM: operation not permitted, unlink

Is there a another instance of node running, that is also using ReactFabric-dev.js? If so, terminate and retry. Also try to move your project to a folder "closer" to root. Windows sometimes gets confused with very long paths.


Solved it by logging into npmjs: npm login

or

uninstall all npm modules and re-install with npm install --no-bin-links

or

rd /s /q C:\Users\foo\AppData\Roaming\npm-cache
rd /s /q C:\Users\foo\AppData\Roaming\npm

I had this error message, to solve it you have to:

1) add your project folder in Windows Defender exclusions list.

2) remove your node_modules folder

3) run:

npm install

What I did is:

  1. Deleted node_modules folder;

  2. Opened VSCode as administrator;

  3. Ran the following commands in terminal:

    npm cache clean --force

    npm install