我在尝试从 Kudu 调试控制台或从 deploy.cmd 文件自动安装 KuduSync 时遇到“EPERM”错误。
这是我尝试npm install -g kudusync
从调试控制台运行时的错误日志:
npm http GET https://registry.npmjs.org/kudusync
npm http 304 https://registry.npmjs.org/kudusync
npm ERR! error rolling back Error: EPERM, rmdir 'D:\Program Files ( x86)\nodejs\0.10.5\node_modules\kudusync'
npm ERR! error rolling back kudusync@0.1.24 { [Error: EPERM, rmdir 'D:\Program Files ( x86)\nodejs\0.10.5\node_modules\kudusync']
npm ERR! error rolling back errno: 50,
npm ERR! error rolling back code: 'EPERM',
npm ERR! error rolling back path: 'D:\\Program Files ( x86)\\nodejs\\0.10.5\\node_modules\\kudusync' }
npm ERR! Error: EPERM, rmdir 'D:\Program Files (x86)\nodejs\0.10.5\node_modules\kudusync'
npm ERR! { [Error: EPERM, rmdir 'D:\Program Files ( x86)\nodejs\0.10.5\node_modules\kudusync']
npm ERR! errno: 50,
npm ERR! code: 'EPERM',
npm ERR! path: 'D:\\Program Files (x86)\\nodejs\\0.10.5\\node_modules\\kudusync' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "node" "D:\\Program Files (x86)\\npm\\1.2.18\\node_modules\\npm\\bin\\npm- cli.js" "install" "-g" "kudusync"
npm ERR! cwd D:\home
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path D:\Program Files (x86)\nodejs\0.10.5\node_modules\kudusync
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, rmdir 'D:\Program Files ( x86)\nodejs\0.10.5\node_modules\kudusync'
npm ERR! Error: EPERM, open 'D:\home\npm-debug.log'
npm ERR! { [Error: EPERM, open 'D:\home\npm-debug.log'] errno: 50, code: 'EPERM', path: 'D:\\home\\npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "node" "D:\\Program Files (x86)\\npm\\1.2.18\\node_modules\\npm\\bin\\npm- cli.js" "install" "-g" "kudusync"
npm ERR! cwd D:\home
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path D:\home\npm-debug.log
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, open 'D:\home\npm-debug.log'
有人已经经历并解决了这个问题吗?谢谢!
编辑
经过进一步搜索,我发现系统尝试删除的文件夹不存在,其父文件夹也不存在,路径以D:\Program Files (x86)\nodejs\0.10.5\
. 有什么线索吗?