找不到节点命令

Node command not found

我正在尝试使用命令 sudo npm install avrgirl-arduino 安装 avrgirl-arduino。当我尝试 运行 命令 avrgirl-arduino list 时,我收到一条错误消息 -bash: avrgirl-arduino: command not found。我 运行 npm init 在 运行 第一个命令之前它仍然不起作用。

您可能想要安装您的软件包 globally :

npm install -g avrgirl-arduino

这样你就可以使用命令行工具包(比如grunt)