我在尝试从Kudu调试控制台全局安装KuduSync或从deploy.cmd文件自动安装时出现“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\
结尾。任何线索?