【发布时间】:2018-04-22 13:00:47
【问题描述】:
我正在运行以下命令在 AWS EC2 t2.micro 实例上安装 node-red。
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs build-essential
sudo npm install -g node-red
此时安装似乎处于无限循环中:
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/node-red/node_modules/bcrypt/.node-gyp"
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/lib/node_modules/node-red/node_modules/bcrypt/.node-gyp/8.11.1"
如果我点击Ctrl-C 并重新运行sudo npm install -g node-red,那么安装似乎成功完成。这是有效的行为吗?
【问题讨论】:
-
投反对票?为什么?
-
编译原生bcrypt可能需要很长时间,你离开它多久了?
-
超过 15 分钟。而且,我是否可以建议更新有关
bcrypt编译的 Node-RED 安装文档?