最新

found-XX-vulnerabilities-(X-low,-X-moderate,-X-high)---run-`npm-audit-

一年前写的一个vue页面今天clone下来突然打不开了...,提示如标题,试了npm audit fix提示 fixed 22 of 55 vulnerabilities in 1541 scanned packages 33 vulnerabilities required manual review and could not be updated 大概是说,发现了55包有个漏洞,自动解决了22个,还有33个需要手动解决。可是代码不是我写的,“我不会呀?!” 是这样的,在npm@6 中引入了这个审计系统,也就是说去年我写代码的时候用的不是npm@6 ,没有这个审计。看了官网提供的方法我好像什么也做不了,那么最简单的办法应该就是降级或者关掉审计: npm set audit false 稍微温柔一点,可以将所有的包升级一下(⚠️不兼容警告)看看能不能解决: npm update 不行的话还是乖乖关掉吧。
ray
UnRAID-DDNS-配置

UnRAID-DDNS-配置

这里用到的一个docker镜像是ddns-updater,在app里就能安装。 使用时遇到两个问题: 一是启动失败,提示权限不足(https://github.com/qdm12/ddns-updater/discussions/413#discussioncomment-8193971),原因是镜像默认使用UID为1000的用户读写/updater/data文件夹,这个文件夹映射到Unraid上为/mnt/user/appdata/ddns-updater,而1000用户对这个文件夹没有写权限,使用命令chown 1000 /mnt/user/appdata/ddns-updater即可解决。 二是启动之后提示一个401错误,找半天没找到原因,在设置里重启一下docker就好了。 建议看看这个文章,里面介绍了几种其它的镜像,https://post.smzdm.com/p/axlrqvrw/
ray