在 Orange Pi One 上安裝 CNCJS
參考
- https://www.misterngan.com/4698/remote-control-your-grbl-cnc-machine-using-cncjs/
- https://www.misterngan.com/4779/grbl-installing-and-setting-cncjs/
- https://github.com/cncjs/cncjs
安裝 "Node Version Manager" 來管理多個 Node.js 版本。
# 安裝 nvm
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
$ source .profile
$ source .bashrc
#安裝最新的 node.js
$ nvm install 22
$ nvm use 22
# 執行 node 會出現錯誤
# node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
$ sudo apt install libatomic1
# 更新 npm
$ npm install npm@latest -g
# 安裝 cncjs
$ npm install -g cncjs
# 更新 cncjs
$ npm install -g cncjs@latest
沒有留言:
張貼留言