I've installed the api with npm i @aragon/api, and then I've copied the sample script from the docs.
But when I try to run it, I recive the following error:
$ node index.js
./index.js:4
const app = new Aragon()
^
TypeError: Aragon is not a constructor
at Object.<anonymous> (/home/davo/Documents/GRASIA/api/index.js:4:13)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
at node:internal/main/run_main_module:17:47
I've installed the api with
npm i @aragon/api
, and then I've copied the sample script from the docs.But when I try to run it, I recive the following error: