clearbit / clearbit-node

Node library for querying the Clearbit business intelligence APIs
https://clearbit.com/docs
MIT License
69 stars 35 forks source link

Getting permission denied error while installing clearbit in linux #47

Open ganeshcse2991 opened 4 years ago

ganeshcse2991 commented 4 years ago

Hi,

I am trying to do npm install clearbit in AWS EC2 t3 linux instance and I am getting the below error.

Command failed: git clone --depth=1 -q -b master git://github.com/clearbit/needle.git /root/.npm/_cacache/tmp/git-clone-d0e831ca npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-d0e831ca': Permission denied

I tried to do sudo npm instal too which is not recommended.

node version - 10.6.0 npm version - 6.1.0

lino-levan commented 2 years ago

Please see my workaround on this issue. Hope this helps!