After installing node in win10, use the command node -v
and npm -v
to be normal, node is installed successfully, but when running npm i
, an error is reported:
npm ERR! Error: EPERM: operation not permitted, mkdir 'D:\Program Files\nodejs\node_cache\_cacache'
Insufficient permissions
solution1
solution2
Run cmd in administrator mode