开源改变世界

在 raspi 上安装串口错误 #613

推推 grbl 3年前 (2023-02-04) 168次浏览
关闭
a7hybnj2 打开了这个问题 2020 年 9 月 29 日 · 4条评论
关闭

在 raspi 上安装串口错误#613

a7hybnj2 打开了这个问题 2020 年 9 月 29 日 · 4条评论

评论

在 raspi 上安装串口错误 #613

uname -a– Linux raspberrypi 5.4.42-v8+ #1319 SMP PREEMPT Wed May 20 14:18:56 BST 2020 aarch64 GNU/Linux
npm -v– 6.14.6
node -vv10.22.1

通过本指南安装

从此sudo npm install serialport --unsafe-perm --build-from-source命令中获取以下错误。

found 42 vulnerabilities (37 low, 2 moderate, 3 high)
  run `npm audit fix` to fix them, or `npm audit` for details                                                      
pi@raspberrypi:~/lw.comm-server $ npm audit
npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run  npm install  to fix them.
npm ERR!     Missing: hdiutil@0.0.6

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2020-09-29T00_09_30_255Z-debug.log
pi@raspberrypi:~/lw.comm-server $ npm audit fix
npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run  npm install  to fix them.
npm ERR!     Missing: hdiutil@0.0.6

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2020-09-29T00_09_56_322Z-debug.log

我厌倦了手动安装包,但看不到找到它或弄清楚。

在 raspi 上安装串口错误 #613
成员

您是否尝试sudo npm install在错误消息提示时运行?

在 raspi 上安装串口错误 #613
作者

是的。我现在已经运行sudo npm installsudo npm audit fixsudo npm audit fix --force。我希望我接近所有正在安装的软件包。

在 raspi 上安装串口错误 #613
成员

不要运行audit fix命令,因为这会将使用的库更新为不兼容的新版本!

在 raspi 上安装串口错误 #613
作者

?我猜此时最好的办法是重新开始,而不是尝试修复任何错误。