在Ubuntu中安装node-gd
当我安装node-gd lib时,出现以下警告:
root@iZ25mlpjokyZ:~# npm install node-gd / > node-gd@1.1.0 install /root/node_modules/node-gd > node-gyp rebuild gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.3.1" gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/node_modules/node-gd/.node-gyp" gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/node_modules/node-gd/.node-gyp/4.3.1" gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/node_modules/node-gd/.node-gyp"
谢谢。 我用下面的命令解决了它:
apt-get install g++ gcc apt-get update apt-get upgrade