Tag Archives: npm ERR! { Error: EPERM: operation not permitted, mkdir ‘D:\Program Files\nodejs\node_cache\_cacache’

npm ERR! { Error: EPERM: operation not permitted, mkdir ‘D:\Program Files\nodejs\node_cache\_cacache’

1. Scenario

After installing node in win10, the commands node – V and NPM – V are normal. The node is successfully installed, but an error is reported when running NPM I:

npm ERR! Error: EPERM: operation not permitted, mkdir 'D:\Program Files\nodejs\node_ cache\_ cacache'

2. Cause

insufficient privilege

3. Solution

    Find the node installation directory, right-click properties, click Security, and set users’ full control permission

    Run CMD in administrator mode