Reputation: 31
when I install node-gd lib, I'm getting the following warning:
root@iZ25mlpjokyZ:~# npm install node-gd
/
> [email protected] 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"
Upvotes: 1
Views: 307
Reputation: 295
the package on website tells us to install libgd2-dev using ubuntu package manager as
sudo apt-get install libgd2-dev
but this package is not available in the source list the thing that worked for me is as follows
sudo apt-get isntall libgd-dev
npm i node-gd --save
Upvotes: 0
Reputation: 31
Thanks. I solved it with the following commands:
apt-get install g++ gcc
apt-get update
apt-get upgrade
Upvotes: 2