Npm安装给了我这个权限错误。NPM错误

Npm安装给了我这个权限错误。NPM错误,npm,permissions,Npm,Permissions,我可以在我的C驱动器上正常运行我的npm包,但不能在我的D驱动器上运行。如何授予我的D驱动器权限?我尝试了npm安装力量,但它仍然给我同样的错误 npm ERR! code EPERM npm ERR! syscall open npm ERR! path C:\Users\WebDev\AppData\Roaming\npm-cache\_cacache\tmp\3bed6bd0 npm ERR! errno -4048 npm ERR! Error: EPERM: operation

我可以在我的C驱动器上正常运行我的npm包,但不能在我的D驱动器上运行。如何授予我的D驱动器权限?我尝试了npm安装力量,但它仍然给我同样的错误

npm ERR! code EPERM

npm ERR! syscall open

npm ERR! path C:\Users\WebDev\AppData\Roaming\npm-cache\_cacache\tmp\3bed6bd0

npm ERR! errno -4048

npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\WebDev\AppData\Roaming\npm-cache\_cacache\tmp\3bed6bd0'

npm ERR!  [OperationalError: EPERM: operation not permitted, open 'C:\Users\WebDev\AppData\Roaming\npm-cache\_cacache\tmp\3bed6bd0'] {

npm ERR!   cause: [Error: EPERM: operation not permitted, open 'C:\Users\WebDev\AppData\Roaming\npm-cache\_cacache\tmp\3bed6bd0'] {

npm ERR!     errno: -4048,

npm ERR!     code: 'EPERM',

npm ERR!     syscall: 'open',

npm ERR!     path: 'C:\\Users\\WebDev\\AppData\\Roaming\\npm-cache\\_cacache\\tmp\\3bed6bd0'

npm ERR!   },

npm ERR!   isOperational: true,

npm ERR!   errno: -4048,

npm ERR!   code: 'EPERM',

npm ERR!   syscall: 'open',

npm ERR!   path: 'C:\\Users\\WebDev\\AppData\\Roaming\\npm-cache\\_cacache\\tmp\\3bed6bd0'

npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.

npm ERR! It's possible that the file was already in use (by a text editor or antivirus),

or that you lack permissions to access it.

If you believe this might be a permissions issue, please double-check the
permissions of the file and its containing directories, or try running
the command again as root/Administrator.

这回答了你的问题吗?