node-red-contrib-huemagic -- Error: EPERM: operation not permitted, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv'
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- docker, node.js
- 领域
- devops, infrastructure
调研方向
从 issue 中描述的 Docker 命令和挂载的 /data 路径开始,然后复现 node-red-contrib-huemagic 的安装。调查为 /data/node_modules/.bin/sshpk-conv 创建符号链接时出现的 EPERM,并将其与报告的权限和 npm 设置进行比较。完成标准是确定一个可复现的项目侧原因,并记录或测试修复方案;该 issue 未指定 repository 文件或测试。
由索引模型根据 Issue 内容生成。
描述
Error on a docker installed NodeRed
sudo docker run -d --network dockernet --name=nodered -p 1880:1880 -v /home/pi/USBpiData/NodeRed:/data nodered/node-red
checked the permissions are to 755 and uid=1000 gid =1000 (recursive)
also tried this as a fix inside the container:
`INSTALL GLOBAL NPM PACKAGES
npm config set unsafe-perm true
CLEAN CACHE
npm cache clean
BYPASS SYMLINK ISSUES
npm install --no-bin-links`
did not help, here the (still same) error message :-) hope to get help THANKS
`4 Mar 17:03:28 - [warn] Die Installation des Moduls node-red-contrib-huemagic ist fehlgeschlagen:
4 Mar 17:03:28 - [warn] ------------------------------------------
4 Mar 17:03:28 - [warn] npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path ../sshpk/bin/sshpk-conv
npm ERR! dest /data/node_modules/.bin/sshpk-conv
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv'
npm ERR! { [Error: EPERM: operation not permitted, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv']
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv'
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'symlink',
npm ERR! path: '../sshpk/bin/sshpk-conv',
npm ERR! dest: '/data/node_modules/.bin/sshpk-conv' },
npm ERR! stack:
npm ERR! 'Error: EPERM: operation not permitted, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv'',
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'symlink',
npm ERR! path: '../sshpk/bin/sshpk-conv',
npm ERR! dest: '/data/node_modules/.bin/sshpk-conv',
npm ERR! parent: 'data' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /data/.npm/_logs/2021-03-04T17_03_24_557Z-debug.log
4 Mar 17:03:28 - [warn] ------------------------------------------
4 Mar 17:03:28 - [error] Error: Installation fehlgeschlagen
`
- 主要语言
- Shell
- 星标
- 540
- 派生
- 435
- 平均合并
- 24 分钟
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
node-red/node-red-docker 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
node-red/node-red-docker#536 ·
-
Remove --unsafe-perms from npm install commands in Dockerfiles可能重新可做 @hardillb 于 115 天前认领,目前没有进行中的 PR。 未关闭
node-red/node-red-docker#522 · 已指派 1 人 ·
-
难度 3/5 1-2 天 新手友好度 52/100
node-red/node-red-docker#513 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 55/100
node-red/node-red-docker#510 ·
-
难度 4/5 3-5 天 新手友好度 30/100
node-red/node-red-docker#493 · 13 条评论 ·
查看 node-red/node-red-docker 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
unixorn/awesome-zsh-plugins#2285 ·
维护者通常 1 天内回复
-
documentation priority: low
难度 2/5 1-3 小时 新手友好度 88/100
snapotter-hq/SnapOtter#1863 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
nasa-jpl/bespokebpv7#51 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
area/rules
难度 2/5 1-3 小时 新手友好度 88/100
usnistgov/macos_security#836 ·
维护者通常 1 天内回复