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
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 -v
–v10.22.1
通过本指南安装
从此
sudo npm install serialport --unsafe-perm --build-from-source
命令中获取以下错误。我厌倦了手动安装包,但看不到找到它或弄清楚。