Skip to content

Getting permission denied error while installing clearbit in linux #47

@ganeshcse2991

Description

@ganeshcse2991

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions