<p>I solved this problem using NodeJS v4. I did a clean install again and ran these commands:</p>

<p><strong>NOTE: My user is 'test' so my home is located at /home/test. Replace 'test' with your current user.</strong></p>

<ol>
<li><p>Install NVM:</p>

<pre><code>$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh |  bash
</code></pre>

<p>After that, close and reopen your terminal and test whether NVM was correctly installed:</p>

<pre><code>$ nvm --version
</code></pre></li>
<li><p>Install NodeJS v4:</p>

<pre><code>$ nvm install v4
</code></pre>

<p>Check whether NodeJS was correctly instaled:</p>

<pre><code>$ node -v
</code></pre></li>
<li><p>Install ZeroMQ and Tools:</p>

<pre><code>$ sudo apt-get install -y libzmq3-dev build-essential
</code></pre></li>
<li><p>Install Bitcore. Today (December 2017), the lastest version is 4.1.1. This version uses two different versions of bitcore-lib and cause a conflict when you run bitcored. So, install bitcore v4.1.0:</p>

<pre><code>$ npm install -g bitcore@4.1.0
</code></pre></li>
<li><p>Done!! </p></li>
</ol>

<p>With these steps, I could use bitcore however they doesn't solve my original problem which is, install bitcore using NodeJS v8.9.3.</p>

CC BY-SA 3.0
2017-12-29T15:29:01.523Z
2017-12-31T17:48:27.103Z
2017-12-31T17:48:27.103Z
Luis Arriojas
<p>run the command with following flag</p>

<pre><code>--unsafe-perm=true
</code></pre>

CC BY-SA 4.0
2019-01-03T10:13:28.457Z
2019-01-03T10:13:28.457Z
Parishilan Rayamajhi
<p>I have tried to install bitcore.io on a clean and upgraded Ubuntu 16.04.3 (64 bits) but always get permission errors.</p>

<p>I have already created a user and password for bitcore:</p>

<pre><code>sudo useradd -r -m bitcore
sudo usermod -aG sudo,adm bitcore
sudo passwd bitcore
</code></pre>

<p>Installed nodejs v8.9.3 and ZeroMQ:</p>

<pre><code>apt-get install libzmq3-dev build-essential
</code></pre>

<p>But when install bitcore:</p>

<pre><code>npm install -g bitcore
</code></pre>

<p>I got this error message after download bitcoin-0.12.1-linux64.tar.gz:</p>

<pre><code>bitcoin-0.12.1/lib/libbitcoinconsensus.so.0.0.0
npm ERR! path ../lib/node_modules/bitcore/bin/bitcore
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall symlink
npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/bitcore/bin/bitcore' -&gt; '/usr/bin/bitcore'
npm ERR!  { Error: EACCES: permission denied, symlink '../lib/node_modules/bitcore/bin/bitcore' -&gt; '/usr/bin/bitcore'
npm ERR!   cause: 
npm ERR!    { Error: EACCES: permission denied, symlink '../lib/node_modules/bitcore/bin/bitcore' -&gt; '/usr/bin/bitcore'
npm ERR!      errno: -13,
npm ERR!      code: 'EACCES',
npm ERR!      syscall: 'symlink',
npm ERR!      path: '../lib/node_modules/bitcore/bin/bitcore',
npm ERR!      dest: '/usr/bin/bitcore' },
npm ERR!   stack: 'Error: EACCES: permission denied, symlink \'../lib/node_modules/bitcore/bin/bitcore\' -&gt; \'/usr/bin/bitcore\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../lib/node_modules/bitcore/bin/bitcore',
npm ERR!   dest: '/usr/bin/bitcore' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.
</code></pre>

<p>Also, I have ran the previous command with <code>sudo</code> but the error is the same.</p>

<p>Also, I have ran <code>npm install bitcore</code> and it is installed without problem but cannot run bitcored. System returns <code>bitcored: command not found</code>.</p>

<bitcore>
Permission problem installing bitcore
Luis Arriojas
# Permission problem installing bitcore

(Asked by: username_0 on 2017-12-28)

I have tried to install bitcore.io on a clean and upgraded Ubuntu 16.04.3 (64 bits) but always get permission errors.

I have already created a user and password for bitcore:

```
sudo useradd -r -m bitcore
sudo usermod -aG sudo,adm bitcore
sudo passwd bitcore

```

Installed nodejs v8.9.3 and ZeroMQ:

```
apt-get install libzmq3-dev build-essential

```

But when install bitcore:

```
npm install -g bitcore

```

I got this error message after download bitcoin-0.12.1-linux64.tar.gz:

```
bitcoin-0.12.1/lib/libbitcoinconsensus.so.0.0.0
npm ERR! path ../lib/node_modules/bitcore/bin/bitcore
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall symlink
npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/bitcore/bin/bitcore' -> '/usr/bin/bitcore'
npm ERR!  { Error: EACCES: permission denied, symlink '../lib/node_modules/bitcore/bin/bitcore' -> '/usr/bin/bitcore'
npm ERR!   cause: 
npm ERR!    { Error: EACCES: permission denied, symlink '../lib/node_modules/bitcore/bin/bitcore' -> '/usr/bin/bitcore'
npm ERR!      errno: -13,
npm ERR!      code: 'EACCES',
npm ERR!      syscall: 'symlink',
npm ERR!      path: '../lib/node_modules/bitcore/bin/bitcore',
npm ERR!      dest: '/usr/bin/bitcore' },
npm ERR!   stack: 'Error: EACCES: permission denied, symlink \'../lib/node_modules/bitcore/bin/bitcore\' -> \'/usr/bin/bitcore\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../lib/node_modules/bitcore/bin/bitcore',
npm ERR!   dest: '/usr/bin/bitcore' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

```

Also, I have ran the previous command with `sudo` but the error is the same.

Also, I have ran `npm install bitcore` and it is installed without problem but cannot run bitcored. System returns `bitcored: command not found`.

**Tags:** bitcore


---

## 2 answers

### Answer by username_0 on 2017-12-29. Score: 1 | Accepted answer

I solved this problem using NodeJS v4. I did a clean install again and ran these commands:

**NOTE: My user is 'test' so my home is located at /home/test. Replace 'test' with your current user.**

1. Install NVM:

   ```
   $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh |  bash

   ```

   After that, close and reopen your terminal and test whether NVM was correctly installed:

   ```
   $ nvm --version

   ```
2. Install NodeJS v4:

   ```
   $ nvm install v4

   ```

   Check whether NodeJS was correctly instaled:

   ```
   $ node -v

   ```
3. Install ZeroMQ and Tools:

   ```
   $ sudo apt-get install -y libzmq3-dev build-essential

   ```
4. Install Bitcore. Today (December 2017), the lastest version is 4.1.1. This version uses two different versions of bitcore-lib and cause a conflict when you run bitcored. So, install bitcore v4.1.0:

   ```
   $ npm install -g bitcore@4.1.0

   ```
5. Done!!

With these steps, I could use bitcore however they doesn't solve my original problem which is, install bitcore using NodeJS v8.9.3.


---

### Answer by username_1 on 2019-01-03. Score: 0

run the command with following flag

```
--unsafe-perm=true

```


---

