<p>I had nodejs outdated. My version was "v0.9.9" when the latest is (right now) "v0.10.26", and that was all the issue.</p>

CC BY-SA 3.0
2014-02-26T02:05:26.420Z
2014-02-26T02:05:26.420Z
ParanoidE
<p>I've installed bitcore.io on a folder for my nodejs, using the npm command.</p>

<pre><code>npm install bitcore
npm install classtool
</code></pre>

<p>Of course, I tried to run an example code, the one is shown at their website. I saved it as "test.js"</p>

<pre><code>var Address = require('bitcore/Address').class();

var addr = new Address("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa");

try {
    addr.validate();
    console.log("Address is valid.");
} catch(e) {
    console.log(addr.data + " is not a valid address. " + e);
}
</code></pre>

<p>Then I did:</p>

<pre><code>myuser@ownbox:~/bitproj$ node test.js
1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa is not a valid address. RangeError: start &gt; end
myuser@ownbox:~/bitproj$
</code></pre>

<p>Is there something I'm missing? I've been googling for hours, for a solution. The address indeed does exist, I've checked it with blockchain.info.</p>

<json-rpc><javascript>
Anybody using bitcore.io? I can't seem to make it work properly
ParanoidE
# Anybody using bitcore.io? I can't seem to make it work properly

(Asked by: username_0 on 2014-02-24)

I've installed bitcore.io on a folder for my nodejs, using the npm command.
npm install bitcore
npm install classtool

Of course, I tried to run an example code, the one is shown at their website. I saved it as "test.js"
var Address = require('bitcore/Address').class();

var addr = new Address("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa");

try {
    addr.validate();
    console.log("Address is valid.");
} catch(e) {
    console.log(addr.data + " is not a valid address. " + e);
}

Then I did:
myuser@ownbox:~/bitproj$ node test.js
1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa is not a valid address. RangeError: start > end
myuser@ownbox:~/bitproj$

Is there something I'm missing? I've been googling for hours, for a solution. The address indeed does exist, I've checked it with blockchain.info.

**Tags:** json-rpc, javascript


---

## 1 answers

### Answer by username_0 on 2014-02-26. Score: 0

I had nodejs outdated. My version was "v0.9.9" when the latest is (right now) "v0.10.26", and that was all the issue.


---

