eperm在azure上安装kudusync

gj3fmq9x  于 2021-06-20  发布在  Kudu
关注(0)|答案(0)|浏览(215)

我在尝试从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\ . 有什么线索吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题