bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

Error: EACCES: permission denied, scandir '/home'

Open igorvlassov opened this issue 10 years ago • 5 comments

Dear Sirs, I need to install bitcore on Linux server with straight security requirements. I have not read/write permissions of /home directory I installed bitcore in my home directory locally using npm install bitcore But now when I try to create node with bitcore create mynode --testnet I get following error:

/home/develop/bitcore/node_modules/glob/sync.js:321
        throw er
        ^

Error: EACCES: permission denied, scandir '/home'
    at Error (native)
    at Object.fs.readdirSync (fs.js:945:18)
    at GlobSync._readdir (/home/develop/bitcore/node_modules/glob/sync.js:275:41)
    at GlobSync._processReaddir (/home/develop/bitcore/node_modules/glob/sync.js:135:22)
    at GlobSync._process (/home/develop/bitcore/node_modules/glob/sync.js:130:10)
    at new GlobSync (/home/develop/bitcore/node_modules/glob/sync.js:46:10)
    at Function.globSync [as sync] (/home/develop/bitcore/node_modules/glob/sync.js:24:10)
    at /home/develop/bitcore/node_modules/findup-sync/lib/findup-sync.js:31:19
    at Array.map (native)
    at module.exports (/home/develop/bitcore/node_modules/findup-sync/lib/findup-sync.js:30:22)

How can I prevent scandir /home say change it to ~/ ?

Thanks in advance, Igor

igorvlassov avatar Jun 07 '16 06:06 igorvlassov

What's your current working directory?

braydonf avatar Jun 07 '16 21:06 braydonf

My home directory is /home/develop I installled bitcore into ~/bitcore So I have ~/bitcore/node_modules And I trying to create testnode in ~/bitcore with command ~/bitcore/node_modules/.bin/bitcore create testnode --testnet

igorvlassov avatar Jun 08 '16 07:06 igorvlassov

And this doesn't output /home ?

echo $PWD

braydonf avatar Jun 08 '16 15:06 braydonf

closing stale issue

DanielRHayes avatar Jun 06 '18 21:06 DanielRHayes

Why you closed it?

PrakashLakhara avatar May 04 '20 04:05 PrakashLakhara