npm失败,代码为EPERM错误-4048

npm失败,代码为EPERM错误-4048,npm,Npm,当我在我的项目中运行“npm安装”时,我遇到以下失败。 我已尝试手动删除目录“C:\Users\sacheu\AppData\Roaming\npm cache”,但仍然出现以下错误,我正在管理模式下运行我的“cmd” npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x 6)\\nodejs\\node_modules\\npm\\

当我在我的项目中运行“npm安装”时,我遇到以下失败。 我已尝试手动删除目录“C:\Users\sacheu\AppData\Roaming\npm cache”,但仍然出现以下错误,我正在管理模式下运行我的“cmd”

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x
6)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! path C:\Users\sacheu\AppData\Roaming\npm-cache\source-map\0.5.6\packag
.tgz.1001138336
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename

npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\sacheu\AppData
Roaming\npm-cache\source-map\0.5.6\package.tgz.1001138336' -> 'C:\Users\sacheu\
ppData\Roaming\npm-cache\source-map\0.5.6\package.tgz'
npm ERR!     at Error (native)
npm ERR!  { Error: EPERM: operation not permitted, rename 'C:\Users\sacheu\AppD
ta\Roaming\npm-cache\source-map\0.5.6\package.tgz.1001138336' -> 'C:\Users\sach
u\AppData\Roaming\npm-cache\source-map\0.5.6\package.tgz'
npm ERR!     at Error (native)
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'rename',
npm ERR!   path: 'C:\\Users\\sacheu\\AppData\\Roaming\\npm-cache\\source-map\\0
5.6\\package.tgz.1001138336',
npm ERR!   dest: 'C:\\Users\\sacheu\\AppData\\Roaming\\npm-cache\\source-map\\0
5.6\\package.tgz' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     c:\Users\sacheu\odsp-next\npm-debug.log

以下内容为我解决了问题:以下内容为我解决了问题: